Regex for importing IIS8 full logs?

I’m trying to import IIS8 logs into Piwik.

I configured the logs to log everything (see Log.png attachment).

The header is like this:


#Fields: date time s-sitename s-computername s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs-version cs(User-Agent) cs(Cookie) cs(Referer) cs-host sc-status sc-substatus sc-win32-status sc-bytes cs-bytes time-taken

Has anyone figured out a working regex for the python import tool? I tried --log-format-name=iis but I get this:


0 lines parsed, 0 lines recorded, 0 records/sec (avg), 0 records/sec (current)
Parsing log u_ex130812.log...
Traceback (most recent call last):
  File "import_logs.py", line 1575, in <module>
    main()
  File "import_logs.py", line 1539, in main
    parser.parse(filename)
  File "import_logs.py", line 1397, in parse
    resolver.check_format(format)
  File "import_logs.py", line 1010, in check_format
    elif 'host' not in format.regex.groupindex and not config.options.log_hostname:
AttributeError: 'IisFormat' object has no attribute 'regex'

bump

maybe post this question in: Log analytics list of improvements · Issue #3163 · matomo-org/matomo · GitHub