1. Home
  2. Security Hardening
  3. CIS Apache Tomcat 7 L1 V1.1.0 Middleware
  4. Specify file handler in logging.properties (check if java.util.logging.ConsoleHandler exists in web application)

Specify file handler in logging.properties (check if java.util.logging.ConsoleHandler exists in web application)

Details

Handlers specify where log messages are sent. Console handlers send log messages to the Java console and File handlers specify logging to a file.

Solution

Add the following entries to your logging.properties file if they do not exist.
handlers=org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
Ensure logging is not off and set the logging level to the desired level such as:
org.apache.juli.FileHandler.level=FINEST

Supportive Information

The following resource is also helpful.

This security hardening control applies to the following category of controls within NIST 800-53: Audit and Accountability.This control applies to the following type of system Unix.

References

Source

Updated on July 16, 2022
Was this article helpful?

Related Articles