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:
-
For each sensor, go to the
<sca_install_dir>/Core/liband unzip thescancentral-cli-<version>.jarfile. -
In the
<fortify.home>/<app_context>/confdirectory, locate thelog4j2.xmlfile in the jar root or/Resourcesfolder (depending on the exact version) and set the loggers to "debug." - Save the file and re-zip the JAR file.
The next time the sensor is called, the log contains debug-level information.