Page 1 of 1

Looking for web server logs

Posted: Mon Mar 07, 2022 12:44 am
by lr
Dumb question. The web server logs used to be on the shell machine in /var/log/httpd/<username>, and perhaps (judging by some forum posts) in /var/log/httpd/by_user/<username>, or for error messages in /var/log/httpd/custweb/. The latter directory seems to no longer exist. The /var/log/httpd/... directories seems to exist, but I'm getting "permission denied" inside it, even when accessing my own directory /var/log/httpd/lr and /var/log/httpd/by_user/lr.

Note that we have a custom domain; I have an old script that used to look in /var/log/httpd/lr/lr.los-gatos.ca.us ... same answer.

Clearly, the logs are still kept somewhere ... webalizer is working. But how do I access the raw logs, to see "who accessed which page when"? I suspect that this is partially my fault, partially the complex permission scheme: I suspect that directories exist but are not searchable, which is why I'm getting "permission denied" errors.

Re: Looking for web server logs

Posted: Mon Mar 07, 2022 5:10 pm
by joemuller
Hi, it looks like the web logs have moved over to /logs/by_user/ on the shell server - there should be a folder for each domain. If you have any personal scripts that are looking in the old /var/log locations, you'll need to enter in the new path.

Re: Looking for web server logs

Posted: Sat Mar 19, 2022 10:16 pm
by lr
Thank you, found them there!