Goaccess: Display warning if access log is empty

Created on 29 Mar 2017  路  1Comment  路  Source: allinurl/goaccess

I setup goaccess but somehow i forgot to add access_log on my nginx server block. When run

goaccess /var/log/nginx/access.log
# OR 
goaccess -f /var/log/nginx/access.log

didn't complaint access.log file is empty. goaccess just quit after execute these command.

goaccess /var/log/nginx/access.log -o report.html

above command just echo /var/log/nginx/access.log without any warning.

I'd love if goaccess give warning if log is empty, so we know whats wrong :)

log-processing question

Most helpful comment

If your log is empty, goaccess used to error out, now it will output an empty report. This change was part of issue #471.

>All comments

If your log is empty, goaccess used to error out, now it will output an empty report. This change was part of issue #471.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

domainoverflow picture domainoverflow  路  3Comments

ArunDahiya1 picture ArunDahiya1  路  3Comments

narayan1599 picture narayan1599  路  3Comments

eroldru picture eroldru  路  3Comments

olimpo88 picture olimpo88  路  3Comments