Files
doc-exports/docs/mrs/umn/admin_guide_000196.html
Yang, Tong 3b1f73dece MRS UMN 2.0.38.SP20 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Yang, Tong <yangtong2@huawei.com>
Co-committed-by: Yang, Tong <yangtong2@huawei.com>
2022-12-13 12:03:34 +00:00

24 lines
3.7 KiB
HTML

<a name="admin_guide_000196"></a><a name="admin_guide_000196"></a>
<h1 class="topictitle1">Configuring the Number of Local Audit Log Backups</h1>
<div id="body1529658735912"><div class="section" id="admin_guide_000196__section27161899"><h4 class="sectiontitle">Scenario</h4><p id="admin_guide_000196__p46913694151338">Audit logs of cluster components are classified by name and stored in the <strong id="admin_guide_000196__b181566452437">/var/log/Bigdata/audit</strong> directory on each cluster node. The OMS automatically backs up the audit log directories at 03:00 every day.</p>
<p id="admin_guide_000196__p41912908151338">The audit log directory on each node is compressed and named in the <em id="admin_guide_000196__i3200132074516">&lt;Node IP address&gt;</em><strong id="admin_guide_000196__b9180202464516">.tar.gz</strong> format. All compressed files are compressed and named in the <em id="admin_guide_000196__i84271525463">&lt;yyyy-MM-dd_HH-mm-ss&gt;</em><strong id="admin_guide_000196__b8214355154620">.tar.gz</strong> format and saved in the <strong id="admin_guide_000196__b1181577124613">/var/log/Bigdata/audit/bk/</strong> directory on the active management node. In addition, the standby management node saves a copy of the file.</p>
<p id="admin_guide_000196__p39502398151338">By default, a maximum of 90 OMS backup files can be retained. This section describes how to configure the maximum number.</p>
</div>
<div class="section" id="admin_guide_000196__section76491354172820"><h4 class="sectiontitle">Procedure</h4><ol id="admin_guide_000196__ol29500344"><li id="admin_guide_000196__li64176508"><span>Log in to the active management node as user <strong id="admin_guide_000196__b11638108164611">omm</strong>.</span><p><div class="note" id="admin_guide_000196__note30914650"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="admin_guide_000196__p3760929115151">Perform this operation only on the active management node. This operation is not supported on the standby management nodes; otherwise, the cluster cannot work properly.</p>
</div></div>
</p></li><li id="admin_guide_000196__li4722387151754"><span>Run the following command to switch to the required directory:</span><p><p id="admin_guide_000196__p63687903151755"><strong id="admin_guide_000196__b63061572101933">cd ${BIGDATA_HOME}/om-</strong><strong id="admin_guide_000196__b66936930101935">server</strong><strong id="admin_guide_000196__b37734253101944">/</strong><strong id="admin_guide_000196__b57143001101945">om/</strong><strong id="admin_guide_000196__b4063964101944">sbin</strong></p>
</p></li><li id="admin_guide_000196__li4245329151539"><span>Run the following command to change the maximum number of audit log backup files to be retained:</span><p><p id="admin_guide_000196__p4086017715162"><strong id="admin_guide_000196__b56359328151827">./modifyLogConfig.sh -m</strong><strong id="admin_guide_000196__b154214194301"> <em id="admin_guide_000196__i57350874151831">Maximum number of backup files that can be retained</em></strong></p>
<p id="admin_guide_000196__p2134002515162">The default value is <strong id="admin_guide_000196__b77164254811">90</strong>. The value ranges from <strong id="admin_guide_000196__b64335515484">0</strong> to <strong id="admin_guide_000196__b151311975486">365</strong>. A larger value means to consume more disk space.</p>
<p id="admin_guide_000196__p5082044115162">If the following information is displayed, the operation is successful:</p>
<pre class="screen" id="admin_guide_000196__screen9982620151615">Modify log config successfully</pre>
</p></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>