Skip to main content

Add Logging Settings

POST 

/api/v32.07/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

Body

    consoleAddress string

    ConsoleAddress is the console address used by the admin to access the console, used for creating links for runtime events.

    enableMetricsCollection boolean

    EnableMetricsCollection indicates whether metric collections feature is enabled.

    includeRuntimeLink boolean

    IncludeRuntimeLink indicates whether link to forensic event should be included in the output.

    stdout object

    LoggerSetting are a specific logger settings

    allProcEvents boolean

    AllProcEvents indicates whether any new spawned container process should generate an event source entry.

    enabled boolean

    Enabled indicates whether log feature is enabled.

    verboseScan boolean

    VerboseScan indicates whether detailed scan (Compliance/Vulnerability) result should be written to event logger.

    syslog object

    SyslogSettings are the syslog settings

    addr string

    Addr is the remote address for sending events.

    allProcEvents boolean

    AllProcEvents indicates whether any new spawned container process should generate an event source entry.

    cert string

    Cert is the server cert for dialing TLS syslogger.

    enabled boolean

    Enabled indicates whether log feature is enabled.

    id string

    ID represents the user's custom identifier string.

    verboseScan boolean

    VerboseScan indicates whether detailed scan (Compliance/Vulnerability) result should be written to event logger.

Responses

OK

Loading...