Skip to main content
Esteemed Contributor III
Apr 10, 2011 8:22 AM UTC
Question

fortinet syslog and logrotate

hi. i use and external server as my syslog server for the fortinet. i would like to activate a logrotate on my server for the fortinate logs, however, i do not know how to force the syslog on the fortinate to restart from my external server. otherwise it will just keep outputting to the newly renamed file and not to the new empty file. anyone can help?

    2 replies

    ede_pfau
    SuperUser
    SuperUser
    Apr 10, 2011 11:14 AM UTC
    Methinks that is a feature of your syslog server. The FGT logs to the IP of the server not to a specific file. The syslog server should copy the current log file, rename it and clear the current one. I use Kiwi syslog (now part of Solarwinds) but I haven' t used log rotation yet.
    SECCON1MC
    New Member
    Jun 22, 2011 8:51 PM UTC
    Setting a sighup on your syslog service that is called in conjunction with log rotation should do the trick. The issue is the file lock on your syslog server and nothing todo with the fortigate. Good Luck
    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024