[rhelv6-list] rsyslog failing to log

David C. Miller millerdc at fusion.gat.com
Thu Sep 22 19:47:40 UTC 2011



----- Original Message -----
> From: "Paul Reilly" <pareilly at tcd.ie>
> To: rhelv6-list at redhat.com
> Sent: Wednesday, September 21, 2011 9:43:50 AM
> Subject: [rhelv6-list] rsyslog failing to log
> 
> 
> Hi,
> 
> I've a new stock 6.1 box, and having some trouble with rsyslog.
> I've added some additional syslog facilities to log to different
> files.
> In my /etc/rsyslog.conf I have entries for
> 
> local1.* /logs/app1.log
> local2.* /logs/app2.log
> 
> These files exist already, with 755 permissions. However when I
> restart rsyslogd, I get the following errors:
> 
> Sep 21 17:29:23 sys rsyslogd-2039: Could no open output file
> '/logs/app1.log' [try http://www.rsyslog.com/e/2039 ]
> 
> If I remove the log files, rsyslogd does not create them, which is
> what I would have expected.
> Any ideas what the problem is?
> 
> Paul
> 
You need to change the selinux context of your /logs to be the same as /var/log

chcon -R --reference /var/log /logs

David.




More information about the rhelv6-list mailing list