Confused about httpd log format and files
I have the following configured in my httpd.conf (comments removed):
Code:
LogLevel warn More inportantly, I want the format shown that I've highlighted -- I've used this elsewhere, instead in access_log I get what appears to be the format beneath it: Code:
87.236.176.2 - - [09/Mar/2024:12:48:14 -0500] "GET / HTTP/1.1" 200 4723 Code:
209.97.152.248 - - [09/Mar/2024:12:50:03 -0500] "GET /images/favicon.ico HTTP/1.1" 200 5430 (<-- before changing LogFormat) |
Might one presume this is the Apache HTTPD?
And if so, that it is the version from the current SLACKWARE sets? |
If it is indeed Apache (as "httpd" leads me to believe), this article may be helpful.
|
FYI: I have used 5 different HTTPD servers, and I am sure I have not used all of the ones that exist. The Apache HTTPD is only the best known right now.
The NCSA HTTPd server came first, and the early Apache HTTPD server was based upon that. |
Quote:
Code:
CustomLog "/var/log/httpd/access_log" combined |
Quote:
Quote:
Code:
LogFormat "%{%Y-%m-%d %H:%M:%S}t %h %>s %B \"%{User-Agent}i\" \"%m %U%q\"" common (Still not sure of what the various common, combined, and combinedio nicknames do, but maybe those don't apply in my case.) |
You should leave the log format definitions alone and specify which one you want to use in the vhost definition, as in jayjwa's post.
It seems you have 'common' specified when you want 'combined'. |
Quote:
|
No idea where they originate, you could label them barry, dave or short, if you want.
My point is that the httpd.conf contains the format definition, specifying the layout and an arbitrary label for it, which you can then call by label in each vhost without having to recreate the format template all over again. Pick one that matches what you want to see in your logs, or make your own. |
All times are GMT -5. The time now is 05:24 PM. |