----- Original Message ----- > From: "Paul Reilly" <[email protected]> > To: [email protected] > 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. _______________________________________________ rhelv6-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/rhelv6-list
