-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Requested Files and Not Found panels duplicate information #2784
Comments
Could you please provide a few sample lines from your log so I can replicate the issue? Additionally, feel free to share a screenshot of the problem for better clarity. Thanks! |
@allinurl Thanks for the reply. I have attached both logs and screen captures. These logs are structured logs from Caddy. They seems to be slightly different, with one returning a 308, and the other a 404. For reference, I don't run a wordpress site, so these requests are invalid. Thanks :)
|
Confirmed. Similar problem with nginx. The REQUESTS panel receives requests with status 404, 403, etc. Perhaps we need an option to explicitly specify which statuses to consider for the REQUESTS panel. Perhaps we need to output an additional column indicating status. (METHOD, PROTOCOL, STATUS, DATA) The ideal would be to display multiple tables with their status, as is done for 404s |
It appears your application might be incorrectly returning a 308 when a page is not found, leading to a subsequent 404. goaccess simply reflects the log data. I'm not convinced that treating 308 as 404 with a flag is beneficial beyond this specific case. Since they represent different server responses, it might obscure valuable info. #117 will address filtering and searching for these specific cases. Stay tuned. If you need to handle 444 status codes as 404s in goaccess, use the |
After further investigation, I've realised that this problem is in fact caused by Caddy automatically upgrading requests from http -> https. I would agree that showing 308's in the requests panel is the correct thing to do, as a 308 could be a legitimate request. To resolve the problem, I have added the following configuration to my Caddyfile, and closed port 80 on my firewall.
Caddy documentation reference: https://caddyserver.com/docs/caddyfile/options#auto-https Many thanks for your help with this issue :) |
happy to help! I’m glad you were able to sort it out. |
The "Requested Files (URLs)" panel contains requests for files that do not exist. There is also a panel "Not Found Files (404)" which also contains the same requests. I'm not sure if this is an intentional design decision, but it would be nice if the "Requested Files" panel was populated with requests that return a 2xx status, as this would provide a cleaner view of which pages are most popular, without being cluttered with requests that returned a 4xx.
The text was updated successfully, but these errors were encountered: