Getting Data In

trying to lexically parse a text field and group results into categories

brucejohnson
New Member

I have an xml file with a text field. The text field may include trigger words. I have a list of those trigger words. Obviously I can search for those trigger words from the text field by using wildcards. I don't want to do sub-searches for every possible correlation.

So my description might be "item rejected because expiration date is wrong" or "security violation" or "date of birth missing, application rejected" and my keywords might be "rejected", "expiration", "security", or "violation".

Is there a way to do a lookup using the wildcard by way of substitution? Would you use a regex?

I'd like to be able to group the results by trigger word.

Tags (1)
0 Karma

niketn
Legend

You can parse XML data using either spath or xpath command.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...