Robotron Datenbank-Software GmbH Firmenlogo
MIT DATEN MEHR BEWEGEN.
🇩🇪 🇬🇧

Splunk

The Splunk module enables transferring data to a Splunk server.

The Splunk module receives messages from a message broker and writes them to a buffer. The resulting queue is emptied cyclically and the content is sent via HTTP POST event to the Splunk Event Collector.[1]

The timestamp of the data message payload is used as the Splunk timestamp. Alternatively, the timestamp of the data message payload is replaced by the Splunk indexing time. The contents of the source metadata are written to the Splunk field "Source". The scope metadata is transmitted to the additionally created Splunk field "Scope".

Configuration Parameters

The following parameters are required for using the Splunk module.

Connection

Table 1. Connection Configuration - Splunk Module
ParameterDescription

URL

URL of the HTTP Event Collector (default port: 8088)

Proxy

Specification of an HTTP proxy for the connection between RoboGate Edge and Splunk; optional.

Access Token

Created in the Splunk system being used. This is required for input in the HTTP Event Collector instance (creation see below).

Host

The hostname, IP address, or fully qualified domain name of the network host from which the event originates can be used as the event host. The host can be used to specifically search and evaluate data in Splunk that originates from a particular source.

Creating the Access Token in Splunk:

  1. Log in to Splunk and open "Settings"

  2. Select "Data Inputs"

  3. Select "HTTP Event Collection"

  4. Click the "New Token" button in the upper right corner

    1. Edit the "Select Source" tab and click "Next"

    2. Edit the Input Settings tab and click "Next"

    3. Edit the Review tab and click "Next"

    4. Edit the Done tab

The token is available for input in the RoboGate Edge UI after creation.

Settings

Table 2. Splunk Module Configuration - Settings
ParameterDescription

Send Timestamp

When the switch is turned off (sendTimestamp = false), the timestamp information from the messages is discarded before sending to Splunk. Splunk sets an event time that corresponds to the time the message arrives at the Splunk server.

Source Type

Source Type is one of the standard fields that Splunk assigns to all incoming data. It specifies the data structure of an event (_json).

Enable persistent Queue

Queue persistence is enabled. In the event of connection problems, untransmitted messages are cyclically persisted and are therefore not lost in the event of an intermediate restart of the application/device.

Messages / Topics

One of the following two modes must be selected for message transmission.

Table 3. Splunk Module Configuration - Messages
ParameterDescription

Telemetry Messages

Messages are transmitted to the Splunk server without transformation, according to the schema:
{<VariableNameA>: <VariableValueA>, <VariableNameB>: <VariableValueB>, … }

Event Messages

Incoming messages are converted into individual event messages. The following schema applies:
{ "name": <VariableNameA>, "value": <VariableValueA> } AND
{ "name": <VariableNameB>, "value": <VariableValueB> }

(based on the above example of Telemetry Messages)

Configuration in the UI

The Splunk module can be accessed and configured by selecting the module on the start page or via the left menu bar of the RoboGate Edge UI.

Configure Connection

The module must be configured according to your requirements. The parameters are described in more detail above. After entering the URL, optionally the proxy, the access token, and the host, topics can be added.

After completing the configuration, it is saved using the save button save in the upper right corner. By saving the configuration, it becomes available in RoboGate Edge (Figure 1).

splunk config
Figure 1. Splunk Configuration

Configure Messages

Under Telemetry Messages and Event Messages, output topics of other RoboGate Edge modules can be added by clicking "+". These contain the data to be evaluated in Splunk. By saving save the entire configuration of the Splunk module, the data of the selected topics is sent to Splunk and is available for evaluation in Splunk.

Figure 2 shows the evaluation for Telemetry Messages using the example topic "ModbusRTUPollGroup1" and Figure 3 the evaluation for Event Messages using the example topic "OPCUAPOLL1".

splunk telemetry
Figure 2. Splunk Evaluation Message Type: Telemetry
splunk event
Figure 3. Splunk Evaluation Message Type: Event

In the "Module State" section (Figure 4), you can see whether the module was able to establish a connection to Splunk.

splunk module state
Figure 4. Splunk Module - Status

Delete Topic

Topics can be deleted within the Splunk module configuration. To do so, the topic to be deleted must be removed by clicking "x". By saving the configuration change, it becomes available in RoboGate Edge (Figure 5).

splunk delete
Figure 5. Deleting a Topic

Reset Configuration

The complete configuration of the module can be reset to factory settings using the button reset in the horizontal menu bar. After clicking the button, a confirmation dialog with "Yes" and "No" appears, asking whether the operation should actually be performed.

This will also delete the entire history on the RoboGate Edge!


1. Information on setting up the HTTP Event Collector can be found in the Splunk Inc. documentation. https://docs.splunk.com/Documentation/Splunk/latest/Data/UsetheHTTPEventCollector