Monitoring your wireless resource fleet in real time using network analyzer
Network analyzer uses a default WebSocket connection to receive real-time trace message logs for your wireless connectivity resources. By using network analyzer, you can add the resources you want to monitor, activate a trace messaging session, and start receiving trace messages in real time.
Note
To monitor your resources, you can also use Amazon CloudWatch. To use CloudWatch, you set up an IAM role to configure logging and then wait for the log entries to be displayed in the console. For more information, see Monitoring and logging for Amazon IoT Wireless using Amazon CloudWatch.
Network analyzer significantly reduces the time that it takes to set up a connection and start receiving trace messages, providing you with just-in-time log information for your fleet of resources. By reducing your setup time and using the information from the trace messages, you can monitor your resources more effectively, get meaningful insights, and troubleshoot errors. The wireless resources that you can monitor include LoRaWAN devices, LoRaWAN gateways, and multicast groups. For example, you can quickly identify a join error when onboarding one of your LoRaWAN devices. To debug the error, use the information in the provided trace message log.
The wireless resources that you can monitor include LoRaWAN devices, LoRaWAN gateways, and multicast groups. You can also use network analyzer to debug and troubleshoot any issues with your FUOTA task. For example, consider a FUOTA task that has a multicast group, multicast group A, and you have devices device A and device B added to that group. You can then add both the multicast group, multicast group A, and devices device A and device B, to your network analyzer configuration for monitoring them and debugging your FUOTA task.
How to use network analyzer
To monitor your resource fleet and start receiving trace messages, perform the following steps.
-
Create network analyzer configuration and add resources
Before you can activate trace messaging, create a network analyzer configuration and add resources to your configuration. First, specify the configuration settings, which include log levels, and wireless device and multicast frame information. Then, add the wireless resources you want to monitor by using the wireless gateway, wireless device, and multicast group identifiers.
-
Stream trace messages with WebSockets
You can generate a presigned request URL using the credentials for your IAM role to stream network analyzer trace messages by using the WebSocket protocol.
-
Activate trace messaging session and monitor trace messages
To start receiving trace messages, activate your trace messaging session. To avoid incurring additional costs, you can either deactivate or close your network analyzer trace messaging session.
The following shows how to create your configuration, add resources, and activate your trace messaging session.
Topics
- Add necessary IAM role for network analyzer
- Create a network analyzer configuration and add resources
- Stream network analyzer trace messages with WebSockets
- View and monitor network analyzer trace message logs in real time
- Debug and troubleshoot your multicast groups and FUOTA tasks using network analyzer