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:
184.108.40.206, 220.127.116.11 - - [15/Apr/2015:16:29:30 -0400] “GET / HTTP/1.1” 200 30291 “http://mywebsite.ca” “Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36”