This article provides instructions for enabling and disabling CSAPI logging for the Symantec Protection Engine (SPE)
SPE 9.x on Windows or Linux
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. For example: /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 |
[csapi-log-config]
CSAPI_DEBUG_LOG_ENABLE=true
CSAPI_DEBUG_LOG=<path_to>/csapi.log
CSAPI_DEBUG_LEVEL=5
CSAPI_DEBUG_FILE_SIZE_LIMIT=1048576000
CSAPI_DEBUG_MAX_LOG_FILES=3There are two ways to disable CSAPI debug logging in SPE 9.x and newer which are listed below:
net stop symcscan
net start symcscan/etc/init.d/symcscan stop[csapi-log-config]
CSAPI_DEBUG_LOG_ENABLE=false
CSAPI_DEBUG_LOG=<path_to>/csapi.log
CSAPI_DEBUG_LEVEL=0