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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...