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!

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...