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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...