Article 6K7JF Confused about httpd log format and files

Confused about httpd log format and files

by
mfoley
from LinuxQuestions.org on (#6K7JF)
I have the following configured in my httpd.conf (comments removed):
Code:LogLevel warn

<IfModule log_config_module>
LogFormat "%{%Y-%m-%d %H:%M:%S}t %h %>s %B \"%{User-Agent}i\" \"%m %U%q\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common

<IfModule logio_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>

CustomLog "/var/log/httpd/access_log" common

</IfModule>First of all, what are the various qualifiers "combined", "common" and "combindeio"? I don't understand these.

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 4723If I comment out that one (right after the highlight) I get lines of the word "common":
Code:209.97.152.248 - - [09/Mar/2024:12:50:03 -0500] "GET /images/favicon.ico HTTP/1.1" 200 5430 (<-- before changing LogFormat)
common (<-- after changing LogFormat)
common
common
commonWhat do I need to do to get the highlighted format working?
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments