- git clone https://github.com/leejianwei/spring-integration-splunk-demo.git
- change to "spring-integration-splunk-demo" dir
- ./gradlew eclipse
./gradlew build
You need to install or have access to a Splunk Server. You can download Splunk from:
http://www.splunk.com/download
You can get more information on Splunk from:
- got to https://dev.twitter.com
- click "create an app"
- fill all the data to generate twitter app
- update "src/main/resources/twitter.properties" to your twitter application
- update Splunk server info in the "src/main/resources/org/springframework/integration/splunk/example/SplunkCommon-context.xml"
- run the main class:
src/main/java/org/springframework/integration/splunk/example/outbound/twitter/TwitterMain.java
src/main/resources/org/springframework/integration/splunk/example/outbound/twitter/SpringSplunkShowcaseTwitter-context.xml
change the "fromUsers" properties to the user name of your followers whose tweet will be pushed to Splunk
<bean id="fromUserSelector"
class="org.springframework.integration.splunk.example.outbound.twitter.FromUserSelector">
<property name="fromUsers">
<list>
<value>AP</value>
<value>nytimes</value>
</list>
</property>
</bean>
src/main/java/org/springframework/integration/splunk/example/outbound/jdbc/DatabaseMain.java
Read data from Splunk: Read data from Splunk with inbound channel adapter, persist the data into Database.
src/main/java/org/springframework/integration/splunk/example/inbound/SplunkMain.java