---
title: "PUT /logging"
method: PUT
path: "/logging"
---

# PUT /logging

`PUT /logging`

Sets or updates the IoT Analytics logging options.

If you update the value of any `loggingOptions` field, it takes up to one minute for the change to take effect. Also, if you change the policy attached to the role you specified in the `roleArn` field (for example, to correct an invalid policy), it takes up to five minutes for that change to take effect.

## Request body

- object
  - `loggingOptions` object, required — Information about logging options.
    - `roleArn` string — The ARN of the role that grants permission to IoT Analytics to perform logging.
    - `level` 'ERROR' — The logging level. Currently, only ERROR is supported.
    - `enabled` boolean — If true, logging is enabled for IoT Analytics.

## Response `200`

Success

## Other responses

- `480` — InvalidRequestException
- `481` — InternalFailureException
- `482` — ServiceUnavailableException
- `483` — ThrottlingException

---

[API](https://skmtc.net/aws/apis/iotanalytics.md) · [All operations](https://skmtc.net/aws/apis/iotanalytics/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/iotanalytics/versions/e78558b7408d/schema)
