You request to know how to collect CSAPI logging for the Symantec Protection Engine (SPE).
Note: CSAPI logging is intended for debugging the SPE, therefore it should be enabled only at the request of a Broadcom Support Engineer.
Below is an explanation of each of the CSAPI Debug settings as well as if the setting is required and the default value.
Setting | Description | Required | Default Value |
CSAPI_DEBUG_LOG_ENABLE | Enable CSAPI debug logging (true, false) | Yes | None |
CSAPI_DEBUG_LOG | The path and file name of the debug log. I.e. /var/log/csapi.log | Yes | None |
CSAPI_DEBUG_LEVEL | The level the log should be set to (0 - None, 1 - Fatal, 2 - Error, 3 - Warning, 4 - Notice, 5 - Verbose) | Yes | None |
CSAPI_DEBUG_FILE_SIZE_LIMIT | The maximum size of each log file. The value of this setting is in bytes and has a minimum value of 1 and a maximum value of 1048576000 (1GB). | No | 1048576000 |
CSAPI_DEBUG_MAX_LOG_FILES | The number of additional logs to keep after reaching the CSAPI_DEBUG_FILE_SIZE_LIMIT. This setting has a minimum value of 3 and a maximum value of 20. | No | 3 |
As of SPE 9.x CSAPI logging can be enabled without the need to restart the SPE service.
[csapi-log-config]
CSAPI_DEBUG_LOG_ENABLE=<true/false>
CSAPI_DEBUG_LOG=<log file name>
CSAPI_DEBUG_LEVEL=<log level between 0-5>
CSAPI_DEBUG_FILE_SIZE_LIMIT=<file size limit>
CSAPI_DEBUG_MAX_LOG_FILES=<max log files>
/etc/init.d/symcscan stop
cd /opt/SYMCScan/bin
cp -p symcscan.sh symcscan.sh.bak
CSAPI_DEBUG_LOG=<log file name>
CSAPI_DEBUG_LEVEL=<log level between 0-5>
CSAPI_DEBUG_FILE_SIZE_LIMIT=<file size limit>
CSAPI_DEBUG_MAX_LOG_FILES=<max log files>
export CSAPI_DEBUG_LOG
export CSAPI_DEBUG_LEVEL
export CSAPI_DEBUG_FILE_SIZE_LIMIT
export CSAPI_DEBUG_MAX_LOG_FILES
/etc/init.d/symcscan start
There are two ways to disable CSAPI debug logging in SPE 9.x and newer which are listed below:
/etc/init.d/symcscan stop
[csapi-log-config]
CSAPI_DEBUG_LOG_ENABLE=false
CSAPI_DEBUG_LOG=/var/log/csapi.log
CSAPI_DEBUG_LEVEL=0
/etc/init.d/symcscan stop
/etc/init.d/symcscan start
For collecting SPE VERBOSE logs, CSAPI debug logs, and Stargate VERBOSE logs on Windows, see:
https://knowledge.broadcom.com/external/article/211023