App-loggrep

 view release on metacpan or  search on metacpan

bin/loggrep  view on Meta::CPAN


@{[prog_name()]} facilitates search for lines in a log file within a specified date range.
If you aren't interested in filtering by date range, use grep instead.

If multiple expression to include are provided, a line which matches any will be printed.
Likewise, if a line matches any of the exclusion expressions, it will be excluded.

@{[prog_name()]} uses Date::Parse to convert a timestamp into a Unix timestap (a number of
seconds since time zero). Date::Parse is pretty clever, but if it doesn't understand your
timestamps you'll have to use the --time option. If you want to use a particular module,
like Date::Parse or DateTime, in your --time code, you'll have to use or require it inside
your code or load it in with the --module option like so

  -M Date::Parse --time '(\$m=shift)=~s/(.*?) foo/\$1/;\$m eq "bar" ? 1 : str2time \$m'

END
   exit;
}

__END__



( run in 0.285 second using v1.01-cache-2.11-cpan-05444aca049 )