Goaccess: Unable to open the specified log file. No such file or directory

Created on 12 Apr 2018  路  8Comments  路  Source: allinurl/goaccess

image

How can I solve this? Thanks!

log-processing question

Most helpful comment

You need to parse each access log.

goaccess /var/log/nginx/access.log /var/log/nginx/access.log.1 ...

OR

zcat /var/log/nginx/access.log.*.gz | goaccess access.log -

All 8 comments

Solved! It just needs to set the right path to access.log. It should be /var/log/nginx/access.log. There are other log files in /var/log/nginx/, how about those log files? Is it already included in report.html?

You need to parse each access log.

goaccess /var/log/nginx/access.log /var/log/nginx/access.log.1 ...

OR

zcat /var/log/nginx/access.log.*.gz | goaccess access.log -

Thanks for the clarification!

how can this be solved in docker? because i'm getting the same error.

i have created /srv/goaccess/logs/access.log
and i mounted the folder in the docker command like this -v "/srv/goaccess/logs:/srv/logs"

Error

GoAccess - version 1.3 - Feb  7 2019 09:19:45
Config file: /srv/data/goaccess.conf

Fatal error has occurred
Error occurred at: src/parser.c - read_log - 2728
Unable to open the specified log file. No such file or directory

@M034B5 Did you follow this?

@M034B5 Did you follow this?

Oops forgot to update my post, everything ran smoothly. I skimmed through some closed issues back then and solved my problem, Documentation lacks a lot of information. But all good now. Thanks!

@M034B5 Did you follow this?

Oops forgot to update my post, everything ran smoothly. I skimmed through some closed issues back then and solved my problem, Documentation lacks a lot of information. But all good now. Thanks!

Mind sharing your findings? I'm having the same issue.

@lelas Are you still having this issue? Can you please share how you are running goaccess? also, are you able to tail the log?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Tassleh0ff picture Tassleh0ff  路  4Comments

Gill-Bates picture Gill-Bates  路  3Comments

DestinyWang picture DestinyWang  路  3Comments

g33kphr33k picture g33kphr33k  路  3Comments

LoanDEV picture LoanDEV  路  3Comments