Rule ID
SV-240264r879748_rule
Version
V1R2
CCIs
Without sufficient granularity of time stamps, it is not possible to adequately determine the chronological order of records. Time stamps generated by the web server include date and time and must be to a granularity of one second. In order to ensure that Lighttpd is correctly logging timestamps, the accesslog.format setting must be configured correctly.
At the command prompt, execute the following command: grep 'accesslog.format' /opt/vmware/etc/lighttpd/lighttpd.conf | grep -v ^# If no value is returned or if the "accesslog.format" is commented out, this is a finding.
Navigate to and open /opt/vmware/etc/lighttpd/lighttpd.conf
Note: If the accesslog.format setting was commented out with a '#' sign, remove the '#' sign.
Configure the lighttpd.conf file with the following:
accesslog.format = "%h %l %u %t \"%r\" %b %>s \"%{User-Agent}i\" \"%{Referer}i\""