I need to watch a log file for certain text. Problem is that every time the log file is updated it appends a datestamp on the end of it.
I'm stumped.... any ideas?
Not natively, but you could probably modify the Log Parser template that's included with SAM to include this capability. If you're not comfortable scripting yourself you can probably find some help from some of our Thwack Script Gurus in the .
I should have stated that this is an AIX system.... Log Parser is a Powershell thing.... But I am taking your advice and looking ant modifying a PERL script to do something like this. I'll check in with the gurus. THANKS!!!
SAM includes a Log Parser for Windows that uses PowerShell, and another for Linux/Unix that utilizes Perl ->
This is the one I'm using. I'll need a long term solution, but for now I'm greping for the "error" with output to a new file. Then the log parser will alert on that file.... A bit clugy but it should work....
Thanks