[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Odd logcheck behaviour.



Friedrich Clausen wrote:

Hi All,

I am trying to filter out Java stack traces from a log file and
thereby only send the initial exception so as to make the emails
smaller. In my manual tests this works (stack traces are not in
emails) but when running from cron the exceptions are not filtered out
(stack traces are present in logcheck emails). When I test manually, I
do the following -

$ cat sample.txt|sed -e 's/[space]*$//' |   egrep -v -f ./gigaspaces


I suspect it's because you're using a relative path (./gigaspaces). You'll need the full path to it from cron which may not be in the same directory you were in.


--
Chris Jackson
Shadowcat Systems Ltd.


Reply to: