@mmv wrote:
Hello,
I have to import several IIS-logfiles. The format:
Fields: date time c-ip cs-username s-sitename s-computername s-ip s-port cs-method cs-uri-stem cs-uri-query sc-status sc-win32-status sc-bytes cs-bytes time-taken cs-version cs-host cs(User-Agent) cs(Cookie) cs(Referer) sc-substatus
Example:
2017-04-24 11:2:15 2.247.245.17 - W3SVC - 127.0.0.1 80 GET /produkte/demo.htm - 200 - 7436 - - HTTP/1.0 www.abc.de Mozilla/5.0+(Linux;+Android+4.4.2;+Cynus+F6+Build/KOT49H)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/55.0.2883.91+Mobile+Safari/537.36 __cfduid=d03a795f463ba8b75d7ebec54fdd537611493024533 https://www.google.de/ -Using:
import_logs.py --url='http://localhost/piwik' --idsite=2 --recorders=4 --enable-http-errors --enable-http-redirects --enable-static --enable-bots --log-format-name=w3c_extended --w3c-time-taken-millisecs --w3c-fields='#Fields: date time c-ip cs-username s-sitename s-computername s-ip s-port cs-method cs-uri-stem cs-uri-query sc-status sc-win32-status sc-bytes cs-bytes time-taken cs-version cs-host cs(User-Agent) cs(Cookie) cs(Referer) sc-substatus' /home/bb/apache-logs/XXXgives the following error: "invalid log lines". Debugging only says: "line did not match".
I dont't see any error, please help!
TIA, Rainer
Posts: 1
Participants: 1