Getting SEC to only monitor latest version of a log file?
Posted
by
user439407
on Server Fault
See other posts from Server Fault
or by user439407
Published on 2012-10-01T08:19:59Z
Indexed on
2012/10/01
9:39 UTC
Read the original article
Hit count: 219
I have been tasked with running SEC to help correlate PHP logs. The basic setup is pretty straightforward, the problem I'm having is that we want to monitor a log file whose name contains the date(php-2012-10-01.log for instance). How can I tell SEC to only monitor the latest version of the file(and of course switch to the newest log file every day at midnight) I could do something like create a latest version of the file that links to the latest version and run a cron job at midnight to update the link, but I am looking for a more elegant solution
© Server Fault or respective owner