Dashboards & Visualizations

Filter of xml in input

Stompero
New Member

Hi, I'm new in Splunk and I'm looking for some help for the following use case:
at Splunk indexes all new files in a folder, each file represents an event, but the files that arrive are many.

  I would like to index only the files that contain a data value to a tag (eg " Error </ MessageType>" I would like to index only the xml files that contain this string). I can do this? how can I solve this problem?

Tags (2)
0 Karma

sbrant_splunk
Splunk Employee
Splunk Employee

You may want to consider a scripted input to apply some additional logic to the collection.

http://docs.splunk.com/Documentation/Splunk/latest/admin/Inputsconf

0 Karma
Get Updates on the Splunk Community!

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

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

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...