-
Notifications
You must be signed in to change notification settings - Fork 118
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
Add Traefik json log support #358
Conversation
What was done: 1. Expanded import_logs.py to auto recognize and import Traefik json log files. 2. Modified the NGINX json support, made the autodetect function more specific. It was to generic. All json formatted logs where seen as NGINX logs. 3. Added tests for Traefik log importing.
What was done: * The get_all method was returning the raw json without any key mapping. Fixed that. This meant also changing the names in test_main.yml * changed log file form CLF to LF
@sethlinnkuleuven I've fixed the test action to run correctly again. Would you mind pulling in the latest changes, so we can see if they pass here? |
Update test action (matomo-org#359)
Ok, I pulled your changes, lets have another run. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Tests are passing, so should be good to go.
Thanks for the contribution @sethlinnkuleuven
* Add Traefik JSON log format * Add Traefik JSON log format * Add Traefik json log support. What was done: 1. Expanded import_logs.py to auto recognize and import Traefik json log files. 2. Modified the NGINX json support, made the autodetect function more specific. It was to generic. All json formatted logs where seen as NGINX logs. 3. Added tests for Traefik log importing. * Fixed failing tests and refactored get_all method What was done: * The get_all method was returning the raw json without any key mapping. Fixed that. This meant also changing the names in test_main.yml * changed log file form CLF to LF --------- Co-authored-by: David Patiashvili <stratagem.david@gmail.com>
Description:
This builds on pull request #322 (which can be deleted if this is accepted) This pull request adds support for the Traefik json log format, not to be confused with the Traefik common log.
What was done: