Getting Data In

How to load Java objects into Splunk

sdaruna
Explorer

Hi,

We will get huge XML files from our client. I need to parse them and based on the nodes, I need to move the data to their respective indexes.
In reports, I need to join the data from various indexes and produce a table output.

I would like to use Splunk Java API to index the data. I want to parse the XML file and get the list of events for each node using xpath, and then want lo load them into Splunk.

1) How can I directly index the java objects into Splunk?

2) I would like to attach the source file details to each event, so that when user want to view raw source file, they will be able to do that.
How can I specify the source file details to event in java API?

0 Karma

jkat54
SplunkTrust
SplunkTrust
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 ...