Log import


#1

I am trying

root@Piwik:~# python /var/www/piwik/misc/log-analytics/import_logs.py --url=https://piwik.xyz.de --idsite=35 --recorders=4 --enable-http-errors --enable-static --enable-bots --log-format-regex=’^([0-9.]+)\s([\w. -]+)\s([[^[]]+])\s.((?:[^"]|.)+).\s(\d{3})\s(\d+|-)\s.((?:[^"]|.)+).’ --dry-run /var/tmp/spu20141203.log

It returns, all lines are invalid. But when testing the regular expression e.g. on http://ksamuel.pythonanywhere.com/ it recognizes the lines. So

^([0-9.]+)\s([\w. -]+)\s([[^[]]+])\s“((?:[^"]|\”)+)”\s(\d{3})\s(\d+|-)\s“((?:[^"]|\”)+)”

recognizes for instance

111.111.11.11 - rLl0uN2ayuBhgjl [04/Dec/2014:00:01:29 +0100] “GET http://eutils.ncbi.nlm.nih.gov/entrez/eutils/elink.fcgi dbfrom=pubmed&id=25137455&retmode=ref&cmd=prlinks HTTP/1.1” 200 0 “Default”

Does anyone know why? Is there somthing wrong with my import_log.py command?

Thank you for your help!