[Log] Nginx Log has spaces in the end of the log record
Closed this issue · 1 comments
roma-glushko commented
Preconditions
- Nginx Log in the combined format like this:
servername.com 1.1.1.1 - - [19/Nov/2019:02:55:46 +0100] "GET /server-status HTTP/1.1" 200 216081 "-" "libwww-perl/6.15"
10.10.10.10 2.2.2.2 - - [19/Nov/2019:02:56:46 +0100] "GET /administrator HTTP/1.1" 301 245 "-" "Mozilla/5.0 (Linux; rv:55.0) Gecko/20100101 Firefox/55.0"
10.10.10.10 3.3.3.3 - - [19/Nov/2019:02:56:46 +0100] "GET /administrator/ HTTP/1.1" 200 3314 "-" "Mozilla/5.0 (Linux; rv:55.0) Gecko/20100101 Firefox/55.0"
servername.com 4.4.4.4 - - [19/Nov/2019:03:00:46 +0100] "GET /server-status HTTP/1.1" 200 216194 "-" "libwww-perl/6.15"
Steps to reproduce
- Run any report with any params on the log
Expected result
Log file is parsed and processed
Actual results
Nothing is parsed, all information is empty. However, regex pattern is still actual
roma-glushko commented
The reason of this issue was a little space at the end of the line 😌
The fix is available in 1.0.3-rc2 version (PR #19 )