Configure Logging for AWS IoT Wireless - AWS IoT Wireless

Configure Logging for AWS IoT Wireless

Before you can monitor and log AWS IoT Wireless activity, first enable logging for AWS IoT Wireless resources by using either the CLI or API.

When starting to monitor AWS IoT Wireless resources, you can use the default configuration. To do this, you can skip this topic and proceed to Monitor AWS IoT Wireless using CloudWatch Logs to monitor your logs. After reviewing the initial logs, you can change the default log level to ERROR, which is less verbose. You can then set a more verbose, resource-specific log level on resources that might need more attention. Log levels can be changed whenever you want.

AWS IoT Wireless resources and log levels

Before you configure logging, use the following table to learn about the different log levels and the resources that you can configure logging for. The table shows parameters that you see in the CloudWatch logs when you monitor the resources. How you configure the logging for your resources will determine the logs you see in the console.

For information about what a sample CloudWatch logs looks like and how you can use these parameters to log useful information about the AWS IoT Wireless resources, see View CloudWatch AWS IoT Wireless log entries.

Log levels and resources
Name Possible values Description
logLevel

INFO, ERROR, or DISABLED

  • ERROR: Displays any error that causes an operation to fail. Logs include only ERROR information.

  • INFO: Provides high-level information about the flow of things. Logs include INFO and ERROR information.

  • DISABLED: Disables all logging.

resource

WirelessGateway or WirelessDevice

The type of resource, which can be WirelessGateway or WirelessDevice.

wirelessGatewayType LoRaWAN The type of wireless gateway, when resource is WirelessGateway, which is always LoRaWAN.
wirelessDeviceType LoRaWAN or Sidewalk The type of the wireless device, when resource is WirelessDevice, which can be LoRaWAN or Sidewalk.
wirelessGatewayId - The identifier of the wireless gateway, when resource is WirelessGateway.
wirelessDeviceId - The identifier of the wireless device, when resource is WirelessDevice.
event Join, Rejoin, Registration, Uplink_data, Downlink_data, CUPS_Request, and Certificate The type of event being logged, which depends on whether the resource that you're logging is a wireless device or a wireless gateway. For more information, see View CloudWatch AWS IoT Wireless log entries.

The following topics show how to configure logging for AWS IoT Wireless resources.