[rsyslog-notify] Forum Thread: Re: Change FileOwner for a special file only - (Mode 'reply')

noreply at adiscon.com noreply at adiscon.com
Mon Mar 2 14:45:27 CET 2015


User: raphaelk 
Forumlink: http://kb.monitorware.com/viewtopic.php?p=25290#p25290

Message: 
----------
Hi Rainer,
Thx for your answer.

I've made the change in the conf file, and I'm a bit confused. It doesn t
work. 

[code:783t077e]rm /var/log/raphael.log

cat /etc/rsyslog.d/raphael.conf 
if $msg contains 'raphael' then action(type="omfile"
file="/var/log/raphael.log" fileOwner="raphael")

service rsyslogd restart

logger -t raphael raphael

ls -l /var/log/raphael.log
-rw-r----- 1 syslog adm       222 mars   2 14:33 raphael.log

cat /etc/passwd
raphael:x:1000:1000:,,,:/home/raphael:/bin/bash
[/code:783t077e]

Any other idea ?

Maybe it is due to the version I use (7.4.4, on ubuntu 14.04 64bits). 

Raphael.


More information about the rsyslog-notify mailing list