Hello Rsyslog community,

Iam monitoring some log files via imfile, and sending it to a remote location via imudp.

The problem is that internal logrotating done with this line:

/var/log/incoming/*.log {
        weekly
        missingok
        rotate 52
        dateext
        notifempty
        create 640 nginx adm
        sharedscripts
    postrotate
                /etc/init.d/rsyslog restart >/dev/null 2>&1 || true
    endscript
}


This causes later that the rsyslog stat file associated with each log looses its place and Iam in need of manually deleting the /var/lib/rsyslog stat files and then restarting rsyslog.

Is there a more conveniente way to tell rsyslog to do this flush without my having to script this action manually in the postorate of logrotation?

Thanks.

Alex

_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to