Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

logrot.pl: which logfiles need dmgtd to be stopped

Is there a list available that shows the log files which can only be rotated with dmgtd being stopped? I read in one thread that utm.log is a candidate for this. Or does this depend on the current state of the system like certain processes that are running?

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: logrot.pl: which logfiles need dmgtd to be stopped

It depends on how the log file is open. The only noted example of a file which requires offline rotation is jrm.log. The log4j managed files should be okay to rotate online, and most logs are now maintained by log4j.

However, if you find that rotating a log causes it to fill up with NUL bytes, then you will need to use offline rotation to properly truncate it.

1 REPLY
Cisco Employee

Re: logrot.pl: which logfiles need dmgtd to be stopped

It depends on how the log file is open. The only noted example of a file which requires offline rotation is jrm.log. The log4j managed files should be okay to rotate online, and most logs are now maintained by log4j.

However, if you find that rotating a log causes it to fill up with NUL bytes, then you will need to use offline rotation to properly truncate it.

292
Views
0
Helpful
1
Replies
CreatePlease login to create content