- 28 May, 2019 1 commit
-
-
Arnaud Fontaine authored
Allow to define how many pages will be displayed in 'Hottest pages' section.
-
- 19 Mar, 2019 4 commits
-
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
Unlike apache which escape non ascii characters in referrer, caddy writes referrer as is. Edge seem to send referrer not escaped, so with Edge and caddy we can have non ascii text in referrer. For lines which cannot be decoded as ASCII, we use python `replace` error handler which would in this case allow the line to be processed if the decoding problem is only about the encoding of the referrer. We don't implement this case as "skip and report ill-formed line", because python does not provide utilities to do this easily. Reproduction with caddy: ``` curl -k http://localhost -H 'Referer: héhé' ``` With apache, `LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" common` ``` 127.0.0.1 - - [28/Feb/2019:10:03:33 +0100] "GET / HTTP/1.1" 200 2046 "h\xc3\xa9h\xc3\xa9" "curl/7.50.1" 4 ``` With caddy, `log / stdout "{remote} {>REMOTE_USER} [{when}] \"{method} {uri} {proto}\" {status} {size} \"{>Referer}\" \"{>User-Agent}\" {latency_ms}"` ``` 127.0.0.1 - [28/Feb/2019:10:05:00 +0100] "GET / HTTP/2.0" 200 1950 "héhé" "curl/7.50.1" 4 ```
-
Arnaud Fontaine authored
When the table is large and requires scrolling, it becomes difficult to read so add 'title' attribute to <tr> on 'Stats per module' and 'Hits per status code' tables. For example when hovering a particular cell on a module row, it display the module name. /reviewed-on nexedi/apachedex!3
-
- 23 Jan, 2018 2 commits
-
-
Vincent Pelletier authored
-
Jérome Perrin authored
We observed lines in our logs where the timestamp field was still respecting the timestamp regexp, so the line was not reported as invalid, but parsing such timestamp caused a ValueError in _matchToDateTime The beginning of line was: 127.0.0.1 - - [14/Jul/2017:127.0.0.1 - - [14/Jul/2017:09:41:41 +0200] Which uses `[14/Jul/2017:127.0.0.1 - - [14/Jul/2017:09:41:41 +0200]` as timestamp, so this fail the simple .split() used to separate timestamp and timezone. Added a minimal test case to reproduce this specific problem.
-
- 14 Sep, 2016 3 commits
-
-
Vincent Pelletier authored
-
Vincent Pelletier authored
-
Vincent Pelletier authored
-
- 11 Jul, 2014 2 commits
-
-
Arnaud Fontaine authored
-
Arnaud Fontaine authored
-
- 17 Apr, 2014 2 commits
-
-
Vincent Pelletier authored
-
Vincent Pelletier authored
-
- 27 Mar, 2014 2 commits
-
-
Vincent Pelletier authored
-
Vincent Pelletier authored
Use a decorator to not indent the whole function.
-
- 20 Mar, 2014 3 commits
-
-
Vincent Pelletier authored
-
Vincent Pelletier authored
This change introduces a (minor) parameter value backward-incompatibility.
-
Vincent Pelletier authored
There is no standard unquoted URL encoding (=charset), so do not unquote to just handle ASCII. Fixes various UnicodeDecodeError failures, at the cost of decreased report readability.
-
- 10 Aug, 2013 6 commits
-
-
Vincent Pelletier authored
-
Vincent Pelletier authored
This causes errors and solves nothing.
-
Vincent Pelletier authored
-
Vincent Pelletier authored
-
Vincent Pelletier authored
-
Vincent Pelletier authored
-
- 07 Aug, 2013 1 commit
-
-
Vincent Pelletier authored
Do it while parsing, so (for example) day splitting happens at midnight in chosen timezone instead of midnight in source timezone. When no timezone is provided, use input's times verbatim. DST changes cause artefacts in graphs (double or zeroed hour). Also, display used timezone in generated page.
-
- 24 May, 2013 4 commits
-
-
Vincent Pelletier authored
-
Vincent Pelletier authored
Depending on input, some state files can starts with ".", and are not matched by "state/*".
-
Vincent Pelletier authored
-
Vincent Pelletier authored
-
- 16 May, 2013 1 commit
-
-
Cédric Le Ninivin authored
-
- 24 Apr, 2013 2 commits
-
-
Vincent Pelletier authored
-
Vincent Pelletier authored
-
- 23 Apr, 2013 7 commits
-
-
Vincent Pelletier authored
-
Vincent Pelletier authored
Turns out, builtin works fine with shlex with python 3.
-
Vincent Pelletier authored
Allows shell expansion (ex: "@~/foo.cfg" cannot be expanded, "@ ~/foo.cfg" can be).
-
Vincent Pelletier authored
-
Vincent Pelletier authored
-
Vincent Pelletier authored
Replace with quarterhour, do not change plot period.
-
Vincent Pelletier authored
-