<?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: How to parse all json fields in mixed unstructured+structured event? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-all-json-fields-in-mixed-unstructured-structured/m-p/600739#M104708</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/36601"&gt;@zachsisinst&lt;/a&gt;&amp;nbsp;- It should be:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| spath input=myjson&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my working search query:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | eval _raw="[redacted:54407 24943076666] Processing MessageDispatcher.deliver_batch([#&amp;lt;Message::Queued:0x0000aaab14d8f418 @id=10440927, @created_at=Fri, 03 Jun 2022 14:21:43.890133282 UTC +00:00&amp;gt;, #&amp;lt;Message::Queued:0x0000aaab14dbc8c8 @id=10440928, @created_at=Fri, 03 Jun 2022 14:21:43.896693884 UTC +00:00&amp;gt;]{\"tag\":\"something\",\"strand\":null,\"singleton\":null,\"priority\":25,\"attempts\":0,\"created_at\":\"2022-06-03T14:21:43Z\",\"max_attempts\":15,\"source\":\"hostname:redacted,pid:29920\"}"
| rex field=_raw "(?&amp;lt;myjson&amp;gt;\{.+\})"
| spath input=myjson&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!!!&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jun 2022 18:17:43 GMT</pubDate>
    <dc:creator>VatsalJagani</dc:creator>
    <dc:date>2022-06-06T18:17:43Z</dc:date>
    <item>
      <title>How to parse all json fields in mixed unstructured+structured event?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-all-json-fields-in-mixed-unstructured-structured/m-p/600727#M104707</link>
      <description>&lt;P&gt;Hi there, I have this type of event coming into splunk:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;```&lt;BR /&gt;[&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;redacted&lt;/SPAN&gt;:54407&lt;/SPAN&gt; &lt;SPAN class=""&gt;24943076666&lt;/SPAN&gt;] &lt;SPAN class=""&gt;Processing&lt;/SPAN&gt; &lt;SPAN class=""&gt;MessageDispatcher.deliver_batch&lt;/SPAN&gt;([&lt;SPAN class=""&gt;#&lt;/SPAN&gt;&amp;lt;&lt;SPAN class=""&gt;Message::Queued:0x0000aaab14d8f418&lt;/SPAN&gt; &lt;SPAN class=""&gt;@id=10440927&lt;/SPAN&gt;, &lt;SPAN class=""&gt;@created_at=Fri&lt;/SPAN&gt;, &lt;SPAN class=""&gt;03&lt;/SPAN&gt; &lt;SPAN class=""&gt;Jun&lt;/SPAN&gt; &lt;SPAN class=""&gt;2022&lt;/SPAN&gt; &lt;SPAN class=""&gt;14:21:43.890133282&lt;/SPAN&gt; &lt;SPAN class=""&gt;UTC&lt;/SPAN&gt; +&lt;SPAN class=""&gt;00:00&lt;/SPAN&gt;&amp;gt;, &lt;SPAN class=""&gt;#&lt;/SPAN&gt;&amp;lt;&lt;SPAN class=""&gt;Message::Queued:0x0000aaab14dbc8c8&lt;/SPAN&gt; &lt;SPAN class=""&gt;@id=10440928&lt;/SPAN&gt;, &lt;SPAN class=""&gt;@created_at=Fri&lt;/SPAN&gt;, &lt;SPAN class=""&gt;03&lt;/SPAN&gt; &lt;SPAN class=""&gt;Jun&lt;/SPAN&gt; &lt;SPAN class=""&gt;2022&lt;/SPAN&gt; &lt;SPAN class=""&gt;14:21:43.896693884&lt;/SPAN&gt; &lt;SPAN class=""&gt;UTC&lt;/SPAN&gt; +&lt;SPAN class=""&gt;00:00&lt;/SPAN&gt;&amp;gt;]{"&lt;/SPAN&gt;&lt;SPAN class=""&gt;tag&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"something&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;strand&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:null&lt;/SPAN&gt;&lt;SPAN&gt;,"&lt;/SPAN&gt;&lt;SPAN class=""&gt;singleton&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:null&lt;/SPAN&gt;&lt;SPAN&gt;,"&lt;/SPAN&gt;&lt;SPAN class=""&gt;priority&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:25&lt;/SPAN&gt;&lt;SPAN&gt;,"&lt;/SPAN&gt;&lt;SPAN class=""&gt;attempts&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:0&lt;/SPAN&gt;&lt;SPAN&gt;,"&lt;/SPAN&gt;&lt;SPAN class=""&gt;created_at&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;2022-06-03T14:21:43Z&lt;/SPAN&gt;&lt;SPAN&gt;","&lt;/SPAN&gt;&lt;SPAN class=""&gt;max_attempts&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:15&lt;/SPAN&gt;&lt;SPAN&gt;,"&lt;/SPAN&gt;&lt;SPAN class=""&gt;source&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;hostname:&lt;SPAN class=""&gt;redacted&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN class=""&gt;pid:&lt;SPAN class=""&gt;29920"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;}&lt;BR /&gt;&lt;/SPAN&gt;```&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;I would like to extract all of the json fields dynamically without individually pulling them out with multiple rex's. I have tried the following, but I am not seeing the json fields being parsed. `myjson` is successfully extracted, but spath does not pull out individual fields from the json:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;```&lt;BR /&gt;index="myindex" source="mysource"&amp;nbsp;&lt;BR /&gt;| rex field=_raw "(?&amp;lt;myjson&amp;gt;\{.+\})"&lt;BR /&gt;| spath myjson&lt;BR /&gt;```&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 17:40:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-all-json-fields-in-mixed-unstructured-structured/m-p/600727#M104707</guid>
      <dc:creator>zachsisinst</dc:creator>
      <dc:date>2022-06-06T17:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse all json fields in mixed unstructured+structured event?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-all-json-fields-in-mixed-unstructured-structured/m-p/600739#M104708</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/36601"&gt;@zachsisinst&lt;/a&gt;&amp;nbsp;- It should be:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| spath input=myjson&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my working search query:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | eval _raw="[redacted:54407 24943076666] Processing MessageDispatcher.deliver_batch([#&amp;lt;Message::Queued:0x0000aaab14d8f418 @id=10440927, @created_at=Fri, 03 Jun 2022 14:21:43.890133282 UTC +00:00&amp;gt;, #&amp;lt;Message::Queued:0x0000aaab14dbc8c8 @id=10440928, @created_at=Fri, 03 Jun 2022 14:21:43.896693884 UTC +00:00&amp;gt;]{\"tag\":\"something\",\"strand\":null,\"singleton\":null,\"priority\":25,\"attempts\":0,\"created_at\":\"2022-06-03T14:21:43Z\",\"max_attempts\":15,\"source\":\"hostname:redacted,pid:29920\"}"
| rex field=_raw "(?&amp;lt;myjson&amp;gt;\{.+\})"
| spath input=myjson&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!!!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 18:17:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-parse-all-json-fields-in-mixed-unstructured-structured/m-p/600739#M104708</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-06-06T18:17:43Z</dc:date>
    </item>
  </channel>
</rss>

