1 Copper

Log files in Smarts

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

0 Kudos
1 Reply
1 Copper

Re: Log files in Smarts

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,


0 Kudos