Unable to import logs format with import_logs.py

Hi all,
I am unable to import my apache logs that have the following format

LogFormat “%h %l “%{Cookie}i” %t %T “%r” %>s %b “%{Referer}i” “%{User-Agent}i” %{X-Forwarded-For}i”

Could someone help me with the rexep?

My favourite online tool iz now RegExr: Learn, Build, & Test RegEx


https://regex101.com/ also supports Python which might be useful here (in case there are minor differences in the implementations)

1 Like