AS24-U2-000090 - The Apache web server must produce log records containing sufficient information to establish what type of events occurred.

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

Information

Apache web server logging capability is critical for accurate forensic analysis. Without sufficient and accurate information, a correct replay of the events cannot be determined.

Ascertaining the correct type of event that occurred is important during forensic analysis. The correct determination of the event and when it occurred is important in relation to other events that happened at that same time.

Without sufficient information establishing what type of log event occurred, investigation into the cause of event is severely hindered. Log record content that may be necessary to satisfy the requirement of this control includes but is not limited to time stamps, source and destination IP addresses, user/process identifiers, event descriptions, application-specific events, success/fail indications, file names involved, access control, and flow control rules invoked.

Solution

Determine the location of the 'HTTPD_ROOT' directory and the 'httpd.conf' file:

# httpd -V | egrep -i 'httpd_root|server_config_file'
-D HTTPD_ROOT='/etc/httpd'
-D SERVER_CONFIG_FILE='conf/httpd.conf'

Uncomment the 'log_config_module' module line.

Configure the 'LogFormat' in the 'httpd.conf' file to look like the following:

LogFormat '%a %A %h %H %l %m %s %t %u %U '%{Referer}i' ' common

Restart Apache: apachectl restart

NOTE: Your log format may be using different variables based on your environment, however it should be verified to be producing the same end result of logged elements.

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Apache_Server_2-4_UNIX_Y22M01_STIG.zip

Item Details

Category: AUDIT AND ACCOUNTABILITY

References: 800-53|AU-3, 800-53|AU-12, 800-53|AU-14(1), CAT|II, CCI|CCI-000130, Rule-ID|SV-214279r612241_rule, STIG-ID|AS24-U2-000090, STIG-Legacy|SV-102857, STIG-Legacy|V-92769, Vuln-ID|V-214279

Plugin: Unix

Control ID: 963a4015bee47fc89cba46332a2ca522b62d62041baaffc01490b5a4d52e30c9