matomo-org / matomo-log-analytics

Import any kind of server logs in Matomo for powerful log analytics. Universal log file parsing and reporting.
https://matomo.org/log-analytics/
GNU General Public License v3.0
224 stars 118 forks source link

Add Traefik json log support #358

Closed sethlinnkuleuven closed 10 months ago

sethlinnkuleuven commented 10 months ago

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:

  1. Expanded import_logs.py to auto recognize and import Traefik json log files.
  2. Modified the NGINX json support, made the 'check_format_line' function more specific. It was to generic. All json formatted logs were autodetected as NGINX logs.
  3. Added tests for Traefik log importing.
sgiehl commented 10 months ago

@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?

sethlinnkuleuven commented 10 months ago

Ok, I pulled your changes, lets have another run. Thanks!