Applications Manager ナレッジベース

ログの保存数を変更したい


【現象/要望】
ログの保存数の設定を変更したい。製品ログの保存期間を延長したい。
ログの保存容量を増やさないため、ログの保存数を減らしたい。
製品ログの1ファイルあたりの容量を少なくしたい。

【解決策】
Applications Managerインストールフォルダ・ディレクトリ/working/conf/logging_parameters.confから設定を変更可能です。

nmserr.txt

nmserr.txtの1ファイルあたりの最大行数、ファイル保存数を変更するには、以下の箇所を変更します。

<LOG_USER MaxLines="10000" UseTimeStamp="true" LogsDirectory="../logs/nms" FileCount="10" FileName="nmserr.txt" MaxLinesCached="0">

行数を定義:
MaxLines="10000"
保存数を定義:
FileCount="10"

nmsout.txt

nmsout.txtの1ファイルあたりの最大行数、ファイル保存数を変更するには、以下の箇所を変更します。

<LOG_USER MaxLines="10000" UseTimeStamp="true" LogsDirectory="../logs/nms" FileCount="10" FileName="nmsout.txt" MaxLinesCached="0">

行数を定義:
MaxLines="10000"
保存数を定義:
FileCount="10"

discoveryLogs.txt

discoveryLogs.txtの1ファイルあたりの最大行数、ファイル保存数を変更するには、以下の箇所を変更します。

<LOG_USER MaxLines="10000" UseTimeStamp="true" LogsDirectory="../logs/nms" FileCount="10" FileName="discoveryLogs.txt" MaxLinesCached="0">

行数を定義:
MaxLines="10000"
保存数を定義:
FileCount="10"

transactionLogs.txt

transactionLogs.txtの1ファイルあたりの最大行数、ファイル保存数を変更するには、以下の箇所を変更します。

<LOG_USER MaxLines="10000" UseTimeStamp="true" LogsDirectory="../logs/nms" FileCount="10" FileName="transactionLogs.txt" MaxLinesCached="0">

行数を定義:
MaxLines="10000"
保存数を定義:
FileCount="10"

alert_audit.txt

alert_audit.txtの1ファイルあたりの最大行数、ファイル保存数を変更するには、以下の箇所を変更します。

<LOG_USER MaxLines="10000" UseTimeStamp="true" LogsDirectory="../logs/nms" FileCount="30" FileName="alert_audit.txt" MaxLinesCached="0">

行数を定義:
MaxLines="10000"
保存数を定義:
FileCount="30"

audit.txt

audit.txtの1ファイルあたりの最大行数、ファイル保存数を変更するには、以下の箇所を変更します。

<LOG_USER MaxLines="10000" UseTimeStamp="true" LogsDirectory="../logs/audit" FileCount="30" FileName="audit.txt" MaxLinesCached="0">

行数を定義:
MaxLines="10000"
保存数を定義:
FileCount="30"

stdout.txt

stdout.txtの1ファイルあたりの最大行数、ファイル保存数を変更するには、以下の箇所を変更します。

<LOG_USER MaxLines="10000" UseTimeStamp="true" LogsDirectory="../logs" FileCount="30" FileName="stdout.txt" MaxLinesCached="0">

行数を定義:
MaxLines="10000"
保存数を定義:
FileCount="30"

stderr.txt

stderr.txtの1ファイルあたりの最大行数、ファイル保存数を変更するには、以下の箇所を変更します。

<SYS_ERR MaxLines="10000" UseTimeStamp="true" LogsDirectory="../logs" FileCount="30" FileName="stderr.txt" Logging="true"/>

行数を定義:
MaxLines="10000"
保存数を定義:
FileCount="30"

msout.txt

msout.txtの1ファイルあたりの最大行数、ファイル保存数を変更するには、以下の箇所を変更します。

<LOG_USER MaxLines="10000" UseTimeStamp="true" LogsDirectory="../logs/nms" FileCount="10" FileName="msout.txt" MaxLinesCached="0">

行数を定義:
MaxLines="10000"
保存数を定義:
FileCount="10"

mserr.txt

mserr.txtの1ファイルあたりの最大行数、ファイル保存数を変更するには、以下の箇所を変更します。

<LOG_USER MaxLines="10000" UseTimeStamp="true" LogsDirectory="../logs/nms" FileCount="10" FileName="mserr.txt" MaxLinesCached="0">

行数を定義:
MaxLines="10000"
保存数を定義:
FileCount="10"

applnout.txt

applnout.txtの1ファイルあたりの最大行数、ファイル保存数を変更するには、以下の箇所を変更します。

<LOG_USER MaxLines="10000" UseTimeStamp="true" LogsDirectory="../logs/nms" FileCount="10" FileName="applnout.txt" MaxLinesCached="0">

行数を定義:
MaxLines="10000"
保存数を定義:
FileCount="10"

applnerr.txt

applnerr.txtの1ファイルあたりの最大行数、ファイル保存数を変更するには、以下の箇所を変更します。

<LOG_USER MaxLines="10000" UseTimeStamp="true" LogsDirectory="../logs/nms" FileCount="10" FileName="applnerr.txt" MaxLinesCached="0">

行数を定義:
MaxLines="10000"
保存数を定義:
FileCount="10"

【対応ビルド】全て

★-----------------------------------------------------------------------------★
ApplicationsManager 製品紹介ページはこちら ↓
https://www.manageengine.jp/products/Applications_Manager/
★-----------------------------------------------------------------------------★