All Apps and Add-ons

Tenable Add-On: How do you extract fields from values (Tenable data, JSON with XML tag inside)?

tlscharlie
New Member

I've got the Tenable Add-On running, and I'm ingesting vulnerability data into Splunk, which is JSON, and Splunk parses it normally and extracts all the fields I need, except for some key value pairs within a set of XML tags, which are all shown as a single value for the field.

"Field1" : "Value1", 
"Field2" : "Value2", 
"Field3" : "FieldA : \n\n
 Fielda : Valuea \n
Fieldb : Valueb \n

So Splunk will extract the JSON field value pairs until it gets to the XML tag, then it treats everything from the tag open to close as a value for "Field3". I've tried a few things with spath etc, but I'm not getting anywhere. Any obvious ideas? The field extractor errors out with an unspecific error when I try to grab anything inside the XML. I appreciate the help!

0 Karma

tlscharlie
New Member

ah, i'm an idiot, the xml tags didn't show after FieldA: and the end.

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, ...