customlog with import_logs.py #4207
Labels
Bug
For errors / faults / flaws / inconsistencies etc.
worksforme
The issue cannot be reproduced and things work as intended.
Hello,
i'm using piwik version 1.12 and i'm having problems parsing my apache custom catchall log through import_logs.py.
I am using a heavily modified apache from parallels POA with its own logging module but the logging format is similar to this:
LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" %V"
eventhough i'm using --add-sites-new-hosts, import_logs parses the log file correctly and it isn't adding the virtual hosts that exist in the logfile:
/usr/local/bin/python2.7 /var/www/html/piwik/misc/log-analytics/import_logs.py --url=http://awstatslocal/piwik --debug --add-sites-new-hosts --log-format-regex='(?P<ip>\S+) \S+ \S+ (?P<timezone>._?) "\S+ (?P<path>.?) \S+" (?P<status>\S+) (?P<length>\S+) "(?P<referrer>.?) (?P<user_agent>.*?)" (?P<host>)' /logs/daily/logmerge.log
2013-10-08 12:47:34,568: [DEBUG] Creating a Piwik site for hostname
2013-10-08 12:47:34,637: [ERROR] Couldn't create a Piwik site for host : Please specify a value for 'siteName'.
Logs import summary
Website import summary
How could this be possible?
The text was updated successfully, but these errors were encountered: