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

Change time-unit in report #536

Open
coccoinomane opened this issue Oct 10, 2016 · 5 comments
Open

Change time-unit in report #536

coccoinomane opened this issue Oct 10, 2016 · 5 comments

Comments

@coccoinomane
Copy link

Hello!

First of all, thanks for this great utility! GoAccess has turned inspecting raw logs from a nightmare to an almost pleasant activity 😁

I would like to suggest a feature.

I often need to inspect logs from a recent server crash to check whether it was due to high traffic. In these cases, the time scale is not days but hours. Hence, it would be great if one could change the time-unit of the HTML report from days to hours.

I am aware that the Time Distribution panel already shows visits-vs-hours, but those are day-averaged visits rather than actual visits on a given day.

This feature could also be implemented with a global filter on time. If I set such filter to show data only from a given day, then I could just use the Time Distribution panel to obtain the hourly visits on that day. In this sense, my request could be considered a duplicate of the one in #112.

Thank you for your attention!

Ciao,
Guido

@allinurl
Copy link
Owner

From what I understand, you are looking to display the time distribution panel but for a given date, is that correct? It sounds like #117 should cover this.

@coccoinomane
Copy link
Author

Thanks for your reply allinurl! Yes, a global filter paired with the time-distribution panel would meet my request.

Once you implement filters, goaccess could compete with Google Analytics 😜

@allinurl
Copy link
Owner

Actually the filtering feature is the next big update that GoAccess will get, both in the HTML side and the terminal side :)

@gxrxrdx
Copy link

gxrxrdx commented May 13, 2017

where can I find what "time distribution" plots? The only reference to time distribution in man page is regarding the parameter --hour-spec, but I don't get what the data axis represents here. In my server I see consecutive numbers from 6 to 23, is that time to serve? load per hour of day?

@allinurl
Copy link
Owner

@gxrxrdx

So the Time Distribution panel displays an hourly report. That means, it displays 24 data points (0 = 12am, 1 = 1am, ... 23 = 11pm), one for each hour of the day. So if your log contains 1,000 entries, then from each request, goaccess will grab the hour portion from the date and add up the hits, visitors, bandwidth, etc.

For instance:

192.168.10.10 - - [21/Jan/2016:21:20:25 -0100] "GET /home HTTP/1.1" 404 464 "-" "Debian Firefox/1.3"
192.168.10.10 - - [21/Jan/2016:21:20:54 -0100] "GET /home HTTP/1.1" 404 464 "-" "Debian Firefox/1.3"
192.168.10.10 - - [21/Jan/2016:22:12:23 -0100] "GET /home HTTP/1.1" 404 464 "-" "Debian Firefox/1.3"
192.168.10.10 - - [21/Jan/2016:22:45:22 -0100] "GET /home HTTP/1.1" 404 464 "-" "Debian Firefox/1.3"
192.168.10.10 - - [21/Jan/2016:23:45:22 -0100] "GET /home HTTP/1.1" 404 464 "-" "Debian Firefox/1.3"

It will display,

 2       1 40.00%   928.0   B 21 ||||||||||||||||||||||||||||||||||||||||||||
 2       1 40.00%   928.0   B 22 ||||||||||||||||||||||||||||||||||||||||||||
 1       1 20.00%   464.0   B 23 ||||||||||||||||||||||

Note that there are 2 requests at 9pm, 2 requests at 10pm, and 1 request at 11pm. Each displays other relevant metrics, e.g., hits, visitors, bandwidth, max t.s. etc.

This panel is very useful to know at what time your server gets the most visitors, hits, bandwidth, avg.t.s, etc...

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

3 participants