Goaccess: UniqueID from Apache

Created on 5 Aug 2018  ·  3Comments  ·  Source: allinurl/goaccess

Hi @allinurl , Thank you for GoAccess.

In our context, we use the Apache unique ID on our logs:

%{UNIQUE_ID}e %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"

Which produces an output as such:

W05TOAAhHiEXJHDTpZ1psQAAACc 165.227.40.119 - - [17/Jul/2018:20:36:08 +0000] "HEAD /games/turtles.php HTTP/1.1" 200 - "-" "Mozilla/5.0 (Windows NT 5.1; rv:21.0) Gecko/20130331 Firefox/21.0"

I tried editing the log format options within GoAccess but it still not happy with the unique id
(Token 'W05TOAAhHiEXJHDTpZ1psQAAACc' doesn't match specified).

Please, is it possible to convince GoAccess to like our logs ?

Thanks in advance for your time, appreciated.

lodattime format question

All 3 comments

Please try this, it should work:

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

Thank you @allinurl , it worked, I had not realised the brackets around the dates ( %^[%d:%t %^] ) ... thank you!

Glad that worked :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tbarbette picture tbarbette  ·  3Comments

securixhk picture securixhk  ·  3Comments

canepa picture canepa  ·  3Comments

olimpo88 picture olimpo88  ·  3Comments

DestinyWang picture DestinyWang  ·  3Comments