goaccess: ELB logs problem with empty status code -
Hi. I have a problem with ELB log. Until today, I could read ELB log, today log I have this error: Token ‘-’ doesn’t match specifier ‘%s’
This is my logs:
2017-11-23T01:24:08.529348Z ELB-DOMAIN 66.249.66.206:34140 192.168.1.48:443 0.000744 0.000009 0.000012 - - 710 31845 "- - - " "-" - -
2017-11-23T01:25:15.198480Z ELB-DOMAIN 66.249.66.202:57383 192.168.1.48:80 0.00004 0.000869 0.000021 301 301 0 0 "GET http://www.DOMAIN.it:80/es/ropa/pants/ela038059712247007.html?Country=ES HTTP/1.1" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" - -
2017-11-23T01:22:14.697402Z ELB-DOMAIN 37.10.149.133:23315 192.168.1.48:443 0.000783 0.000009 0.000014 - - 22764 169121 "- - - " "-" - -
I use: Log Format: %dT%t.%^ %^ %h:%^ %^ %T %^ %^ %^ %s %^ %b “%r” “%u” Date Format %Y-%m-%d Time Format %H:%M:%S
Thanks. Regards.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 20 (9 by maintainers)
@Jamie-BitFlight GoAccess requires at least a valid IPv4/6, date/time and the request. It seems like the request is the only missing part from your access log, so you could use a different field for
%U
in the absence of it. e.g.,However, note that you will certainly be missing a lot of metrics that you could get from an HTTP log.
Added command line option
--no-strict-status
to disable status validation which addresses the original post. It will be deployed in the upcoming version. Feel free to test it out by building from development. Thanks