Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente | |||
linux:awstats [19-04-2018 10:42] edmc73 |
linux:awstats [09-01-2020 16:55] (Version actuelle) edmc73 [Configuration pour Postfix] |
||
---|---|---|---|
Ligne 183: | Ligne 183: | ||
ou | ou | ||
/ | / | ||
+ | | ||
+ | ===== Bug avec les requêtes en timeout HTTP 408 ===== | ||
+ | |||
+ | Un vieux bug jamais résolu qui fait raler awstats lorsqu' | ||
+ | < | ||
+ | Error while processing / | ||
+ | Create/ | ||
+ | Phase 1 : First bypass old records, searching new record... | ||
+ | Direct access after last parsed record (after line 182) AWStats did not find any valid log lines that match your LogFormat parameter, in the 50th first non commented lines read of your log. | ||
+ | Your log file / | ||
+ | Your AWStats LogFormat parameter is: | ||
+ | 1 | ||
+ | This means each line in your web server log file need to have " | ||
+ | 111.22.33.44 - - [10/ | ||
+ | And this is an example of records AWStats found in your log file (the record number 50 in your log): | ||
+ | 192.168.37.151 - - [09/ | ||
+ | Setup ('/ | ||
+ | Check config file, permissions and AWStats documentation (in ' | ||
+ | |||
+ | </ | ||
+ | |||
+ | La seule solution que j'ai trouvé, est de modifier le code d' | ||
+ | |||
+ | localisez votre fichier puis modifiez le | ||
+ | |||
+ | # locate awstats.pl | ||
+ | / | ||
+ | # vi / | ||
+ | |||
+ | Vers la ligne 8977, modifier le regex par | ||
+ | "([^ ]+) [^ ]+ ([^\\/ | ||
+ | |||
+ | Dans le code ci-dessous, j'ai mis en commentaire le regex original juste après, on peut voir qu'un autre regex était déjà en commentaire dans le code d' | ||
+ | | ||
+ | <code perl> | ||
+ | if ($Debug) { | ||
+ | debug( | ||
+ | "Call To DefinePerlParsingFormat (LogType=' | ||
+ | ); | ||
+ | } | ||
+ | if ( $LogFormat =~ /^[1-6]$/ ) { # Pre-defined log format | ||
+ | if ( $LogFormat eq ' | ||
+ | { # Same than "%h %l %u %t \" | ||
+ | # %u (user) is " | ||
+ | |||
+ | # $PerlParsingFormat=" | ||
+ | $PerlParsingFormat = | ||
+ | "([^ ]+) [^ ]+ ([^\\/ | ||
+ | #"([^ ]+) [^ ]+ ([^\\/ | ||
+ | |||
+ | $pos_host | ||
+ | $pos_logname = 1; | ||
+ | $pos_date | ||
+ | $pos_method | ||
+ | $pos_url | ||
+ | $pos_code | ||
+ | $pos_size | ||
+ | $pos_referer = 7; | ||
+ | $pos_agent | ||
+ | @fieldlib | ||
+ | ' | ||
+ | |||
+ | |||
+ | </ |