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
Examples
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
--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.