From: eldy <> Date: Tue, 1 Apr 2003 19:19:34 +0000 (+0000) Subject: Fixed: Pb for %syslog tag when hostname contains number in name. X-Git-Tag: AWSTATS_5_5_BETA~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea7248b2b0937e15cf798cf6161fa31d356463d5;p=thirdparty%2FAWStats.git Fixed: Pb for %syslog tag when hostname contains number in name. --- diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index 5c81f921..b48ff935 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -4428,7 +4428,7 @@ sub DefinePerlParsingFormat() { $PerlParsingFormat .= "([^$LogSeparatorWithoutStar]+)"; } elsif ($f =~ /%syslog$/) { # Added for syslog time and host stamp, fields are skipped and not analyzed - $PerlParsingFormat .= "[A-Z][a-z][a-z] .[0-9] ..:..:.. [A-Za-z]+"; + $PerlParsingFormat .= "\\w\\w\\w \\d+ \\d\\d:\\d\\d:\\d\\d \\w+"; } elsif ($f =~ /%email_r$/) { $pos_emailr = $i; $i++; push @fieldlib, 'email_r';