3 ########################################################################
4 ## Copyright (c) 2009 Sigma Consulting Services Limited
5 ## v1.00 2009/06/21 16:54:23 Ian McMichael
7 ## This program is free software: you can redistribute it and/or modify
8 ## it under the terms of the GNU General Public License as published by
9 ## the Free Software Foundation, either version 2 of the License, or
12 ## This program is distributed in the hope that it will be useful,
13 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ## GNU General Public License for more details.
17 ## You should have received a copy of the GNU General Public License
18 ## along with this program. If not, see <http://www.gnu.org/licenses/>.
19 ########################################################################
21 use Logwatch ':dates';
23 my $Debug = $ENV{'LOGWATCH_DEBUG'} || 0;
25 $SearchDate = TimeFilter('%d-%b %H:%M');
28 print STDERR "DEBUG: Inside ApplyBaculaDate...\n";
29 print STDERR "DEBUG: Looking For: " . $SearchDate . "\n";
34 while (defined($ThisLine = <STDIN>)) {
35 if ($ThisLine =~ m/^$SearchDate /o) {
37 } elsif ($ThisLine !~ m/^\s+/o) {
46 # vi: shiftwidth=3 syntax=perl tabstop=3 et