投稿日: 2021年9月21日


Daily Rotation of Hinemos Agent Logs

Hello!
In this article, we will introduce you to the daily rotation of Hinemos Agent log files ”agent.log”.
”agent.log” files are output to the directory “under {Hinemos Agent’s installation directory/var/log/”.
Logs on Hinemos Agent’s behaviors are output to these ”agent.log” files. If a problem occurs with Hinemos Agent’s behaviors, the maintenance support team investigates the cause of the problem by checking the contents of these files.
Rotation of ”agent.log” files is performed every 20MB by default, and four generations of the files are stored.
This time, we will introduce you to how to rotate these files on a daily basis.
To perform daily rotation, modify configuration file ”log4j.properties” as shown below.

★Before modification

★After modification

This modification will enable daily rotation of ”agent.log” files under the file name of ”agent.log-yyyyMMdd”.
Note that “agent.log” files will continue to pile up after this modification since generation-based management of files cannot be performed. Therefore, unnecessary ”agent.log” files must be deleted periodically.

Conclusion

This time, we introduced you to how to perform ”agent.log” file rotation on a daily basis.
This setting may be useful if you wish to keep past ”agent.log” files in a storage, etc. for a certain period of time.
Thank you for reading!


ご意見やお問い合わせについて

この記事へのご意見やお問い合わせについては、こちら(お問い合わせフォーム)もしくは
Hinemos営業担当【hsd-sales@atomitech.jp】までご連絡ください。
※お問い合わせフォームからご連絡の場合には、お問い合わせ内容で「Hinemosについて」を選択し、
本文の冒頭に「Hinemos研究日記_【タイトル名】」とご記載ください。

定期的にHinemos相談会をzoomで開催しております。
下記もご利用ください。