Hi, this is my test configuration:
> # Set defaults for every output file > $FileOwner root > $FileGroup adm > $Umask 0022 > > module( > load="builtin:omfile" > Template="RSYSLOG_TraditionalFileFormat" > FileCreateMode="0644" > DirCreateMode="0755" > ) > > > ############### > ### ACTIONS ### > ############### > > local5.* action( > type="omfile" > File="/var/log/test.log" > ) 1) rsyslogd is not running. 2) "/var/log/test.log" doesn't exist yet: > # ls -l /var/log/test.log > ls: cannot access /var/log/test.log: No such file or directory 3) Now it is time to start rsyslog 4) ...and to inject something for "/var/log/test.log": > # logger -p local5.info -t tester Foo As expected, rsyslogd created "/var/log/test.log", but the group was not set to "adm": > # ls -l /var/log/test.log > -rw-r--r-- 1 root root 42 May 5 20:51 /var/log/test.log I expected > -rw-r--r-- 1 root adm 42 May 5 20:51 /var/log/test.log I am not sure if my expectation is wrong, because <http://www.rsyslog.com/doc/v7-stable/configuration/global/options/rsconf1_filegroup.html> says > Set the group for dynaFiles newly created [...] ...and I am not using dynaFiles in my example, do I? However, reading through the net indicates that many people are sharing my expectation... Using > local5.* action( > type="omfile" > File="/var/log/test.log" > FileGroup="adm" > ) will work, but I don't want to set "FileGroup" per action ;) Tested with rsyslog-7.6.3. -Thomas _______________________________________________ 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.

