Start a Conversation

Unsolved

This post is more than 5 years old

2176

June 10th, 2010 08:00

Log files in Smarts

Can I automatically limit the size of adapter log files, and start a new file for the same adapter.

July 14th, 2010 18:00

I don't know of a way to roll logs based on size, but you could roll them based on time (e.g. via crontab) by issuing a proper "kill" command to the sm_server (or sm_adapter or any other SMARTS daemon) process. It interprets that as a trigger to roll the log (e.g. move domain-a.log to domain-a.log1, and so on).

I suggest you test it in a non production environment. It's either "kill -HUP" or "kill -USR1".

You could also wrap this in a custom script that checks the log size and then issue the command above at the right time.

Hope this helps,

Vinnie

No Events found!

Top