Help importing Weblogic extended logs


#1

Hello,
We are trying out piwik and using the import_logs.py script to import logs from our Oracle Weblogic 10.3 server. We successfully imported several weeks of logs in the “common” format, so we know the script can work. Then we wanted to get more information so we changed our Weblogic logging format to “extended”, now we cannot import the logs. I think the Weblogic extended format is W3C, and there is no option for this in PiWIK, so we started to experiment with --log-format-regex. Can you tell us why this import command is not working?

/usr/bin/python27 /var/www/html/piwik/misc/log-analytics/import_logs.py
–url=http://hrpartweb/piwik /home/tavis.morse.prd/hrprdweb1030extended.log --idsite=2
–log-format-regex=’(?P.?) (?P.?) \s+ \S+ \s+ (?P.?) \s+ (?P\d+) \s+ "(?
P<user_agent>.
?)"’ \

Is there a list of regex definitions or options available?

Here is a line from the logfile:

#Fields: date time cs-method cs-uri sc-status cs(User-Agent)
2013-10-29 21:23:51 GET /cs/VTHR/cache/PTPOPUP_TITLEBARRIGHT_1.PNG 200 “Mozilla/5.
0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36”

Also - if it helps - here is the Oracle document that describes the extended fields:
http://docs.oracle.com/cd/E13222_01/wls/docs81/adminguide/web_server.html#113868

We are using Piwik 2.0-b2 on Oracle Enterprise Linux 5.4

Thank You!