Splunk Search

How to configure props.conf to extract fields and line break multiple XML files?

andyhine
New Member

Hi

I'm new to splunk. I'm trying to index multiple XML files that look like:

<?xml version="1.0" encoding="UTF-8"?>
<!-- produced for the bleb.org TV system at Sat Aug 2 08:39:23 2014 -->
<channel id="4music" source="XMLTV" date="02/08/2014">
<programme>
<desc>Teleshopping</desc>
<title>Teleshopping</title>
<end>0700</end>
<start>0600</start>
</programme>
<programme>
<desc>Teleshopping</desc>
<title>Teleshopping</title>
<end>0730</end>
<start>0700</start>
</programme>
...
</channel>

I've added the data input as files and directories and set the source time to be manual with the name "schedule". I'm not getting correct search results so I've tried various things in props.conf but I just can't get the correct results.

Is anyone able to guide me what I need to put in props.conf (and do I need anything in transforms.conf?)

Thanks

0 Karma

somesoni2
Revered Legend

Can you share the props.conf/transforms.conf that you tried?

0 Karma

andyhine
New Member

Hi. Many thanks. Tried all of those but still not working correctly in my case.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...