Chapter 73. Splunk Sink


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

The payload MUST be in json format.

73.1. Configuration Options

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

Expand
PropertyNameDescriptionTypeDefaultExample

password *

Password

The password to authenticate to Splunk Server.

string

  

serverHostname *

Splunk Server Address

The address of your Splunk server.

string

 

my_server_splunk.com

username *

Username

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.

string

stream

 

protocol

Protocol

Connection Protocol to Splunk server.

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

  

* = Fields marked with an asterisk are mandatory.

73.2. Dependencies

73.2.1. Quarkus dependencies

<dependencies>
  <dependency>
    <groupId>org.apache.camel.quarkus</groupId>
    <artifact>camel-quarkus-core</artifact>
  </dependency>
  <dependency>
    <groupId>org.apache.camel.quarkus</groupId>
    <artifact>camel-quarkus-kamelet</artifact>
  </dependency>
  <dependency>
    <groupId>org.apache.camel.quarkus</groupId>
    <artifact>camel-quarkus-splunk</artifact>
  </dependency>
  <dependency>
    <groupId>org.apache.camel.kamelets</groupId>
    <artifact>camel-kamelets-utils</artifact>
    <version>4.8.5</version>
  </dependency>
</dependencies>
Copy to Clipboard Toggle word wrap

73.3. Usage

73.3.1. Camel JBang usage

73.3.1.1. Prerequisites for Jbang

  • Install JBang.
  • Install camel as a JBang command by running:

    jbang app install camel@apache/camel
    Copy to Clipboard Toggle word wrap

For example, 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:log-sink"
Copy to Clipboard Toggle word wrap

You can run it directly through the following command.

camel run route.yaml
Copy to Clipboard Toggle word wrap

73.3.2. Kafka Sink

You can use the splunk-sink Kamelet as a Kafka sink by binding it to a Kafka topic.

splunk-sink-binding.yaml

apiVersion: camel.apache.org/v1
kind: Pipe
metadata:
  name: splunk-sink-binding
spec:
  source:
    ref:
      kind: KafkaTopic
      apiVersion: kafka.strimzi.io/v1beta1
      name: my-topic
  sink:
    ref:
      kind: Kamelet
      apiVersion: camel.apache.org/v1
      name: splunk-sink
    properties:
      password: The Password
      serverHostname: my_server_splunk.com
      username: The Username
Copy to Clipboard Toggle word wrap

73.3.3. Prerequisites for Kafka

  • Install Strimzi.
  • You must create a topic named my-topic in the current namespace.
  1. Save the splunk-sink-binding.yaml file to your local drive, and then edit it as needed for your configuration.
  2. Run the sink with the following command:

    kubectl apply -f splunk-sink-binding.yaml
    Copy to Clipboard Toggle word wrap

Configure and run the sink with the following command.

kamel bind splunk-sink -p "sink.password=The Password" -p "sink.serverHostname=my_server_splunk.com" -p "sink.username=The Username" kafka.strimzi.io/v1beta1:KafkaTopic:my-topic
Copy to Clipboard Toggle word wrap

This command creates the Pipe in the current namespace on the cluster.

73.4. Kamelets source file

https://github.com/jboss-fuse/camel-kamelets/blob/camel-kamelets-4.10.3-branch/kamelets/splunk-sink.kamelet.yaml

Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2026 Red Hat
Back to top