gcode-mirror / logstalgia

Automatically exported from code.google.com/p/logstalgia
0 stars 0 forks source link

Lack of timezone delta causes parsing to fail #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm trying to point Logstalgia at CherryPy's output. It's supposedly standard 
NCSA combined.

I get this error, even on just one line of the output:

`logstalgia: could not parse first entry`

Here's a that line:
`38.100.210.126 - - [21/Jun/2012:23:49:36] "GET / HTTP/1.1" 200 3355 "" 
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8) AppleWebKit/536.19 (KHTML, like 
Gecko) Version/6.0 Safari/536.19"`

If I manually add a timezone offset now it's OK with it, like this:

`38.100.210.126 - - [21/Jun/2012:23:49:36 +0000] "GET / HTTP/1.1" 200 3355 "" 
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8) AppleWebKit/536.19 (KHTML, like 
Gecko) Version/6.0 Safari/536.19"`

Seems they are quite aware they're not including timezones ( 
https://bitbucket.org/cherrypy/cherrypy/src/b0c48210b250/cherrypy/_cplogging.py#
cl-284 ). Don't know why. It'd be cool if logstalgia could handle it. 

Original issue reported on code.google.com by webmas...@todossantosmusicfestival.com on 24 Aug 2012 at 8:33

GoogleCodeExporter commented 9 years ago

Original comment by acaudw...@gmail.com on 3 Apr 2014 at 9:07