Open Chardonneaur opened 1 year ago
Isn't A2 using some default log format? Did you try letting the log parser detect the format?
I did, but it was written url are undefined
In that case, guess it should work by providing a custom regex. Unfortunately I don't think we will be able to work on any improvements for the log importer any time soon.
could you guide me to write this custom regex?
Those are some of the current formats, hope that helps to create a custom one: https://github.com/matomo-org/matomo-log-analytics/blob/33ba65586d45aa877bb78462f78a4381b6dd772a/import_logs.py#L456-L491
The format of A2 hosting log are quite similar to OVH, here is an example of A2 hosting log format: 54.0.0.0 - - [01/Dec/2022:08:31:01 -0500] "GET / HTTP/1.1" 200 304 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"