Goaccess: Log format issues with VCOMBINED format

Created on 16 Apr 2017  路  2Comments  路  Source: allinurl/goaccess

Command line args: -log-format '%v:%^ %h %^[%d:%t %^] "%r" %s %b "%R" "%u"' --time-format '%H:%M:%S' --date-format '%d/%b/%y'

Sample log:
subdomain.example.com 192.168.2.11 - [16/Apr/2017:10:00:39 -0400] "GET /path/to/page HTTP/2.0" 200 12598 "http://referrer.example.com/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0"

Error: Token '-0400]' doesn't match specifier '%h'

I have tried many different format strings, but it never seems to work.

Thanks in advance!

lodattime format question

Most helpful comment

Please try this:

goaccess access.log --log-format='%v %h %^[%d:%t %^] "%r" %s %b "%R" "%u"' --date-format=%d/%b/%Y --time-format=%T

All 2 comments

Please try this:

goaccess access.log --log-format='%v %h %^[%d:%t %^] "%r" %s %b "%R" "%u"' --date-format=%d/%b/%Y --time-format=%T

Thanks so much! It worked.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DestinyWang picture DestinyWang  路  3Comments

narayan1599 picture narayan1599  路  3Comments

deosha picture deosha  路  3Comments

ArunDahiya1 picture ArunDahiya1  路  3Comments

LoanDEV picture LoanDEV  路  3Comments