Import logs problems

Hello all…
I am having a problem importing logs to my Motomo…
I use to import 2 sites with import_logs.py with the command:
python import_logs.py --idsite=24 --url=https://******* /apps/logs/apps/*00

the log format was :
LogFormat “%P %h %l %u %t “%r” %>s %b “%{Referer}i” “%{User-Agent}i””

Now they change the logformat to:
LogFormat “%P %h %{X-Forwarded-For}i %l %u %t “%r” %>s %b %D “%{Referer}i” “%{User-Agent}i””

Is there something I should change with the import_logs.py command?

Regards

Problem solved…
Created new log format regex:

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

Add new entry to import_logs.py

1 Like