An example which shows how to integrate Camel with Splunk.
This example requires that an Splunk Server is up and running. (For this example, sample data provide by Splunk was used. Steps for loading this data into Splunk are documented here)
This project consists of the following examples:
-
Random search query on Splunk
-
Saved search query on Splunk
-
Publish an event to Splunk
To run the random search client you type:
$ mvn exec:java -Psearch-client
… and response data will be printed on the console.
To run the saved search client you type:
$ mvn exec:java -Psaved-search-client
… and response data will be printed on the console.
To run the saved search client you type:
$ mvn exec:java -Ppublish-event-client
… and logs will be printed on the console.
You can configure the details of the Splunk server in the file:
src/main/resources/application.properties
You can enable verbose logging by adjusting the
src/main/resources/log4j.properties
file as documented in the file.
If you hit any problem using Camel or have some feedback, then please let us know.
We also love contributors, so get involved :-)
The Camel riders!