[Solved] - IIS log import- lines not tracked

Hello,

I try to import IIS log from the CLI.

I’m facing this error :
The following lines were not tracked by Matomo, either due to a malformed tracker request or error in the tracker

The format of the log file :
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32-status time-taken

Some lines with the errors (i hide the IP adresses with xxx.xxx.xxx.xxx) :

2020-04-11 22:00:48 xxx.xxx.xxx.xxx GET / - 80 - xxx.xxx.xxx.xxx DA-WAF+Monitoring - 200 0 0 15
2020-04-11 22:17:24 xxx.xxx.xxx.xxx GET /Portail/Portail/Apps - 80 - xxx.xxx.xxx.xxx Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64;+rv:68.0)+Gecko/20100101+Firefox/68.0 http://localhost:63/DemandeAnalyse 200 0 0 1166
2020-04-11 22:17:30 xxx.xxx.xxx.xxx GET /Portail/ - 80 - xxx.xxx.xxx.xxx Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64;+rv:68.0)+Gecko/20100101+Firefox/68.0 - 200 0 0 1093

just a mistake in the command line :smirk:

Comnd line with error
python import_logs.py --url=https://my.url/matomo1/ --enable-http-errors --enable-http-redirects --idsite=6--retry-max-attempts=1 E:\Logs\Microsoft\IIS\Websites\u_ex200412.log

Command line with no error
python import_logs.py --url=https://my.url/matomo1/ --enable-http-errors --enable-http-redirects --idsite=6 --retry-max-attempts=1 E:\Logs\Microsoft\IIS\Websites\u_ex200412.log

Just a space between --idsite=6 and --retry-max-attempts=1

1 Like