Configuring the Logging Level for Sensors

ScanCentral SAST logging typically provides enough information to follow the flow of operations under normal conditions. If things are not working as expected, the logging may not provide enough information to determine the actual root cause of the issue.

In the event that ScanCentral does not provide enough information to diagnose a situation, you can configure the logging level for the Controller and for sensors. For information about how to configure the logging level for the Controller, see Configuring the Logging Level on the Controller.

To increase the log level for sensors:

  1. For each sensor, go to the <sca_install_dir>/Core/lib and unzip the scancentral-cli-<version>.jar file.

  2. In the <fortify.home>/<app_context>/conf directory, locate the log4j2.xml file in the jar root or /Resources folder (depending on the exact version) and set the loggers to "debug."

  3. Save the file and re-zip the JAR file.

The next time the sensor is called, the log contains debug-level information.