in reply to Re: not getting desired output
in thread not getting desired output

Hi, Sorry, i am getting diffrent output when i run Ikegami script and my script with chnages. I am getting 142 for Ikegami and 352 for my script. Thanks NT

Replies are listed 'Best First'.
Re^3: not getting desired output
by ikegami (Patriarch) on Jun 11, 2009 at 17:14 UTC

    Like I said, the other monks only found some of the problems in your script. Your script counts errors that aren't for "Handling NSPAdvice for mechanism [4]".

    For example, for the following log, your script counts two errors and mine counts one:

    ...Handling NSPAdvice for mechanism [4]... ...Authentication mechanism returned [3]... ...Handling NSPAdvice for mechanism [5]... ...Authentication mechanism returned [3]...

    This is a symptom of your inner loop not exiting before the end of the log file (the second bullet in the grandparent post).

Re^3: not getting desired output
by ikegami (Patriarch) on Jun 11, 2009 at 17:13 UTC
    Maybe \d+ is too restrictive? If you can have negative numbers, change it to -?\d+