THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
When publishing events the message body should contain a SplunkEvent
. See comment under message bodySee later.
Example
Code Block | ||
---|---|---|
| ||
from("direct:start") .convertBodyTo(SplunkEvent.class) .to("splunk://submit?username=user&password=123&index=myindex&sourceType=someSourceType&source=mySource")...; |
In this example a converter is required to convert to a SplunkEvent
class.
...
From Camel 2.16.0 you can send raw data to Splunk by setting the setting raw
option =true
on the producer endpoint. This is useful for e.g., json/xml
and other payloads where Splunk has build in support.
...