Monitor Amazon IoT Wireless using CloudWatch Logs - Amazon IoT Core
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Monitor Amazon IoT Wireless using CloudWatch Logs

Amazon IoT Wireless has more than 50 CloudWatch log entries that are enabled by default. Each log entry describes the event type, log level, and the resource type. For more information, see Amazon IoT Wireless resources and log levels.

How to monitor your Amazon IoT Wireless resources

When logging is enabled for Amazon IoT Wireless, Amazon IoT Wireless sends progress events about each message as it passes from your devices through Amazon IoT and back. By default, Amazon IoT Wireless log entries have a default log level of error. When you enable logging as described in Create logging role and policy for Amazon IoT Wireless, you'll see messages in the CloudWatch console that have a default log level of ERROR. By using this log level, the messages will show only error information for all wireless devices and gateway resources that you're using.

If you want the logs to show additional information, such as those that have a log level of INFO, or disable logs for some of your devices and show log messages for only some of your devices, you can use the Amazon IoT Wireless logging API. For more information, see Configure log levels of resources using the CLI.

You can also create filter expressions to display only the required messages.

Before you can view Amazon IoT Wireless logs in the console

To make the /aws/iotwireless log group appear in the CloudWatch console, you must have done the following.

  • Enabled logging in Amazon IoT Wireless. For more information about how to enable logging in Amazon IoT Wireless, see Configure Logging for Amazon IoT Wireless.

  • Written some log entries by performing Amazon IoT Wireless operations.

To create and use filter expressions more effectively, we recommend that you try using CloudWatch insights as described in the following topics. We also recommend that you follow the topics in the order they're presented here. This will help you use CloudWatch Log groups first to learn about the different types of resources, its event types, and log levels that you can use to view log entries in the console. You can then learn how to create filter expressions by using CloudWatch Insights to get more helpful information from your resources.