Maintained with ☕️ by
IcePanel logo

AWS IoT Core adds new logs to troubleshoot connectivity and authentication

Share

Services

[AWS IoT Core](https://aws.amazon.com/iot-core/) now provides two new [Amazon CloudWatch Log event types](https://docs.aws.amazon.com/iot/latest/developerguide/cwl-format.html) that help you troubleshoot device connectivity issues and authentication errors across your Internet of Things (IoT) fleet. The new [Ping log](https://docs.aws.amazon.com/iot/latest/developerguide/cwl-format.html#log-mb-ping) event type is emitted when devices send MQTT Keep-alive messages, and it enables you to identify connections or devices that were unable to keep the connection alive. The new [Connection.AuthNError log](https://docs.aws.amazon.com/iot/latest/developerguide/cwl-format.html#log-mb-authn-error) event type records rejected connection attempts due to authentication failure, along with detailed error codes that tell you what went wrong, so you can resolve credential and certificate issues faster. To get started, [configure event-level logging](https://docs.aws.amazon.com/iot/latest/developerguide/configure-logging.html) in your AWS IoT Core settings with your desired log level and Amazon CloudWatch log group destination, then opt into these new event types. The two new event types are available in all AWS Regions where AWS IoT Core is available. To learn more, see[ AWS IoT log entries](https://docs.aws.amazon.com/iot/latest/developerguide/cwl-format.html) in the AWS IoT Core developer guide.