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!

Leveraging Detections from the Splunk Threat Research Team & Cisco Talos

  Now On Demand  Stay ahead of today’s evolving threats with the combined power of the Splunk Threat Research ...

New in Splunk Observability Cloud: Automated Archiving for Unused Metrics

Automated Archival is a new capability within Metrics Management; which is a robust usage & cost optimization ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...