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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...