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

Capture nginx $request_time #26

Closed
zippoxer opened this issue Aug 30, 2013 · 5 comments
Closed

Capture nginx $request_time #26

zippoxer opened this issue Aug 30, 2013 · 5 comments
Assignees
Labels

Comments

@zippoxer
Copy link

My nginx log_format is basically a NSCA Combined Log Format with $request_time appended. $request_time is the duration of the request in seconds with millisecond precision (like 0.2 for 200ms.)

Respectively, my goaccess log_format is NSCA Combined Log Format with %T appended:

%h %^[%d:%^] "%r" %s %b "%R" "%u" %T

Yet the serve time is always zero in my goaccess report. Everything else is parsed properly from the log.

What's the problem?

@allinurl
Copy link
Owner

Hi there,

Could you please post a couple of lines from your log. Thanks.

Gerardo

@zippoxer
Copy link
Author

Here are two lines from my log:

85.65.130.108 - - [30/Aug/2013:23:33:37 +0400] "GET /files/test.txt HTTP/1.1" 200 35950 "http://localhost/" Mozilla/5.0 (Linux; Android 4.3; Nexus 4 Build/JWR66Y) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.59 Mobile Safari/537.36" 0.084
81.97.31.170 - - [30/Aug/2013:23:33:37 +0400] "GET /api/test HTTP/1.1" 200 116006 "-" "-" 0.422

@allinurl
Copy link
Owner

Found the issue. Will deploy a fix pretty soon!

@ghost ghost assigned allinurl Aug 30, 2013
@allinurl
Copy link
Owner

@zippoxer Thanks for reporting this issue. It has been fixed.

Please feel free to build GoAccess from the master branch.
http://goaccess.prosoftcorp.com/download#installation

@zippoxer
Copy link
Author

I'm running a build from master and I can confirm the bug is fixed.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants