Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-19065

Zabbix agent2 continues to write to the same log file, if it was moved

XMLWordPrintable

    • Sprint 74 (Mar 2021), Sprint 75 (Apr 2021), Sprint 76 (May 2021)
    • 0.5

      Zabbix agent2 writes to log file /var/log/zabbix/zabbix_agent2.log

      Execute command:

      mv /var/log/zabbix/zabbix_agent2.log /var/log/zabbix/zabbix_agent2.log.old
      

      The agent2 keeps writing into zabbix_agent2.log.old.
      Same thing happens when logrotate moves the file - the agent2 keeps writing to the old file until a restart.

      Additionally, it seems that if the file is removed, Zabbix agent2 just stops logging at all, but keeps working.

            esneiders Eriks Sneiders
            zux Edgars Melveris
            Team INT
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: