goaccess
goaccess copied to clipboard
nginx: [alert] could not open error log file: open() "/var/lib/nginx/logs/error.log" failed (13: Permission denied)
im using Unraid Docker and NginxProxyManager and having this error :
nginx: [alert] could not open error log file: open() "/var/lib/nginx/logs/error.log" failed (13: Permission denied)
also dont know what path should be for /opt/log ? is /mnt/user/appdata/NginxProxyManager/log/ the right path ?
Not sure I understand, is this a goaccess issue? are you reading an access log?
Not sure I understand, is this a goaccess issue? are you reading an access log? Yes
![]()
what exacly access.log should i read ? NginxProxyManager ? im not shure what path should be for /opt/log ? the path is my proxy log ? (/mnt/user/appdata/NginxProxyManager/log) or somethink else ?
Not sure I understand, is this a goaccess issue? are you reading an access log?
Yes i have mounted log of NginxProxyManager to Goaccess
and now i have some time error ...
tryed
#log_format [%d:%t %^] %s - %m %^ %v "%U" [Client %h] [Length %b] [Gzip %^] "%u" "%R"
log_format [%d:%t %^] %^ %^ %s - %m %^ %v "%U" [Client %h] [Length %b] [Gzip %^] [Sent-to %^] "%u" "%R"
#log-format [%d:%t %^] %^ %s %^ %^ %m %^ %v "%U" [%^ %h] [%^ %b] %^"%u" "%R"
[08/Dec/2021:16:19:21 +0200] - 200 200 - GET https mysite.com "/" [Client 172.70.162.210] [Length 529] [Gzip 2.12] [Sent-to 192.168.0.199] "Uptime-Kuma/1.11.0" "-"
this is my line in proxy-host-10_error.log
this is last error print
for this line : log_format [%d:%t %^] %s - %m %^ %v "%U" [Client %h] [Length %b] [Gzip %^] "%u" "%R"
Please try:
goaccess access.log --log-format='[%d:%t %^] %^ %s %^ %^ %m %^ %v "%U" [%^ %h] [%^ %b] %^"%u" "%R"' --date-format=%d/%b/%Y --time-format=%T
I fixed the problem of tockens by other ways but still having some nginx error of error log but all working. but most important founded that im using unraid template : gregyankovoy/goaccess and its old version 1.4 so i will try to switch to this repo. Thanks