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!

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...