Read a log with yesterdays date in the filename
I'm successfully using this config format with im_file to read logs with todays date in the filename:
'\\server.domain\Logs\IN' + strftime(now(), "%y%m%d") + '.log'
One of our services writes its log for the previous day at 3am on the next day. The filename has yesterdays date. What's the easiest/neatest/most efficient way of reading this log please?
Hi @James,
To achieve this specific use case, please configure another im_file module to read the logs from the file whose filename is yesterday date using the following config format:
'\\server.domain\Logs\IN' + strftime((now() - 86400), "%y%m%d") + '.log'
Regards,
David