On Mon, 14 Apr 2014, Anwar El fatayri wrote:
Hey all, Im trying to use file system attributes to make log files oppened in append mode for writing (chattr +a logfile). This is my logrotate configuration file :/var/log/jboss-as/server.log{ create 0640 root jboss-as-logs rotate 4 dateext daily compress sharedscripts prerotate /usr/bin/chattr -a /var/log/jboss-as/server.log endscript postrotate /bin/kill -HUP `cat /var/run/syslogd.pid 2>/dev/null` 2>/dev/null || true /usr/bin/chattr +a /var/log/jboss-as/server.log endscript} The log file is rotated compressed, closed BUT not opened (created) by rsyslog. Any ideas ? Thx in advance.
rsyslog does not open the file until there is a log to put into the file. does this account for what you are seeing? David Lang _______________________________________________ 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.

