[rsyslog-notify] Forum Thread: Permissions of files containg logs from remote hosts - (Mode 'post')
noreply at adiscon.com
noreply at adiscon.com
Tue Mar 11 10:36:49 CET 2014
User: dj.dule
Forumlink: http://kb.monitorware.com/viewtopic.php?p=24336#p24336
Message:
----------
Hi,
I am using Red Hat Enterprise Linux 6 and rsyslog shipped with it. I
configured rsyslog to receive logs from remote hosts and it works fine.
However, all files are created with 600 privileges. I want to make them
world readable, 644 but configuration is not working.
Here is relevant piece of rsyslog.conf:
$umask 0000
$FileCreateMode 0644
$template FILENAME,"/var/log/remotelogs/%fromhost-ip%/syslog.log"
$FileCreateMode 0644
*.* ?FILENAME
$umask 0077
Here is result:
[root at central-log-server remotelogs]# ls -laR
.:
total 16
drwxr-xr-x. 4 root root 4096 Mar 11 09:32 .
drwxr-xr-x. 13 root root 4096 Mar 10 16:35 ..
drwx------. 2 root root 4096 Mar 11 09:32 10.142.107.154
./10.142.107.154:
total 12
drwx------. 2 root root 4096 Mar 11 09:32 .
drwxr-xr-x. 4 root root 4096 Mar 11 09:32 ..
-rw-------. 1 root root 40 Mar 11 09:32 syslog.log
How I can configure rsyslog to create files containing remote logs with 644
privileges ?
Thanks,
Dusan
More information about the rsyslog-notify
mailing list