Deployment Architecture

Splunk Java SDK, load balancing on indexers when sending events from SDK

somesoni2
SplunkTrust
SplunkTrust

I am creating a java program using SPlunk SDK which takes a string data from a application source and pass it to a specific index in the Splunk Indexer. However, I have 2 Indexers configured for load balancing. I know that if I would have been using forwarders to send data to Splunk Indexer, it would be sent in a load balancing manner.

Will sending data from SDK (where we mention the Splunk host name and port explicitly), we would be able to achieve the same??

0 Karma
1 Solution

Damien_Dallimor
Ultra Champion

No it won't be load balanced unless you programmatically implement the load balancing logic yourself in your code ie: at the very simplest level , instantiate 2 Service objects and round robin over them. Of course, you can also implement more intelligent LB algorithms.

View solution in original post

0 Karma

Damien_Dallimor
Ultra Champion

No it won't be load balanced unless you programmatically implement the load balancing logic yourself in your code ie: at the very simplest level , instantiate 2 Service objects and round robin over them. Of course, you can also implement more intelligent LB algorithms.

0 Karma

somesoni2
SplunkTrust
SplunkTrust

Thanks. This helps.

0 Karma
Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...