CmdID

CmdID / aws / aws iot

aws iot set-v2-logging-options

Sets the logging options for the V2 logging service. AWS CLI reference

1 example 4 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To set the logging options

The following set-v2-logging-options example sets the default logging verbosity level to ERROR and specifies the ARN to use for logging.

aws iot set-v2-logging-options --default-log-level ERROR --role-arn "arn:aws:iam::123456789012:role/service-role/iotLoggingRole"Identify
--default-log-levelThe default logging level.
--role-arnThe ARN of the role that allows IoT to write to Cloudwatch logs.

This command produces no output.

For more information, see Configure AWS IoT logging in the AWS IoT Core Developer Guide.

Options

4 in the AWS CLI reference
--default-log-levelThe default logging level.
--disable-all-logsIf true all logs are disabled.
--event-configurationsThe list of event configurations that override account-level logging.
--role-arnThe ARN of the role that allows IoT to write to Cloudwatch logs.