How to specify date of yesterday in Log Import section?

Alexei Korobkin 4job at mail.ru
Fri Mar 2 16:23:11 CET 2007


Dear All,

Sorry for easy question, I can't find an answer in Archives or in man strftime.
My firewall logs are gzipped daily and path to them looks like
/var/log/fw/2007/03/02/firewall.log.gz

I want Lire to run in the morning, parse yesterday log and send me the report.
But I can't think of how I could specify this path in lire interface, in strftime format.

Could someone provide me with an example, or it is simply impossible within config.xml
and I have to use my own cron jobs like
lr_log2report firewall /var/log/`date -d '-1 day' +%Y/%m/%d/`/firewall.log.gz
?

--
With best regards, Alexey Korobkin. 


-- 
To UNSUBSCRIBE, email to questions-request at logreport.org with a subject of 
"unsubscribe". Trouble? Send an email with subject "help" to 
questions-request at logreport.org



More information about the Questions mailing list