my guess is that it's a permission problem. nothing in rsyslog would prevent this.

David Lang

On Mon, 20 Sep 2010, Bernard Fay wrote:

Date: Mon, 20 Sep 2010 11:39:40 -0400
From: Bernard Fay <[email protected]>
Reply-To: rsyslog-users <[email protected]>
To: rsyslog-users <[email protected]>
Subject: [rsyslog] Unable to log somewhere else than /var/log/

I tried to setup the following in /etc/rsyslog.conf:

local5.* /var/log/httpd/test_logger

To help debug I also have this:
*.* /var/log/all.log;RSYSLOG_DebugFormat

When I restart rsyslog, I can see this in my debug log:

Debug line with all properties:
FROMHOST: 'QLPRX51P', fromhost-ip: '127.0.0.1', HOSTNAME: 'QLPRX51P', PRI:
43,
syslogtag 'rsyslogd:', programname: 'rsyslogd', APP-NAME: 'rsyslogd',
PROCID: '-', MSGID: '-',
TIMESTAMP: 'Sep 20 11:21:26', STRUCTURED-DATA: '-',
msg: '/var/log/httpd/test_logger'
escaped msg: '/var/log/httpd/test_logger'
rawmsg: '/var/log/httpd/test_logger'


I tried to log something in '/var/log/httpd/test_logger'  with
logger -p local5.debug -- test to log in httpd/test_logger

but the content appear in /var/log/messages not
in '/var/log/httpd/test_logger'.

If I try to write in a directory other than /var/log/ it does not work.

Someone has a clue on this?

Thanks
Bernard
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com

_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com

Reply via email to