Splunk Dev

JAVA SDK is taking too long time to index data to splunk

royalhrk
Engager

Hi,

We are using custom java program to index data to splunk using Java SDK (1.6.5.0).  We have huge volume to data to index on daily bases around  aprox.100000 documents.

We used TCP method but it requires a port to open and bind with a specific source to index data. We receive data as bulk (several records) and process it and index each record seperately. to index data as unique event we need to connect TCP port each time and close it to index data. This way it is working very slow (might be  due to connecting and closing TCP port for each record).  We tried the com.splunk.Index API (submit()/ attach()), but index rate is very slow.

We have java parsers that are doing some business specific stuff with data, so dont want to go for forwards to rewrite the data parsing logic.

Can anyone help here and suggest the best practice/approach to index, using java SDK (considering high data velicity).

Thanks.

Labels (2)
Tags (2)
0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...