in reply to Re: How to monitor a logfile with columns for certain data?
in thread How to monitor a logfile with columns for certain data?

Ok, So how do I retrieve the column that has Header of Errors and get the line that has Errors > 0 or Processed <>Total Records? Any information would be greatful. I am not very good at perl. Thanks.
  • Comment on Re^2: How to monitor a logfile with columns for certain data?

Replies are listed 'Best First'.
Re^3: How to monitor a logfile with columns for certain data?
by gamache (Friar) on Nov 16, 2007 at 17:12 UTC
    Each field is an element in the @fields_nospace array; the first field (File Name) is at $fields_nospace[0], and the fifth field (Errors) is at $fields_nospace[4]. So you can check if $fields_nospace[4] > 0, or if $fields_nospace[2] != $fields_nospace[3], and do things based on those conditions. Hope this helps.