Quantcast
Channel: Piwik Forums - Support & Bugs
Viewing all articles
Browse latest Browse all 4243

import_logs & log-format-regex - "requests ignored" (no replies)

$
0
0
hello

i am new piwik user.

my event log :

Aug 31 23:59:59 tt-srv-name www.tt.com: 1.1.1.1 - - [31/Aug/2014:23:59:59 +0200] "GET /index.php HTTP/1.0" 200 3838 "http://www.tt.com/index.php" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0" 365020 www.tt.com

my regex:
.* ([0-9.]+) ([\w. -]+) ([.+\]) (\"(GET|POST) \/.* HTTP\/1.(0|1)\") ([0-9]{3}) ([0-9]+) (\".*\") (\".*\") [0-9]+.*
or
"(?P<ip>\S+) \S+ \S+ [(?P<date>.*?) (?P<timezone>.*?)\] \"\S+ (?P<path>.*?) \S+\" (?P<status>\S+) (?P<length>\S+) (?P<generation_time_micro>\S+)"

when i try import the event log with regex and "--log-format-regex" parameter, the result is
1 requests ignored: 1 invalid log lines

can you help me or give me a link to a tutorial.
(and i am not one expert of regex)

thank you

Viewing all articles
Browse latest Browse all 4243

Trending Articles