goaccess: Error occurred at: src/parser.c - read_log - 2728
Hi,
I am getting the following error trying to parse nginx error.log with goaccess:
# goaccess -f /var/log/nginx/error.log -p /etc/goaccess.conf
GoAccess - version 1.3 - Jun 5 2019 09:31:27
Config file: /etc/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
But the file definitely exists in the location:
# ls -al /var/log/nginx/error.log
-rw-r----- 1 nginx adm 20313 Jun 5 07:45 /var/log/nginx/error.log
Just in case, here is the goaccess config file:
time-format %H:%M:%S
date-format %Y/%m/%d
log-format %d %t %^, client: %h, server: %^, request: "%r", host: "%v", referrer: "%R"
config-dialog false
color-scheme 1
hl-header true
html-report-title Nginx error log statistics
no-color false
no-column-names false
no-progress false
with-mouse true
no-csv-summary false
all-static-files false
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 17 (7 by maintainers)
日志路径不存在导致
@onlime Thanks for sharing that feedback. I’ve updated the error message to be more descriptive. It will be pushed out in the upcoming version. It reads now as:
@vszakats Thanks for sharing that info. Makes sense to show that if a boolean setting is set to an invalid value. Let me look into that as well.
I came across this error today. I believe it was because I was omitting the
>
before the HTML file nameexample.log > example.html
. Once I added it, I could get passed the parse error.