Getting Data In

Feed data to the splunk index using REST API

priyankatiwari
Engager

Hello experts! I would like to configure my java application to write data directly to a splunk index, rather than write to application logs and then use the splunk agent to index/search the logs, for data visualization. The documentation describes modular inputs as one way to feed data into splunk without the use of application logs. But, is there a way I can directly write to splunk, through the application , without the use of logging? . Would appreciate any inputs!

Thanks much!
Splunk newbie

0 Karma
1 Solution

damien_chillet
Builder

You could add data directly to an index using the Java SDK for example.

See "To add data directly to an index" at http://dev.splunk.com/view/java-sdk/SP-CAAAEJ2
One of the available method lets you send events over a writeable socket for example.

View solution in original post

0 Karma

priyankatiwari
Engager

Thank you for the response @damien_chillet . The SDK api looks like a promising option. Exploring to see if we can use it!

0 Karma

damien_chillet
Builder

You could add data directly to an index using the Java SDK for example.

See "To add data directly to an index" at http://dev.splunk.com/view/java-sdk/SP-CAAAEJ2
One of the available method lets you send events over a writeable socket for example.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...