logrot.pl: which logfiles need dmgtd to be stopped

Answered Question
Jun 15th, 2009
User Badges:
  • Blue, 1500 points or more

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?


Correct Answer by Joe Clarke about 7 years 11 months ago

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
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Joe Clarke Mon, 06/15/2009 - 08:28
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

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.

Actions

This Discussion