Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I tell syslog-ng that I would like to switch the logfiles.

I'm looking for a command or signal to tell syslog-ng to perform a logswitch. A search of the documentation and FAQ did not come up with a solution.

share|improve this question

It's logrotate which takes care of rotating logs. logrotate -f forces the log rotation even if logrotate think it is not needed. After that you can tell syslog-ng to reopen its logfiles with killall -HUP syslog-ng (or, quite likely, your logrotate will do that for you in its post-rotate hooks).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.