I am new to piwik. Can anyone suggest me the correct log format. Please find the below sample logs.
I am not getting the ‘user’ and ‘cvar’ values. please suggest me what i am doing wrong? Did I need to make any changes in python script?
Kindly help to import the below logs? I am not getting any error.
127.0.0.1 - - [24/Mar/2014:05:58:10 +0000] “GET /piwik.php?url=http%3A%2F%2Fwww.domain.me%2Fsearch%2Fsearch&urlref=http%3A%2F%2Fwww.mydomain.me%2Fsearch%2F&
uid=SampleUser&cvar=%7B%221%22%3A%5B%22SEARCH_STATUS%22%2C%22OK%22%5D%7D HTTP/1.1” 200 54 “Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36”
Command what I used is:
/var/www/html/piwik/misc/log-analytics > sudo python import_logs.py --url=http://localhost/piwik --idsite=1 --enable-http-errors --show-progress --enable-bots recorders=2 /var/tmp/testlog_New.log
0 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
=====> Warning: File recorders=2 does not exist <=====
Parsing log /var/tmp/testlog_New.log…
1 lines parsed, 1 lines recorded, 0 records/sec (avg), 1 records/sec (current)
Logs import summary
1 requests imported successfully
0 requests were downloads
0 requests ignored:
0 HTTP errors
0 HTTP redirects
0 invalid log lines
0 requests did not match any known site
0 requests did not match any --hostname
0 requests done by bots, search engines…
0 requests to static resources (css, js, images, ico, ttf…)
0 requests to file downloads did not match any --download-extensions
Website import summary
1 requests imported to 1 sites
1 sites already existed
0 sites were created:
0 distinct hostnames did not match any existing site:
Total time: 1 seconds
Requests imported per second: 0.99 requests per second
Thanks in advance.