Logging Directives should be restricted to authorized users. - 'ErrorLog logs/error_log'

Information

The server logs are invaluable for a variety of reasons. They can be used to determine what resources are being used most. They can also be used to spot any potential problems before they become serious. Most importantly, they can be used to watch for anomalous behaviour that may be an indication that an attack is pending or has occurred. If there are multiple web sites, or with large websites with multiple people responsible for portions of the web site, each responsible individual or organization needs access to their own web logs, and needs the skills/training/tools for monitoring the logs.

Solution

Edit the httpd.conf file and add the following:-
LogLevel notice
ErrorLog logs/error_log
LogFormat '%h %l %u %t '%r' %>s %b '%{Accept}i' '%{Referrer}i' '%{User-Agent}i'' combined
CustomLog logs/access_log combined

Item Details

Category: AUDIT AND ACCOUNTABILITY

References: 800-53|AU-9

Plugin: Unix

Control ID: bb73744362d1d5d105a1a346db44d03ad194ee847d6ab0fa781a710e9d73a76b