Chapter 74. Splunk Source
Retrieve data from Splunk and outputs in json format.
For the fields accepting time specifiers like earliestTime, Splunk accepts a wide variety of formats, please check Splunk documentation for more information.
74.1. Configuration Options Copy linkLink copied to clipboard!
The following table summarizes the configuration options available for the splunk-source Kamelet:
| Property | Name | Description | Type | Default | Example |
|---|---|---|---|---|---|
| initEarliestTime * | Init Earliest Time | Initial start offset of the first search. | string | 05/17/22 08:35:46:456 | |
| password * | Password | The password to authenticate to Splunk Server. | string | ||
| query * | Query | The Splunk query to run. | 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 | ||
| count | Count | The maximum number of entities to return. | integer | ||
| delay | Delay | The number of milliseconds before the next poll. | integer | ||
| earliestTime | Earliest Time | Earliest time of the search time window. | string | 05/17/22 08:35:46:456 | |
| index | Index | Splunk index to write to. | string | ||
| latestTime | Latest Time | Latest time of the search time window. | string | 05/17/22 08:35:46:456 | |
| protocol | Protocol | Connection Protocol to Splunk server. | string | https | |
| repeat | Repeat | The maximum number of fires. | integer | ||
| 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.
74.2. Dependencies Copy linkLink copied to clipboard!
74.2.1. Quarkus dependencies Copy linkLink copied to clipboard!
74.3. Usage Copy linkLink copied to clipboard!
74.3.1. Camel JBang usage Copy linkLink copied to clipboard!
74.3.1.1. Prerequisites for Jbang Copy linkLink copied to clipboard!
- You must have installed JBang.
- You must have executed the following command.
jbang app install camel@apache/camel
jbang app install camel@apache/camel
For example, you have a file named route.yaml with this content.
You can now run it directly through the following command
camel run route.yaml
camel run route.yaml
74.3.2. Knative Source Copy linkLink copied to clipboard!
You must use the splunk-source Kamelet as a Knative source by binding it to a Knative object.
splunk-source-binding.yaml
74.3.3. Kafka Source Copy linkLink copied to clipboard!
You must use the splunk-source Kamelet as a Kafka source by binding it to a Kafka topic.
splunk-source-binding.yaml