Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UniqueID from Apache #1189

Closed
domainoverflow opened this issue Aug 5, 2018 · 3 comments
Closed

UniqueID from Apache #1189

domainoverflow opened this issue Aug 5, 2018 · 3 comments

Comments

@domainoverflow
Copy link

domainoverflow commented Aug 5, 2018

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.

@allinurl
Copy link
Owner

allinurl commented Aug 6, 2018

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

@domainoverflow
Copy link
Author

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

@allinurl
Copy link
Owner

allinurl commented Aug 6, 2018

Glad that worked :)

@allinurl allinurl closed this as completed Aug 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants