Yang, Tong 48706b7552 MRS COMP-LTS 320-lts.1 version
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com>
Co-authored-by: Yang, Tong <yangtong2@huawei.com>
Co-committed-by: Yang, Tong <yangtong2@huawei.com>
2024-04-12 12:51:10 +00:00

171 lines
14 KiB
HTML

<a name="mrs_01_24161"></a><a name="mrs_01_24161"></a>
<h1 class="topictitle1">IoTDB Log Overview</h1>
<div id="body0000001583390749"><p id="mrs_01_24161__p31801333314"><strong id="mrs_01_24161__b1618020320318">Description</strong></p>
<div class="section" id="mrs_01_24161__section1946814308231"><h4 class="sectiontitle">Log Description</h4><p id="mrs_01_24161__p17180103113115"><strong id="mrs_01_24161__b1938710485313">Log paths</strong>: The default paths of IoTDB logs are <strong id="mrs_01_24161__b5387447534">/var/log/Bigdata/iotdb/iotdbserver</strong> (for storing run logs) and <strong id="mrs_01_24161__b43879413532">/var/log/Bigdata/audit/iotdb/iotdbserver</strong> (for storing audit logs).</p>
<p id="mrs_01_24161__p618033143116"><strong id="mrs_01_24161__b956510399114240">Log archive rule</strong>: The automatic compression and archiving function of IoTDB is enabled. By default, when the size of a log file exceeds 20 MB (which is adjustable), the log file is automatically compressed. The naming rule of the compressed log file is as follows: &lt;<em id="mrs_01_24161__i1700029679114240">Original log file name</em>&gt;-&lt;<em id="mrs_01_24161__i61305836114240">yyyymmdd</em>&gt;.<em id="mrs_01_24161__i152148922114240">ID</em>.<strong id="mrs_01_24161__b691524847114240">log.gz</strong>. A maximum of 10 latest compressed files are reserved. The number of compressed files and compression threshold can be configured.</p>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_24161__table53813203112" frame="border" border="1" rules="all"><caption><b>Table 1 </b>IoTDB log list</caption><thead align="left"><tr id="mrs_01_24161__row181803313118"><th align="left" class="cellrowborder" valign="top" width="16.71717171717172%" id="mcps1.3.3.2.4.1.1"><p id="mrs_01_24161__p81805315312"><strong id="mrs_01_24161__b181801235311">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="46.02020202020202%" id="mcps1.3.3.2.4.1.2"><p id="mrs_01_24161__p19180931318"><strong id="mrs_01_24161__b1818012323111">Name</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="37.26262626262626%" id="mcps1.3.3.2.4.1.3"><p id="mrs_01_24161__p11180236318"><strong id="mrs_01_24161__b918020318314">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_01_24161__row518020313319"><td class="cellrowborder" rowspan="14" valign="top" width="16.71717171717172%" headers="mcps1.3.3.2.4.1.1 "><p id="mrs_01_24161__p91802035314">Run logs</p>
</td>
<td class="cellrowborder" valign="top" width="46.02020202020202%" headers="mcps1.3.3.2.4.1.2 "><p id="mrs_01_24161__p1418013313118">log-all.log</p>
</td>
<td class="cellrowborder" valign="top" width="37.26262626262626%" headers="mcps1.3.3.2.4.1.3 "><p id="mrs_01_24161__p1318014383117">IoTDB service log.</p>
</td>
</tr>
<tr id="mrs_01_24161__row31801534312"><td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.1.1 "><p id="mrs_01_24161__p5180131318">log-error.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.1.2 "><p id="mrs_01_24161__p018063203113">IoTDB service error log.</p>
</td>
</tr>
<tr id="mrs_01_24161__row1118093193112"><td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.1.1 "><p id="mrs_01_24161__p16180153113117">log-measure.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.1.2 "><p id="mrs_01_24161__p131804314314">IoTDB service monitoring log.</p>
</td>
</tr>
<tr id="mrs_01_24161__row1818012373114"><td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.1.1 "><p id="mrs_01_24161__p201801336312">log-query-debug.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.1.2 "><p id="mrs_01_24161__p131808316313">IoTDB query debug log.</p>
</td>
</tr>
<tr id="mrs_01_24161__row16180335315"><td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.1.1 "><p id="mrs_01_24161__p1118010333112">log-query-frequency.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.1.2 "><p id="mrs_01_24161__p1018015313114">IoTDB query frequency log.</p>
</td>
</tr>
<tr id="mrs_01_24161__row2180193203111"><td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.1.1 "><p id="mrs_01_24161__p1918018313312">log-sync.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.1.2 "><p id="mrs_01_24161__p1180439316">IoTDB synchronization log.</p>
</td>
</tr>
<tr id="mrs_01_24161__row1818063203111"><td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.1.1 "><p id="mrs_01_24161__p1718014313313">log-slow-sql.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.1.2 "><p id="mrs_01_24161__p16180103163117">IoTDB slow SQL log.</p>
</td>
</tr>
<tr id="mrs_01_24161__row18180113153118"><td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.1.1 "><p id="mrs_01_24161__p4180236311">server.out</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.1.2 "><p id="mrs_01_24161__p1018018363117">Log that records IoTDB service startup exceptions.</p>
</td>
</tr>
<tr id="mrs_01_24161__row9180133123114"><td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.1.1 "><p id="mrs_01_24161__p31808323119">postinstall.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.1.2 "><p id="mrs_01_24161__p318019317317">IoTDB process startup log.</p>
</td>
</tr>
<tr id="mrs_01_24161__row918011363114"><td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.1.1 "><p id="mrs_01_24161__p181801536312">prestart.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.1.2 "><p id="mrs_01_24161__p171802353112">Log that records IoTDB process startup exceptions.</p>
</td>
</tr>
<tr id="mrs_01_24161__row81803320316"><td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.1.1 "><p id="mrs_01_24161__p1718011310314">service-healthcheck.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.1.2 "><p id="mrs_01_24161__p11801631310">IoTDB database initialization log.</p>
</td>
</tr>
<tr id="mrs_01_24161__row8180183163115"><td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.1.1 "><p id="mrs_01_24161__p91802373116">start.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.1.2 "><p id="mrs_01_24161__p318012323115">IoTDBServer service startup log.</p>
</td>
</tr>
<tr id="mrs_01_24161__row81805315310"><td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.1.1 "><p id="mrs_01_24161__p111801353113">stop.log</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.1.2 "><p id="mrs_01_24161__p1218014311319">IoTDBServer service stop log.</p>
</td>
</tr>
<tr id="mrs_01_24161__row121803343114"><td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.1.1 "><p id="mrs_01_24161__p161806317312">IoTDBServer-omm-&lt;timestamp&gt;-&lt;pid&gt;-gc.log.0.current</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.3.2.4.1.2 "><p id="mrs_01_24161__p1518019316314">IoTDBServer service GC log.</p>
</td>
</tr>
<tr id="mrs_01_24161__row818016316314"><td class="cellrowborder" valign="top" width="16.71717171717172%" headers="mcps1.3.3.2.4.1.1 "><p id="mrs_01_24161__p111807320313">Audit log</p>
</td>
<td class="cellrowborder" valign="top" width="46.02020202020202%" headers="mcps1.3.3.2.4.1.2 "><p id="mrs_01_24161__p5180132319">log_audit.log</p>
</td>
<td class="cellrowborder" valign="top" width="37.26262626262626%" headers="mcps1.3.3.2.4.1.3 "><p id="mrs_01_24161__p61806333112">IoTDB audit log.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="mrs_01_24161__p41801536316"><strong id="mrs_01_24161__b118073193111">Log levels</strong></p>
<p id="mrs_01_24161__p618073193118"><a href="#mrs_01_24161__table135218393114">Table 2</a> describes the log levels supported by IoTDB.</p>
<p id="mrs_01_24161__p51809318310">Levels of logs are ERROR, WARN, INFO, and DEBUG from the highest to the lowest priority. Run logs of equal or higher levels are recorded. The higher the specified log level, the fewer the logs recorded.</p>
<div class="tablenoborder"><a name="mrs_01_24161__table135218393114"></a><a name="table135218393114"></a><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_24161__table135218393114" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Log levels</caption><thead align="left"><tr id="mrs_01_24161__row1018023173119"><th align="left" class="cellrowborder" valign="top" width="42.39%" id="mcps1.3.7.2.3.1.1"><p id="mrs_01_24161__p2018063153113"><strong id="mrs_01_24161__b12180163123118">Level</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="57.60999999999999%" id="mcps1.3.7.2.3.1.2"><p id="mrs_01_24161__p131804303110"><strong id="mrs_01_24161__b1518013313316">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_01_24161__row91801435313"><td class="cellrowborder" valign="top" width="42.39%" headers="mcps1.3.7.2.3.1.1 "><p id="mrs_01_24161__p171803317312">ERROR</p>
</td>
<td class="cellrowborder" valign="top" width="57.60999999999999%" headers="mcps1.3.7.2.3.1.2 "><p id="mrs_01_24161__p9180183193118">Logs of this level record error information about system running.</p>
</td>
</tr>
<tr id="mrs_01_24161__row218010303119"><td class="cellrowborder" valign="top" width="42.39%" headers="mcps1.3.7.2.3.1.1 "><p id="mrs_01_24161__p131801338310">WARN</p>
</td>
<td class="cellrowborder" valign="top" width="57.60999999999999%" headers="mcps1.3.7.2.3.1.2 "><p id="mrs_01_24161__p01811731310">Logs of this level record exception information about the current event processing.</p>
</td>
</tr>
<tr id="mrs_01_24161__row14181113103120"><td class="cellrowborder" valign="top" width="42.39%" headers="mcps1.3.7.2.3.1.1 "><p id="mrs_01_24161__p9181163123115">INFO</p>
</td>
<td class="cellrowborder" valign="top" width="57.60999999999999%" headers="mcps1.3.7.2.3.1.2 "><p id="mrs_01_24161__p16181138316">Logs of this level record normal running status information about the system and events.</p>
</td>
</tr>
<tr id="mrs_01_24161__row1018111393120"><td class="cellrowborder" valign="top" width="42.39%" headers="mcps1.3.7.2.3.1.1 "><p id="mrs_01_24161__p14181103183110">DEBUG</p>
</td>
<td class="cellrowborder" valign="top" width="57.60999999999999%" headers="mcps1.3.7.2.3.1.2 "><p id="mrs_01_24161__p518153123118">Logs of this level record the system information and system debugging information.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="mrs_01_24161__p1618110315314">To modify log levels, perform the following operations:</p>
<ol id="mrs_01_24161__ol1818113313318"><li id="mrs_01_24161__li0181143113111">Go to the <strong id="mrs_01_24161__b858913308114240">All Configurations</strong> page of the IoTDB service by referring to <a href="mrs_01_1293.html">Modifying Cluster Service Configuration Parameters</a>.</li><li id="mrs_01_24161__li1018115393118">In the navigation tree on the left, select <strong id="mrs_01_24161__b897814485710">Log</strong> corresponding to the role to be modified.</li><li id="mrs_01_24161__li12181163133119">Select a desired log level and save the configuration.</li></ol>
<div class="note" id="mrs_01_24161__note447372111351"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_24161__p04746215358">The IoTDB log level takes effect 60 seconds after being configured. You do not need to restart the service.</p>
</div></div>
<div class="section" id="mrs_01_24161__section1436711318323"><h4 class="sectiontitle">Log Formats</h4><p id="mrs_01_24161__p718115353118">The following table lists the IoTDB log formats:</p>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_24161__table2561430317" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Log formats</caption><thead align="left"><tr id="mrs_01_24161__row1118110314317"><th align="left" class="cellrowborder" valign="top" width="10.636363636363637%" id="mcps1.3.12.2.4.1.1"><p id="mrs_01_24161__p918111313119"><strong id="mrs_01_24161__b1918115343115">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="38.282828282828284%" id="mcps1.3.12.2.4.1.2"><p id="mrs_01_24161__p10181739319"><strong id="mrs_01_24161__b918120315317">Format</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="51.08080808080808%" id="mcps1.3.12.2.4.1.3"><p id="mrs_01_24161__p121811939312"><strong id="mrs_01_24161__b0181153203111">Example</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_01_24161__row101815317315"><td class="cellrowborder" valign="top" width="10.636363636363637%" headers="mcps1.3.12.2.4.1.1 "><p id="mrs_01_24161__p018115363114">Run log</p>
</td>
<td class="cellrowborder" valign="top" width="38.282828282828284%" headers="mcps1.3.12.2.4.1.2 "><p id="mrs_01_24161__p21817313119">&lt;<em id="mrs_01_24161__i15415045171519">yyyy-MM-dd HH:mm:ss,SSS</em>&gt; | <em id="mrs_01_24161__i1645062591419">Log level</em> | [<em id="mrs_01_24161__i1473914821511">Thread name</em>] | <em id="mrs_01_24161__i162661351171510">Log information</em> | <em id="mrs_01_24161__i7642145519154">Log printing class</em> (<em id="mrs_01_24161__i24223592151">File</em>:<em id="mrs_01_24161__i9299122141610">Line number</em>)</p>
</td>
<td class="cellrowborder" valign="top" width="51.08080808080808%" headers="mcps1.3.12.2.4.1.3 "><p id="mrs_01_24161__p17181736311">2021-06-08 10:08:41,221 | ERROR | [main] | Client failed to open SaslClientTransport to interact with a server during session initiation: | org.apache.iotdb.rpc.sasl.TFastSaslTransport (TFastSaslTransport.java:257)</p>
</td>
</tr>
<tr id="mrs_01_24161__row1218111393111"><td class="cellrowborder" valign="top" width="10.636363636363637%" headers="mcps1.3.12.2.4.1.1 "><p id="mrs_01_24161__p181811137316">Audit log</p>
</td>
<td class="cellrowborder" valign="top" width="38.282828282828284%" headers="mcps1.3.12.2.4.1.2 "><p id="mrs_01_24161__p01816311312">&lt;<em id="mrs_01_24161__i67471518191618">yyyy-MM-dd HH:mm:ss,SSS</em>&gt; | <em id="mrs_01_24161__i1748151871612">Log level</em> | [<em id="mrs_01_24161__i1074961810166">Thread name</em>] | <em id="mrs_01_24161__i11750171818162">Log information</em> | <em id="mrs_01_24161__i27513182160">Log printing class</em> (<em id="mrs_01_24161__i1375241815164">File</em>:<em id="mrs_01_24161__i975314181165">Line number</em>)</p>
</td>
<td class="cellrowborder" valign="top" width="51.08080808080808%" headers="mcps1.3.12.2.4.1.3 "><p id="mrs_01_24161__p918133173113">2021-06-08 11:03:49,365 | INFO | [ClusterClient-1] | Session-1 is closing | IoTDB_AUDIT_LOGGER (TSServiceImpl.java:326)</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_24144.html">Using IoTDB</a></div>
</div>
</div>