Add Logging Settings
POST/api/v33.01/settings/logging
x-prisma-cloud-target-env: {"permission":"manageAlerts"}
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
- application/json
Body
ConsoleAddress is the console address used by the admin to access the console, used for creating links for runtime events.
EnableMetricsCollection indicates whether metric collections feature is enabled.
IncludeRuntimeLink indicates whether link to forensic event should be included in the output.
stdout object
LoggerSetting are a specific logger settings
AllProcEvents indicates whether any new spawned container process should generate an event source entry.
Enabled indicates whether log feature is enabled.
VerboseScan indicates whether detailed scan (Compliance/Vulnerability) result should be written to event logger.
syslog object
SyslogSettings are the syslog settings
Addr is the remote address for sending events.
AllProcEvents indicates whether any new spawned container process should generate an event source entry.
Cert is the server cert for dialing TLS syslogger.
Enabled indicates whether log feature is enabled.
ID represents the user's custom identifier string.
VerboseScan indicates whether detailed scan (Compliance/Vulnerability) result should be written to event logger.
Responses
- 200
- default
OK