Azure Stream Analytics on Edge logging Metrics

Ryan Maggott 1 Reputation point
2020-07-20T12:58:01.04+00:00

Hello,

I'm trying to track the output metrics from the azure stream analytics on edge module using the monitoring tools built into the Azure portal. The guides I've found online have this working for the stream analytics in the cloud.

Is there any way I can log or forward these metrics to the Azure Portal from the edge device when they're reported to the logs?

I'm most interested in the OutputEvents and Errors metrics as they'll allow me to monitor the module from my portal dashboard and not the module logs.

Any help with this would be much appreciated.

Regards,
Ryan.

Azure IoT Edge
Azure IoT Edge
An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
557 questions
Azure Stream Analytics
Azure Stream Analytics
An Azure real-time analytics service designed for mission-critical workloads.
341 questions
{count} votes

1 answer

Sort by: Most helpful
  1. QuantumCache 20,186 Reputation points
    2020-07-27T15:43:55.497+00:00

    Hello @RyanMaggott-0632 , Could you please confirm if you are able to see any errors/logs of the IoTEdge module on the device? Mostly the logs can be accessed from Docker container logs.

     sudo iotedge logs <module name> -f
    

    Please refer to the below details to get started, You can for sure make use of pulling the logs from Azure Blob storage.

    Experimental methods

    • New direct method options are available as experimental features to test, including:

    UploadLogs: Retrieve module logs and upload them to Azure Blob Storage.
    GetTaskStatus: Check on the status of an upload logs request.
    GetLogs: Retrieve module logs inline in the response of the direct method.

    Built-in logs collation and upload capability
    IoT Edge supports native retrieval of module logs and upload to Azure Blob Storage. Users can access this functionality via direct method calls to the Edge Agent module. The following methods are available in support of this:

    UploadLogs
    GetTaskStatus

    Let us know if you need further help in this matter.

    2 people found this answer helpful.
    0 comments No comments