Goaccess: Date Range Filter

Created on 22 Jul 2016  路  13Comments  路  Source: allinurl/goaccess

It would be really nice to be able to filter by a given date range in the HTML report and for it to be compatible with real time mode (albeit nothing would of course update while a date range is selected).

In fact, I guess having various filter options might be useful.

Do you think this would be feasible? Thanks!

duplicate enhancement

All 13 comments

Ah, looks like #117 will address this, assuming 'date/time' is an available filter.

That's right. #117 will definitely cover this.

I'm closing this since it will be addressed on #117. Thanks for posting this.

Was this ever actually added as i can't see the option?

@bitnumus Not yet. It will be part of #117.

Ah ok, just noticed it was over a year ago that issue with no activity so thought it was done, now i see its not closed :D. Any ETA at all?

@bitnumus Actually the filtering is the next big update that GoAccess will get, both in the HTML side and the terminal side. Though, this does require some good development time to get it right. I don't have yet an ETA, however, I really need this for myself as well so it would definitely be sooner than later :)

@bitnumus also, one of the major road blocks was #216, since that's implemented, I can start looking into the filters stuff.

I've just started using GoAccess on a website hosted on Amazon AWS across multiple nodes using rsyslog to localize the access logs and I wanted a good visualizer for this... Go Access looked like it'll fit but the lack of a filter is a real pain when diagnosing attacks.

I've written a quick bash script to only display the current hour, the hour before and feed in live traffic. It's pretty basic but does the job (they'll be a few lines of overlap with the use of tail) and my access log format is a little different to COMBINED due to the extra IP address from the load balancers... but you get the idea.

#!/bin/bash

> /tmp/access_log.last_hour
grep -r `date -d "1 hours ago" '+%d/%h/%Y:%H: '` /var/log/apache2/access_log >> /tmp/access_log.last_hour
grep -r `date '+%d/%h/%Y:%H: '` /var/log/apache2/access_log >> /tmp/access_log.last_hour

tail -f /var/log/apache2/access_log | goaccess /tmp/access_log.last_hour --log-format ' %h %^ %^ %^ [%d:%t %^] "%r" %s %b %D "%u"' --date-format %d/%b/%Y --time-format %H:%M:%S

@harrywebster Thanks for posting this. #117 should address the filter feature. Stay tuned!

Looking forward to that feature, keep up the great work on the best log analyzer barre none.

Any ETA of the same? #117 is still open.

@dineshkarora I plan to deploy the version I'm working on (which is way behind) and then I can start working on #117. Filtering is much needed for myself so rest assured this will be done rather sooner than later :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

canepa picture canepa  路  3Comments

LoanDEV picture LoanDEV  路  3Comments

tbarbette picture tbarbette  路  3Comments

ArunDahiya1 picture ArunDahiya1  路  3Comments

DestinyWang picture DestinyWang  路  3Comments