On Thu, 17 Apr 2014, Marcin Mirosław wrote:

Hi everybody!

I'm logging messages from Apache using cronolog to files with names as
shown: /data/log/%Y_%m_%d_errors.log
Recently became a need to send error log to central host. Ok, no
problem, there is imfile module!:) Next I looked at page
http://www.rsyslog.com/doc/imfile.html and what I can see?
"File (mandatory)
The file to be monitored. This must be an absolute name."
Ough! Really I can't use dynamic template in imfile? Or it just means
that template should have absolute path?

yep, you can't use dynamic names or wildcards for imfile.

If I can't use tempates in imfile then how I should do it? (I prefer not
to use logger inside apache).

a couple common things people do:

have apache write to a file and then something else rotate it

have apache write to a named pipe and have something listen to that pipe and deliver it to rsyslog

David Lang
_______________________________________________
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