Monitor AWS IoT Core for LoRaWAN using CloudWatch Logs - AWS IoT Core

Monitor AWS IoT Core for LoRaWAN using CloudWatch Logs

AWS IoT Core for LoRaWANhas 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 AWS IoT Core for LoRaWAN resources and log levels.

How to monitor your AWS IoT Core for LoRaWAN resources

When logging is enabled for AWS IoT Core for LoRaWAN, AWS IoT Core for LoRaWAN sends progress events about each message as it passes from your devices through AWS IoT and back. By default, AWS IoT Core for LoRaWAN log entries have a default log level of error. When you enable logging as described in Create logging role and policy for AWS IoT Core for LoRaWAN, 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 AWS IoT Core for LoRaWAN 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 AWS IoT Core for LoRaWAN 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 AWS IoT Core for LoRaWAN. For more information about how to enable logging in AWS IoT Core for LoRaWAN, see Configure Logging for AWS IoT Core for LoRaWAN.

  • Written some log entries by performing AWS IoT Core for LoRaWAN 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.