Logging Directives should be restricted to authorized users. - 'CustomLog logs/access_log combined'

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: e873235ab2459e9e9ac08a17bf4d2c34824816919b016f394e69a699f8655912