<?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 Re: XML within a JSON: How parse a raw event? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/XML-within-a-JSON-How-parse-a-raw-event/m-p/401701#M26320</link>
    <description>&lt;P&gt;I was able to parse it by fetching xml via spath then using eval _raw=xml_field | xmlkv | table amount&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 00:46:44 GMT</pubDate>
    <dc:creator>GRamani123</dc:creator>
    <dc:date>2020-09-30T00:46:44Z</dc:date>
    <item>
      <title>XML within a JSON: How parse a raw event?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/XML-within-a-JSON-How-parse-a-raw-event/m-p/401695#M26314</link>
      <description>&lt;P&gt;I'm trying to parse a amount value from a raw event. The event is in JSON format and one of the key value in this JSON is an xml.  the field that I'm trying to parse is one of the xml tag value.&lt;BR /&gt;
ex: event is &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{"field1":"value1","field2":"value2", "field3":{"message:"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 02 Jun 2019 20:23:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/XML-within-a-JSON-How-parse-a-raw-event/m-p/401695#M26314</guid>
      <dc:creator>GRamani123</dc:creator>
      <dc:date>2019-06-02T20:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: XML within a JSON: How parse a raw event?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/XML-within-a-JSON-How-parse-a-raw-event/m-p/401696#M26315</link>
      <description>&lt;P&gt;{"field1":"value1","field2":"value2", "field3":{"message:"&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jun 2019 20:29:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/XML-within-a-JSON-How-parse-a-raw-event/m-p/401696#M26315</guid>
      <dc:creator>GRamani123</dc:creator>
      <dc:date>2019-06-02T20:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: XML within a JSON: How parse a raw event?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/XML-within-a-JSON-How-parse-a-raw-event/m-p/401697#M26316</link>
      <description>&lt;P&gt;_json is a built in sourcetype which should automatically parse this event.  If you are setting this to a different sourcetype then it will not parse though. Suggest you first try: &lt;CODE&gt;| spath&lt;/CODE&gt; as this should force the json to be parsed.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 00:05:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/XML-within-a-JSON-How-parse-a-raw-event/m-p/401697#M26316</guid>
      <dc:creator>aromanauskas</dc:creator>
      <dc:date>2019-06-03T00:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: XML within a JSON: How parse a raw event?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/XML-within-a-JSON-How-parse-a-raw-event/m-p/401698#M26317</link>
      <description>&lt;P&gt;I'm not sure what is an issue but I complete comment is getting posted.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 02:41:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/XML-within-a-JSON-How-parse-a-raw-event/m-p/401698#M26317</guid>
      <dc:creator>GRamani123</dc:creator>
      <dc:date>2019-06-03T02:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: XML within a JSON: How parse a raw event?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/XML-within-a-JSON-How-parse-a-raw-event/m-p/401699#M26318</link>
      <description>&lt;P&gt;I was able to parse the json via SPATH command and I fetched the XML in a new field. For Ex :command - Spath output=xml_field path=field3.message | table xml_field&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:46:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/XML-within-a-JSON-How-parse-a-raw-event/m-p/401699#M26318</guid>
      <dc:creator>GRamani123</dc:creator>
      <dc:date>2020-09-30T00:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: XML within a JSON: How parse a raw event?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/XML-within-a-JSON-How-parse-a-raw-event/m-p/401700#M26319</link>
      <description>&lt;P&gt;I was able to parse the xml from the event but I'm unable to fetch the value of amount from this xml. I have tried both spath and xpath. &lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 02:49:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/XML-within-a-JSON-How-parse-a-raw-event/m-p/401700#M26319</guid>
      <dc:creator>GRamani123</dc:creator>
      <dc:date>2019-06-03T02:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: XML within a JSON: How parse a raw event?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/XML-within-a-JSON-How-parse-a-raw-event/m-p/401701#M26320</link>
      <description>&lt;P&gt;I was able to parse it by fetching xml via spath then using eval _raw=xml_field | xmlkv | table amount&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:46:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/XML-within-a-JSON-How-parse-a-raw-event/m-p/401701#M26320</guid>
      <dc:creator>GRamani123</dc:creator>
      <dc:date>2020-09-30T00:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: XML within a JSON: How parse a raw event?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/XML-within-a-JSON-How-parse-a-raw-event/m-p/401702#M26321</link>
      <description>&lt;P&gt;If you are still having an issue please post the query and example output. &lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 14:27:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/XML-within-a-JSON-How-parse-a-raw-event/m-p/401702#M26321</guid>
      <dc:creator>aromanauskas</dc:creator>
      <dc:date>2019-06-03T14:27:05Z</dc:date>
    </item>
  </channel>
</rss>

