Skip to content

Streaming logs

You can configure device metrics and log data on the Edge Management device settings page or directly access the specific device UI for stream based logging. The configuration changes will be automatically synchronized between your Industrial Edge Management and the Edge Device.

NOTICE

It can take up to 30 seconds to sync the configuration updates.

Disable streaming logs

The streaming logs is enabled by default. To disabled it click the service toggler(①).

Configurations

When streaming logs is enabled but without any configuration or prometheus exporter created, area ① turns red.

To collect device's metrics and log data, you can create a configuration to specify what data to collect and where they are forwarded to.

Create your first configuration

Click Add configuration to navigate to the new configuration page.

Add configuration

Select a destination to receive the collected data. Once a destination is selected, a form will appear on the right.

Select a data destination

Fill in the configuration title and description. Select the metrics that specify the type of data to be collected. For more details about metrics, please refer to the metrics data.

Fill up form

Click Add configuration will navigate you to the device settings page, and a newly created configuration is shown. And area ① turns to normal.

configuration created

Destinations

Destination is an endpoint to receive collected metrics and logs data from devices. It could be a postgres server, an influx database or a cloud monitoring service like datadog and so on.

iem-https is a default destination, which means the collected device's metrics & log data would be sent to Edge Management. And user can retrieve those data through download device data. Alternatively, user can define their own destination.

Destination list view

Define your own destination

Click Add destination. A destination form is shown as below. There are serval types of destination available. Here we take HTTP as an example.

destination form step 1

By selecting HTTP, a more detailed destination form will be displayed. Fill out the required fields, and the Add destination button will become enabled.

destination form step 2

Click the Add destination button at the bottom. The newly created destination will appear in the list and be automatically selected.

destination created

To edit the destination, just click the edit icon button at area ①. It is similar with adding a destination, just with value pre-filled.

To remove a destination, just click the trash can button at area ②.

Prometheus exporter

By configuring Prometheus exporter, you can publish the collected data from devices to specific endpoint https://<device-ip>/metrics. If you use Prometheus, you are able to actively pull data from the endpoint.

Since Prometheus servers require credentials to access https://<device-ip>/metrics, you must configure a username and password to enable the Prometheus exporter.

NOTICE

Currently, only basic authentication mechanism is supported.

Configure prometheus exporter

Click Add prometheus exporter will navigate to prometheus exporter configuration page.

main ui - prometheus exporter

Fill in the username and password fields, then click Add prometheus exporter. The settings page will display information about the configured Prometheus exporter once it is set up.

prometheus exporter configuration

prometheus added

Advanced settings

prometheus added

Parameter Description
Flush
  • Set the flush time in seconds. The engine loop uses a flush timeout to define when the source data needs to be flushed through the defined destinations.
  • Range: 1 ... 86400 sec.
Polling interval
  • Specify the period of time in seconds for regular data collection
  • Range: 1 ... 86400 sec.

Limitation

  1. To support device's streaming logs settings on Industrial Edge Management, the device version should be higher than version 1.22.0-7. A notification will show up if the device does not support and all streaming logs related settings will be disabled on Industrial Edge Management. device not support
  2. Due to data transmission limitations, streaming logs settings (including user configurations, TLS certificates, etc.) should be below 30KB.