Files
doc-exports/docs/mrs/umn/admin_guide_000195.html
Yang, Tong 2195db241c MRS UMN 20231220 version update
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Reviewed-by: Rechenburg, Matthias <matthias.rechenburg@t-systems.com>
Co-authored-by: Yang, Tong <yangtong2@huawei.com>
Co-committed-by: Yang, Tong <yangtong2@huawei.com>
2024-05-16 09:40:21 +00:00

29 lines
8.4 KiB
HTML

<a name="admin_guide_000195"></a><a name="admin_guide_000195"></a>
<h1 class="topictitle1">Configuring the Log Level and Log File Size</h1>
<div id="body1529658735917"><div class="section" id="admin_guide_000195__section21092604"><h4 class="sectiontitle">Scenario</h4><p id="admin_guide_000195__p46431039">You can change the log levels of <span id="admin_guide_000195__text67509419010">MRS</span> Manager. For a specific service, you can change the log level and the log file size to prevent the failure in saving logs due to insufficient disk space.</p>
</div>
<div class="section" id="admin_guide_000195__section55615708"><h4 class="sectiontitle">Impact on the System</h4><p id="admin_guide_000195__p2817790">The services need to be restarted for the new configuration to take effect. During the restart, the services are unavailable.</p>
</div>
<div class="section" id="admin_guide_000195__section155193013273"><h4 class="sectiontitle">Changing the <span id="admin_guide_000195__text568624841315">MRS</span> Manager Log Level</h4><ol id="admin_guide_000195__ol32584858"><li id="admin_guide_000195__li24828267">Log in to the active management node as user <strong id="admin_guide_000195__b8577748142511">omm</strong>.</li><li id="admin_guide_000195__li64932605">Run the following command to switch to the required directory:<p class="litext" id="admin_guide_000195__p47522535"><a name="admin_guide_000195__li64932605"></a><a name="li64932605"></a><strong id="admin_guide_000195__b2566363911290">cd ${BIGDATA_HOME}/om-server/om/sbin</strong></p>
</li><li id="admin_guide_000195__li24120165">Run the following command to change the log level:<p class="litext" id="admin_guide_000195__p15754898"><a name="admin_guide_000195__li24120165"></a><a name="li24120165"></a><strong id="admin_guide_000195__b15895134211192">./setLogLevel.sh</strong><em id="admin_guide_000195__i11884549121920">Log level parameters</em></p>
<p class="litext" id="admin_guide_000195__p9705366">The priorities of log levels are FATAL, ERROR, WARN, INFO, and DEBUG in descending order. Logs whose levels are higher than or equal to the set level are printed. The number of printed logs decreases as the configured log level increases.</p>
<ul id="admin_guide_000195__ul20239433"><li id="admin_guide_000195__li47937177"><strong id="admin_guide_000195__b55745335246">DEFAULT</strong>: After this parameter is set, the default log level is used.</li><li id="admin_guide_000195__li28781414"><strong id="admin_guide_000195__b16319258102711">FATAL</strong>: critical error log level. After this parameter is set, only logs of the <strong id="admin_guide_000195__b86261922152819">FATAL</strong> level are printed.</li><li id="admin_guide_000195__li57706137"><strong id="admin_guide_000195__b967265802716">ERROR</strong>: error log level. After this parameter is set, logs of the <strong id="admin_guide_000195__b54017404286">ERROR</strong> and <strong id="admin_guide_000195__b569719411287">FATAL</strong> levels are printed.</li><li id="admin_guide_000195__li49593187"><strong id="admin_guide_000195__b12864190163014">WARN</strong>: warning log level. After this parameter is set, logs of the <strong id="admin_guide_000195__b122995312281">WARN</strong>, <strong id="admin_guide_000195__b184983555281">ERROR</strong>, and <strong id="admin_guide_000195__b097813583286">FATAL</strong> levels are printed.</li><li id="admin_guide_000195__li43685501"><strong id="admin_guide_000195__b1469201311311">INFO</strong> (default): informational log level. After this parameter is set, logs of the <strong id="admin_guide_000195__b91640191298">INFO</strong>, <strong id="admin_guide_000195__b562012152914">WARN</strong>, <strong id="admin_guide_000195__b850610231299">ERROR</strong>, and <strong id="admin_guide_000195__b1085320251298">FATAL</strong> levels are printed.</li><li id="admin_guide_000195__li57625192"><strong id="admin_guide_000195__b6970183712328">DEBUG</strong>: debugging log level. After this parameter is set, logs of the <strong id="admin_guide_000195__b75623472913">DEBUG</strong>, <strong id="admin_guide_000195__b16541143602919">INFO</strong>, <strong id="admin_guide_000195__b15311139162911">WARN</strong>, <strong id="admin_guide_000195__b132419411298">ERROR</strong>, and <strong id="admin_guide_000195__b25098434292">FATAL</strong> levels are printed.</li><li id="admin_guide_000195__li122835445814"><strong id="admin_guide_000195__b84196335114627">TRACE</strong>: tracing log level. After this parameter is set, logs of the <strong id="admin_guide_000195__b1875962703013">TRACE</strong>, <strong id="admin_guide_000195__b159931433163018">DEBUG</strong>, <strong id="admin_guide_000195__b8465143714309">INFO</strong>, <strong id="admin_guide_000195__b3755154214305">WARN</strong>, <strong id="admin_guide_000195__b8630184733011">ERROR</strong>, and <strong id="admin_guide_000195__b9610175263018">FATAL</strong> levels are printed.</li></ul>
<div class="note" id="admin_guide_000195__note48864686"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p class="text" id="admin_guide_000195__p37128990">The log levels of components are different from those defined in open-source code.</p>
</div></div>
</li><li id="admin_guide_000195__li65725459">Download and view logs to verify that the log level settings have taken effect. For details, see <a href="admin_guide_000073.html">Log</a>.</li></ol>
</div>
<div class="section" id="admin_guide_000195__section231783810254"><h4 class="sectiontitle">Changing the Service Log Level and Log File Size</h4><div class="note" id="admin_guide_000195__note11224152116164"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="admin_guide_000195__p1122411213165">KrbServer, LdapServer, and DBService do not support the changing of service log levels and log file sizes.</p>
</div></div>
<ol id="admin_guide_000195__ol15625124242513"><li id="admin_guide_000195__li1962454215255"><span>Log in to <span id="admin_guide_000195__text1229025019138">MRS</span> Manager.</span></li><li id="admin_guide_000195__li1662454213250"><span>Choose <strong id="admin_guide_000195__b1186121519147">Cluster</strong> &gt; <em id="admin_guide_000195__i17862315191413">Name of the desired cluster</em> &gt; <strong id="admin_guide_000195__b7862915141418">Services</strong>.</span></li><li id="admin_guide_000195__li136241242162511"><span>Click a service in the service list. On the displayed page, click the <strong id="admin_guide_000195__b884732103617">Configuration</strong> page.</span></li><li id="admin_guide_000195__li1062424214254"><span>On the displayed page, click the <strong id="admin_guide_000195__b191464352364">All Configuration</strong> tab. Expand the role instance displayed on the left of the page. Click <strong id="admin_guide_000195__b20769185093811">Log</strong> of the role to be modified.</span></li><li id="admin_guide_000195__li19624242162515"><span>Search for each parameter and obtain the parameter description. On the parameter configuration page, select the required log level or change the log file size. The unit of the log file size is MB.</span><p><div class="notice" id="admin_guide_000195__note14624242172517"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="admin_guide_000195__ul14624154215254"><li class="cautiontext" id="admin_guide_000195__li2624154211256">The system automatically deletes logs based on the configured log size. To save more information, set the log file size to a larger value. To ensure the integrity of log files, you are advised to manually back up the log files to another directory based on the actual service volume before the log files are cleared according to clearance rules.</li><li id="admin_guide_000195__li8624242202516">Some services do not support change of the log level on the UI.</li></ul>
</div></div>
</p></li><li id="admin_guide_000195__li862464222515"><span>Click <strong id="admin_guide_000195__b663942854112">Save</strong>. In the <strong id="admin_guide_000195__b881012338412">Save Configuration</strong> dialog box, click <strong id="admin_guide_000195__b12946123816413">OK</strong>.</span></li><li id="admin_guide_000195__li136251042202519"><span>Download and view logs to verify that the log level settings have taken effect.</span></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="admin_guide_000192.html">Log Management</a></div>
</div>
</div>