<?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: Convert JSON property of event to String in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-convert-JSON-property-of-event-to-string/m-p/601405#M209308</link>
    <description>&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jun 2022 18:25:48 GMT</pubDate>
    <dc:creator>Mayukh</dc:creator>
    <dc:date>2022-06-10T18:25:48Z</dc:date>
    <item>
      <title>how to convert JSON property of event to string?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-convert-JSON-property-of-event-to-string/m-p/601399#M209306</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have a HEC with events like the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
    "Log": {
        "Status": "Ordered",
        "Platform": {
            "A": {
                "Tracking": {"Field1": "Value1", "Field2": "Value2"}
            }
        }
    }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I run the query&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="my_index" AND Log.Status="Ordered" 
| table Log.Status Log.Platform.A.Tracking&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;I get all the data for Status.&lt;/LI&gt;
&lt;LI&gt;However my requirement is to have the JSON object Log.Platform.A.Tracking in a string format - the JSON as a String?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;How can I achieve this?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 18:58:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-convert-JSON-property-of-event-to-string/m-p/601399#M209306</guid>
      <dc:creator>Mayukh</dc:creator>
      <dc:date>2022-06-10T18:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Convert JSON property of event to String</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-convert-JSON-property-of-event-to-string/m-p/601402#M209307</link>
      <description>&lt;LI-CODE lang="markup"&gt;| spath path=Log.Status output=Status
| spath path=Log.Platform.A.Tracking output=Tracking
| table Status Tracking&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 10 Jun 2022 18:15:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-convert-JSON-property-of-event-to-string/m-p/601402#M209307</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-06-10T18:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Convert JSON property of event to String</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-convert-JSON-property-of-event-to-string/m-p/601405#M209308</link>
      <description>&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 18:25:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-convert-JSON-property-of-event-to-string/m-p/601405#M209308</guid>
      <dc:creator>Mayukh</dc:creator>
      <dc:date>2022-06-10T18:25:48Z</dc:date>
    </item>
  </channel>
</rss>

