G DATA Business Solutions: SIEM Plugin Configuration Splunk

Splunk is a paid logging, monitoring and reporting tool for monitoring internal connections.

With the help of this guide, you can pass on security events from G DATA Management Server to your Splunk server (output) via the Telegraf service.

Plugin Configuration

Enter data and create a token for HTTP Event Collector. The token is needed to send data. https://docs.splunk.com/Documentation/Splunk/8.0.1/Data/UsetheHTTPEventCollector


Open Splunk Web.


In Splunk Web, click Settings and then Data Inputs.


For Local Inputs, click HTTP Event Collector.


Make sure that HTTP Event Collector is enabled.

Global Settings


Open the Global Settings.


Set All Tokens to Enabled.


Click Save.


Create an HTTP Event Collector token for sending files. To do this, click New Token.


On the Select Source page, enter a token name in the Name field, for example, "Metrics token".
All other fields remain empty.


Click Next.


On the Input Settings page for Source Type, click New.


For Source Type, enter the name of your source type.


For Source Type Category, select the Metrics option.


Optional: enter a description of your source type under Source Type Description.


Select the option Metrics Index for Default Index or create a new index.

If you want to create a new index, follow the five steps below.

  1. Select Create an Index, a new dialog window will open.

  2. Define a name for the index.

  3. For Index Data Type, select Metrics.

  4. Set other properties for the index, which you need.

  5. Click Save.


Click Review and then click Submit.


Copy the displayed token.

Telegraf Configuration (Output)

This plugin sends metrics in an HTTP message encoded with one of the output data formats.


Open the Telegraf configuration file with an editor:

C:\Program Files (x86)\G Data\G DATA AntiVirus ManagementServer\Telegraf/telegraf.config with an editor.


Adjust the following value:


## URL to connect to

## ex: address = "tcp://"

## ex: address = "tcp4://"

## ex: address = "tcp6://"

## ex: address = "tcp6://[2001:db8::1]:8094"

## ex: address = "udp://"

## ex: address = "udp4://"

## ex: address = "udp6://"

address = "udp://"

The line address = "udp://" must be provided with hashtags: ## address = "udp://".


Add the following lines in the Telegraf configuration file after the last line in the OUTPUT PLUGINS section:

C:\Program Files (x86)\G Data\G DATA AntiVirus ManagementServer\Telegraf/telegraf.config

Output Plugin Configuration

# A plugin that can transmit metrics over HTTP
  ## URL is the address to send metrics to
  url = ""

  ## Timeout for HTTP message
  # timeout = "5s"

  ## HTTP method, one of: "POST" or "PUT"
  # method = "POST"

  ## HTTP Basic Auth credentials
  # username = "username"
  # password = "pa$$word"

  ## OAuth2 Client Credentials Grant
  # client_id = "clientid"
  # client_secret = "secret"
  # token_url = "https://indentityprovider/oauth2/v1/token"
  # scopes = ["urn:opc:idm:__myscopes__"]

  ## Optional TLS Config
  # tls_ca = "/etc/telegraf/ca.pem"
  # tls_cert = "/etc/telegraf/cert.pem"
  # tls_key = "/etc/telegraf/key.pem"
  ## Use TLS but skip chain & host verification
  # insecure_skip_verify = false

  ## Data format to output.
  ## Each data format has it's own unique set of configuration options, read
  ## more about them here:
  ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
  # data_format = "influx"

  ## HTTP Content-Encoding for write request body, can be set to "gzip" to
  ## compress body or "identity" to apply no encoding.
  # content_encoding = "identity"

  ## Additional HTTP headers
  # [outputs.http.headers]
  #   # Should be set manually to "application/json" for json data_format
  #   Content-Type = "text/plain; charset=utf-8"


Change line 4 from url = "" to "https://hostname:port/services/collector"

url = "https://hostname:port/services/collector"


If you are working with self-signed certificates, change line 27 from insecure_skip_verify = "false" to "true".

Remove the comment out.

insecure_skip_verify = true


Change the data output format in line 33 from data_format = "influx" to splunkjson.

Remove the comment out.

data_format = "splunkjson"


On line 40, remove the comment.

On line 42, change the Content-Type from text/plain; charset=utf-8 to application/json; charset=utf-8.

Also at line 42, remove the comment out.

  #   # Should be set manually to "application/json" for json data_format
  Content-Type = "application/json; charset=utf-8"


Add the following lines after the Content-Type paragraph to receive requests from Splunk.

Authorization = "Splunk xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
X-Splunk-Request-Channel = "yyyyy-yyyy-yyyy-yyyyy"


On line 44, for Authorization, enter your created Splunk Web HTTP Event Collector token.

Authorization = "Splunk b0221cd8-c4b4-465a-9a3c-273e3a75aa29"


Enter any GUID in line 45 for X-Splunk-Request-Channel. This is needed to identify requests.

For example, you can create a GUID at this generator

X-Splunk-Request-Channel = "5ce64080-dccc-4741-8f32-09cd7ee3191a"


Create a new telegraf service using the customized "telegraf.conf".

Related articles