Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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.