Import Logs from Openshift

When I try to import logs from Red Hat’s OpenShift I am getting the following error.

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.

I can see from the Apache configuration that the log format is “combined”, but that doesn’t seem to be a valid choice for piwik, and I do not have access to change the Apache configuration. I think part of the problem is that there are sometimes two IP addresses listed on a log line. For example:, - - [15/Apr/2015:16:29:30 -0400] “GET / HTTP/1.1” 200 30291 “” “Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36”

Any ideas?

Hi there

it’s possible that it’s a bug / missing feature in the log analytics. I found this bug report: fails to detect log type with multiple IPs in first line · Issue #5 · matomo-org/piwik-log-analytics · GitHub

maybe you can post your log file there and comment?