You could have apache log to a static file, then have something else rotate
it to a date names file and then restart apache.  Your current day would be
apache_errors.log, older days would be dated.




On Thu, Apr 17, 2014 at 6:01 AM, Marcin Mirosław <[email protected]> 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?
> If I can't use tempates in imfile then how I should do it? (I prefer not
> to use logger inside apache).
>
> I'm using rsylog 7+ (7.2.7)
> Regards,
> Marcin
> _______________________________________________
> 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.
>
_______________________________________________
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