Quantcast
Channel: Matomo forums - Latest topics
Viewing all articles
Browse latest Browse all 13985

Log_format_regexp für custom Apache log Format

$
0
0

@inesw wrote:

Hallo Forum,

ich habe ein Access.log vom Apache Vorliegen, das auf folgender Konfiguration beruht:
LogFormat "%h %l %t %v \"%r\" %>s %b \"%{User-Agent}i\"" custom

Ergibt folgende Einträge im Log:
11.111.249.206 - [01/Aug/2016:20:03:58 +0200] www.host.de "GET /news.html HTTP/1.1" 200 6869 "UserAgent/0.1"

Dies ist nun kein Format, das Piwik von Haus aus versteht.

Mein Versuch für die log_format_regexp ist bisher folgendes:

--log-format-regex="(?P\S+)\s+\S+\s+(?P\S+)\s+[(?P.?)\s+(?P.?)]\s+(?P[\w-.])(?::\d+)?\s+"\S+\s+(?P.?)\s+\S+"\s+(?P\S+)\s+(?P\S+)\"(?P.*?)\""

Aber das trifft nicht. Wo liegt der Fehler?

Grüße
Ines

Edit: Standard Logfiles importiert Piwik.

Apache 2.4 auf Windows
Piwik 2.16.2 mit PHP 5.6 und python 2.7.10 auf Linux

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 13985

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>