splunk sink Splunk Sink

Provided by: "Apache Software Foundation"

Support Level for this Kamelet is: "Stable"

Send data to Splunk either by using "submit" or "stream" mode.

The payload MUST be in json format.

Configuration Options

The following table summarizes the configuration options available for the splunk-sink Kamelet:

Property Name Description Type Default Example

password

Password

Required The password to authenticate to Splunk Server.

string

serverHostname

Splunk Server Address

Required The address of your Splunk server.

string

my_server_splunk.com

username

Username

Required The username to authenticate to Splunk Server.

string

app

Splunk App

The app name in Splunk.

string

connectionTimeout

Connection Timeout

Timeout in milliseconds when connecting to Splunk server.

integer

5000

index

Index

Splunk index to write to.

string

mode

Mode

The mode to publish events to Splunk.

Enum values:

* submit * stream

string

stream

protocol

Protocol

Connection Protocol to Splunk server.

Enum values:

* http * https

string

https

serverPort

Splunk Server Port

The address of your Splunk server.

integer

8089

source

Source

The source named field of the data.

string

sourceType

Source Type

The source named field of the data.

string

Dependencies

At runtime, the splunk-sink Kamelet relies upon the presence of the following dependencies:

  • camel:core

  • camel:splunk

  • camel:kamelet

Camel JBang usage

Prerequisites

  • You’ve installed JBang.

  • You have executed the following command:

jbang app install camel@apache/camel

Supposing you have a file named route.yaml with this content:

- route:
    from:
      uri: "kamelet:timer-source"
      parameters:
        period: 10000
        message: 'test'
      steps:
        - to:
            uri: "kamelet:splunk-sink"

You can now run it directly through the following command

camel run route.yaml