]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Fixed bug 865510
authoreldy <>
Sat, 27 Dec 2003 17:24:00 +0000 (17:24 +0000)
committereldy <>
Sat, 27 Dec 2003 17:24:00 +0000 (17:24 +0000)
wwwroot/cgi-bin/awstats.pl

index 208b3b967d107bec6c7fa759d90d4c291088429a..75cef8e8510a826ecf25a2427ae0c99930ef9033 100644 (file)
@@ -4703,8 +4703,9 @@ sub DefinePerlParsingFormat {
                                $pos_date = $i; $i++; push @fieldlib, 'date';
                                $PerlParsingFormat .= "([^$LogSeparatorWithoutStar]+\\s[^$LogSeparatorWithoutStar]+)";  # Need \s for Exchange log files
                        }
-                       elsif ($f =~ /%syslog$/) {      # TODO Add a tag time3 for date 'Mon 2 10:20:05'
-                               $PerlParsingFormat .= "\\w\\w\\w \\s??\\d+ \\d\\d:\\d\\d:\\d\\d [^$LogSeparatorWithoutStar]+";
+                       elsif ($f =~ /%time3$/) {       # mon d hh:mm:ss
+                               $pos_date = $i; $i++; push @fieldlib, 'date';
+                               $PerlParsingFormat .= "(\\w\\w\\w \\s??\\d+ \\d\\d:\\d\\d:\\d\\d)";
                        }
                        # Special for methodurl and methodurlnoprot
                        elsif ($f =~ /%methodurl$/) {