Michael Thomas 378ef72
##########################################################################
Michael Thomas 378ef72
# $Id$
Michael Thomas 378ef72
##########################################################################
Michael Thomas 378ef72
Michael Thomas 378ef72
########################################################
Michael Thomas 378ef72
# This was written and is maintained by:
Michael Thomas 378ef72
#    Kirk Bauer <kirk@kaybee.org>
Michael Thomas 378ef72
#
Michael Thomas 378ef72
# Please send all comments, suggestions, bug reports,
Michael Thomas 378ef72
#    etc, to logwatch-devel@logwatch.org
Michael Thomas 378ef72
########################################################
Michael Thomas 378ef72
Michael Thomas 378ef72
use Logwatch ':dates';
Michael Thomas 378ef72
Michael Thomas 378ef72
my $Debug = $ENV{'LOGWATCH_DEBUG'} || 0;
Michael Thomas 378ef72
Michael Thomas 378ef72
$SearchDate = TimeFilter('%Y-%m-%d %H:%M:%S');
Michael Thomas 378ef72
Michael Thomas 378ef72
if ( $Debug > 5 ) {
Michael Thomas 378ef72
   print STDERR "DEBUG: Inside ApplyCyphesisDate...\n";
Michael Thomas 378ef72
   print STDERR "DEBUG: Looking For: " . $SearchDate . "\n";
Michael Thomas 378ef72
}
Michael Thomas 378ef72
Michael Thomas 378ef72
while (defined($ThisLine = <STDIN>)) {
Michael Thomas 378ef72
   if ($ThisLine =~ m/^$SearchDate /o) {
Michael Thomas 378ef72
      print $ThisLine;
Michael Thomas 378ef72
   }
Michael Thomas 378ef72
}
Michael Thomas 378ef72
Michael Thomas 378ef72
# vi: shiftwidth=3 syntax=perl tabstop=3 et