Spring Integration with Splunk
I have a question on Spring Integration for fetching data from splunk.
I configured splunkInboundChannelAdapter with Non-Blocking to pull data from splunk. I added a query to the "lookup" attribute in the int-splunk: inbound adapter-channel definition.
I would like to get results from splunk to java class. Could you please tell us what methods are available in Spring integration to achieve this goal. Thanks in advance.
source to share
Sorry, it is not clear what you are asking.
SplunkPollingChannelAdapter
fills in List<SplunkEvent>
as message payload
in channel
. You can subscribe to <service-activator>
with a POJO method reference and therefore accept that List<SplunkEvent>
as a method argument in Java code.
From there, you can do any logic you want. Since your POJO is Spring bean, you can inject any services / DAOs to do whatever with the data you want.
source to share