Getting Data In

reading an xml file in splunk

a212830
Champion

Hi,

I have an xml file that I am being asked to import into Splunk. How would I configure this?

Tags (2)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

As any other file - figure out where event breaks and time stamps are, estimate maximum line and byte count per event, and configure that in props.conf - done.

If you need specific help with your format you'll have to post some samples along with what you've tried already.

a212830
Champion

OK. Thanks.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

There's the KV_MODE=xml switch in props.conf, but that's for search time field extraction. First you need to get index-time settings right, and those can differ between XML sources depending on the specific source.

0 Karma

a212830
Champion

OK. I thought Splunk automatically handled xml with some config settings?

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

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

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...