Add Logging Settings
POST/api/v31.02/settings/logging
x-prisma-cloud-target-env: {"permission":"manageAlerts","saas":true,"self-hosted":true}
x-public: true
Configures the logging settings. This includes Syslog, Stdout, and Prometheus instrumentation.
For more information, see Logging.
cURL Request
Refer to the following example cURL request that enables verbose scan output for syslog and stdout:
$ curl -k \
-u <USER> \
-H 'Content-Type: application/json' \
-X POST \
-d \
'{
"syslog": {
"enabled": true,
"verboseScan": true,
"allProcEvents": false,
"addr": ""
},
"stdout": {
"enabled": true,
"verboseScan": true,
"allProcEvents": false,
}
}' \
"https://<CONSOLE>/api/v<VERSION>/settings/logging"
Request
Responses
- 200
- default
OK