Skip to content

Download Logs from IEM

IEDs are scheduled to send logs to IEM at given internal. This document highlights how to download logs of Industrial Edge Devices, the following HTTP request you may need related api documentation:

  1. a POST request with your username and password and receive a lightweight token that will enable you as a user to authenticate future requests.
  2. a GET request to receive a list of all logs of a specific IED.
  3. a GET request to download the log file including all logs of a specific IED.

Get authentication token for IEM API

See Authentication guide.

List logs of an Edge Device

Use the following request to list all logs of a specific Edge Device that is uniquely identified by its ID:

curl -i -X GET \
-H "Authorization:<your-authorization-token>" \
'https://<your-iem-url>/portal/api/v1/devices/<device-id>/logs/'

A successful response looks like this for example:

{
    "data": {
        "logs": [
            {
                "logId": "9a8d666ce16643da86270a180936aece",
                "timeStamp": 1630411919060
            }
        ]
    }
}

Download logs of an Edge Device

Download the log file including all logs of an Edge Device in a .tar file format. For this, you require the Device ID as unique identifier of the Edge Device and the log ID as unique identifier of the Edge Device's logs:

curl -i -X GET \
-H "Authorization:<your-authorization-token>" \
'https://<your-iem-url>/portal/api/v1/devices/<device-id>/logs/<log-id>'

A successful response looks like this:

{
"data": "https://165.218.200.31:9443/pp/PortalCache/assets/links/1bf82288fd48459d807a46f5a3397015/djlogtest.20210831121158_Logs.tar.gz"
}