<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Tenable Add-On: How do you extract fields from values (Tenable data, JSON with XML tag inside)? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Tenable-Add-On-How-do-you-extract-fields-from-values-Tenable/m-p/390070#M47598</link>
    <description>&lt;P&gt;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.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"Field1" : "Value1", 
"Field2" : "Value2", 
"Field3" : "FieldA : \n\n
 Fielda : Valuea \n
Fieldb : Valueb \n
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;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! &lt;/P&gt;</description>
    <pubDate>Wed, 03 Apr 2019 20:50:40 GMT</pubDate>
    <dc:creator>tlscharlie</dc:creator>
    <dc:date>2019-04-03T20:50:40Z</dc:date>
    <item>
      <title>Tenable Add-On: How do you extract fields from values (Tenable data, JSON with XML tag inside)?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Tenable-Add-On-How-do-you-extract-fields-from-values-Tenable/m-p/390070#M47598</link>
      <description>&lt;P&gt;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.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"Field1" : "Value1", 
"Field2" : "Value2", 
"Field3" : "FieldA : \n\n
 Fielda : Valuea \n
Fieldb : Valueb \n
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;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! &lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 20:50:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Tenable-Add-On-How-do-you-extract-fields-from-values-Tenable/m-p/390070#M47598</guid>
      <dc:creator>tlscharlie</dc:creator>
      <dc:date>2019-04-03T20:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Tenable Add-On: How do you extract fields from values (Tenable data, JSON with XML tag inside)?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Tenable-Add-On-How-do-you-extract-fields-from-values-Tenable/m-p/390071#M47599</link>
      <description>&lt;P&gt;ah, i'm an idiot, the xml tags didn't show after FieldA: and the end.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 20:52:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Tenable-Add-On-How-do-you-extract-fields-from-values-Tenable/m-p/390071#M47599</guid>
      <dc:creator>tlscharlie</dc:creator>
      <dc:date>2019-04-03T20:52:26Z</dc:date>
    </item>
  </channel>
</rss>

