Ad Widget

Collapse

Can I include the Zabbix Server log in the logrotate? How?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cesarsj
    Senior Member
    • Dec 2018
    • 154

    #1

    Can I include the Zabbix Server log in the logrotate? How?


    I would also like to know if I can increase the size of the logsize without having to restart the Zabbix Server.
    Last edited by cesarsj; 20-02-2020, 18:37.
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    If you're going to use the Linux 'logrotate' command to manage log file rotation, you don't want to increase the LogFileSize parameter in zabbix_serverd.conf, you want to set it to 0. That disables Zabbix's internal log file rotation. Looking at the man page for zabbix_serverd, I don't see a way to change that without having to restart the server.

    Because my organization wants the Zabbix logs to be handled the same way all our other system logs are, we do use logrotate to handle rotation of the server (and agent) files. It has worked well for us.

    Comment

    Working...