Agent Logs Configuration

The Serverless Workload Agent allows you to configure log levels globally as well as granularly for specific components.

Set Global Log Level

The environment variable SYSDIG_LOGGING sets the global log level.

It defaults to info.

Available options are: silent | fatal | critical | error | warning | info | debug | trace.

Set Log Level per Component

You can also gain fine-grained control over the log level of specific components, as described in Manage Agent Log Levels, using the SYSDIG_EXTRA_CONF environment variable.

The following example shows how to configure the global log level to info and set the log level of the security_mgr component to warning.

SYSDIG_EXTRA_CONF="log: {  console_priority: info,  console_priority_by_component:   [ 'security_mgr: warning' ] }"

Note that newlines and spaces are important when passing this configuration as YAML to the Workload Agent.