Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect regex in misc/log-analytics/import_logs.py #3558

Closed
anonymous-matomo-user opened this issue Nov 19, 2012 · 2 comments
Closed

Incorrect regex in misc/log-analytics/import_logs.py #3558

anonymous-matomo-user opened this issue Nov 19, 2012 · 2 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. worksforme The issue cannot be reproduced and things work as intended.

Comments

@anonymous-matomo-user
Copy link

Whilst debugging a problem with a failed import of log files I noticed that one regex in import_logs.py is possibly incorrect. The problem was triggered by accessing a site using Lynx.

Using Apache2 on Debian, using the vhost_combined format, this gave us the following log entry:

host.example.org:443 1.2.3.4 - - +0100 "GET /" 400 478

Notice that the HTTP version is missing completely in the request method/path description. However, import_logs.py requires the HTTP version is present.

You can find a patch against the current SVN trunk attached to this bug report, which fixes the problem for us.

@anonymous-matomo-user
Copy link
Author

Attachment: Fix incorrect regex in import_logs.py
import_logs_regex.patch

@mattab
Copy link
Member

mattab commented Nov 20, 2012

@speijnik thanks for the report & Patch! :) Can you please post the same report in this ticket as a comment? -> #3163

This way the Log Analytics developer will see your report and will include it (Assuming the patch works in the other use cases as well)

Thanks!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

2 participants