Importing Traefik access logs into Matomo


I am trying to import the Traefik access log into Matomo using the python script provided here:

but it doesn’t seem to support the json format of Traefik. I can’t use the common format because it doesn’t have the Host attribute (e.g. I know I can write a regex myself but I don’t think I am the first person to run into this. I would love to not reinvent the wheel. I was hoping someone would share their solution?

Many thanks!

Hi @sethlinn
Maybe in the Traefik forum/ support they have any idea?

I actually post this question both here and on the Traefik Community board. You can see their answer here:

1 Like

UPDATE: The Matomo import script now supports Traefik JSON access logs.