G
GRP
hi,
I would like to write a script to grep some pattern in few set of log
files and alert it...
In order to avoid duplicate alert i plan to store the "FILENAME:ERR-
LINE-NUMBER:FILE-CREATION-TIME" in a flat file (colon delimiter) , so
that next time if the same pattern found in same line it will check
against the flat file and won't alert. At the same time if it happens
in different line number it wud check in flat file & the 2nd filed
would be different so it will alert.
Since i can't find a way to get ctime in unix (i tried with perl as
well), would be there any other way to achieve this or better logic?
Your help will be greatly appreciated..
thks
I would like to write a script to grep some pattern in few set of log
files and alert it...
In order to avoid duplicate alert i plan to store the "FILENAME:ERR-
LINE-NUMBER:FILE-CREATION-TIME" in a flat file (colon delimiter) , so
that next time if the same pattern found in same line it will check
against the flat file and won't alert. At the same time if it happens
in different line number it wud check in flat file & the 2nd filed
would be different so it will alert.
Since i can't find a way to get ctime in unix (i tried with perl as
well), would be there any other way to achieve this or better logic?
Your help will be greatly appreciated..
thks