STIGUI
V-26280CAT II — Medium severitySV-33203r1_rule

The sites error logs must log the correct format.

Rule version WA00612 A22 · STIG v1 · 2019-01-07

Discussion

The server error logs are invaluable because they can also be used to identify potential problems and enable proactive remediation. Log data can reveal anomalous behavior such as “not found” or “unauthorized” errors that may be an evidence of attack attempts. Failure to enable error logging can significantly reduce the ability of Web Administrators to detect or remediate problems. The LogFormat directive defines the format and information to be included in the access log entries.

Check

Enter the following command:

grep "LogFormat" /usr/local/apache2/conf/httpd.conf.

The command should return the following value:

LogFormat "%a %A %h %H %l %m %s %t %u %U \"%{Referer}i\" " combined.

If the above value is not returned, this is a finding.

Fix

Edit the httpd.conf file and add LogFormat "%a %A %h %H %l %m %s %t %u %U \"%{Referer}i\" " combined

Identifiers

Group ID
V-26280
Group title
WA00612
Rule ID
SV-33203r1_rule
Check ID
C-33744r1_chk
Fix ID
F-29379r1_fix