On 08/01/2013 16:33, Rainer Gerhards wrote:


Lines 37-44 are what I'm having trouble with.
I believe this should write my logs to a vhost-specific log file but it
doesn't seem to be working.

There is nothing obviously wrong, if I saw correctly. Are you sure the fields 
contain what you expect them to contain? IF on doubt, you can add

*.* /path/to/file;RSYSLOG_DebugFormat

To the conf and check what the values actually are.

IF that doesn't help, a debug log would be useful. It should contain few apache 
requests, at best one.

Rainer

Hi Rainer

The debug logging really helped.
It turns out it was working all along but I was being stupid and checking the Apache default log location in /var/log/httpd but in my rsyslog.conf I had /var/log/httpd_....log

So it all appears to be working as intended!
Thanks all for your help!

Ben

_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to