How to determine log-format-name?

Hi ,
I trying to import my application log into Matomo using python script. But i got error that couldn’t find format.

Fatal error: cannot automatically determine the log format using the first 100000 lines of the log file.
Maybe try specifying the format with the --log-format-name command line argument.

Please advise how to find log format ?


You can find the list of available log formats here:

See also GitHub - matomo-org/matomo-log-analytics: Import any kind of server logs in Matomo for powerful log analytics. Universal log file parsing and reporting.

1 Like

If your application uses a logformat unknown to Matomo, you can create your own regex for that. Take a look at Regex für haproxy for a hint about that.