[rsyslog-notify] Forum Thread: Changing file ownership of logs generated by rsyslog. - (Mode 'post')
noreply at adiscon.com
noreply at adiscon.com
Fri Feb 7 18:20:46 CET 2014
User: k.madnani84
Forumlink: http://kb.monitorware.com/viewtopic.php?p=24197#p24197
Message:
----------
Hi,
I am new to rsyslog and trying to generate the logs from my UDP socket to a
file on disc on Red Hat Linux.I am able to produce the logs but the logs
are with ownership of root and no permission to others.How can i change the
ownership of specific logs and there permission.My settings are as such:
vi /etc/rsyslog.conf
# Provides UDP syslog reception
$ModLoad imudp
$UDPServerRun 514
$UDPServerAddress 127.0.0.1
# Provides TCP syslog reception
#$ModLoad imtcp
#$InputTCPServerRun 514
#### GLOBAL DIRECTIVES ####
# Use default timestamp format
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
I have a seperate conf file defined for my application like this:
vi /etc/rsysconf.d/haproxy.conf
if ($programname == 'haproxy' and $syslogseverity-text == 'info') then
-/opt/app/haproxy/log/haproxy-info.log
& ~
More information about the rsyslog-notify
mailing list