User Agent problems with W3C log format


#1

Hi,

I’m trying to import some logs from Highwinds CDN, that uses w3c standard format, it seems that import_logs.py have some problems with user agents and this kind of format; it works fine with user agent without blank spaces, for example:

Java/1.6.0_21 -> it works
Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko -> I get a invalid log line.

It seems that import_logs.py uses blank spaces as a delimiter. ¿Can I specify which delimiter to use?

In that case fields are delimited by tabs

Thanks in advance,


(Matthieu Aubry) #2

Hi There,

What software generate those Tabs delimited logs?

Can you post here an example log lines from this log?

currently it’s not possible to set the log file delimiter, but the script can read a lot of log files already so maybe we could add support for this if it’s widely used. Otherwise you can create custom regex to parse the log, see the --help output