<?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: Extracting fields from nested JSON event in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extracting-fields-from-nested-JSON-event/m-p/532183#M150336</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt;&amp;nbsp; I can spath but I have no idea how many iRules there will be per event or what they are named, and I don't know how many event types there will be or what they are named.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Dec 2020 13:02:04 GMT</pubDate>
    <dc:creator>kmaron</dc:creator>
    <dc:date>2020-12-07T13:02:04Z</dc:date>
    <item>
      <title>Extracting fields from nested JSON event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-fields-from-nested-JSON-event/m-p/531922#M150259</link>
      <description>&lt;P&gt;I have a very complex nested JSON event and need to extract 2 fields. I've managed it with less complicated ones but this one has be a bit stumped.&lt;/P&gt;&lt;P&gt;I need to get the avgCycles and totalExecutions for each iRule - keeping hold of the name of the iRule.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My event looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{ [-]
   clientSslProfiles: { [+]
   }
   deviceGroups: { [+]
   }
   httpProfiles: { [+]
   }
   iRules: { [-]
     /Department/Shared/Department_HTML_rewrite_Rule: { [-]
       application: Shared
       events: { [-]
         CLIENT_ACCEPTED: { [+]
         }
         HTML_TAG_MATCHED: { [+]
         }
         HTTP_REQUEST: { [+]
         }
         HTTP_RESPONSE: { [-]
           aborts: 0
           avgCycles: 28338
           failures: 0
           maxCycles: 1882653
           minCycles: 8898
           priority: 550
           totalExecutions: 86269
         }
       }
       name: /Department/Shared/Department_HTML_rewrite_Rule
       tenant: Department
     }
     /Common/Office-Rule: { [+]
     }
     /Common/Debug-Rule: { [+]
.....&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 20:46:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-fields-from-nested-JSON-event/m-p/531922#M150259</guid>
      <dc:creator>kmaron</dc:creator>
      <dc:date>2020-12-03T20:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting fields from nested JSON event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-fields-from-nested-JSON-event/m-p/532099#M150314</link>
      <description>&lt;P&gt;Why don't you &lt;STRONG&gt;spath &lt;/STRONG&gt;and&lt;STRONG&gt; table&lt;/STRONG&gt;?&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2020 07:00:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-fields-from-nested-JSON-event/m-p/532099#M150314</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-12-05T07:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting fields from nested JSON event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-fields-from-nested-JSON-event/m-p/532183#M150336</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt;&amp;nbsp; I can spath but I have no idea how many iRules there will be per event or what they are named, and I don't know how many event types there will be or what they are named.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 13:02:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-fields-from-nested-JSON-event/m-p/532183#M150336</guid>
      <dc:creator>kmaron</dc:creator>
      <dc:date>2020-12-07T13:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting fields from nested JSON event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-fields-from-nested-JSON-event/m-p/532291#M150369</link>
      <description>&lt;P&gt;The command cannot be applied firmly because there is no log of &lt;STRONG&gt;_raw&lt;/STRONG&gt;, but&lt;STRONG&gt; spath output=&lt;/STRONG&gt; should be fine.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 08:30:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-fields-from-nested-JSON-event/m-p/532291#M150369</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-12-08T08:30:54Z</dc:date>
    </item>
    <item>
      <title>I don't Re: Extracting fields from nested JSON event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-fields-from-nested-JSON-event/m-p/532327#M150377</link>
      <description>&lt;P&gt;I don't understand what you're saying.&amp;nbsp; &amp;nbsp;I need to pull out only the avgCycles and totalExecutions for every iRule, attached to the name of the iRule.&amp;nbsp; but I do not know how many there are, or what they are named. spath is just the start. It doesn't do the extraction or allow me to isolate those fields when I don't know the iRule names.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 13:12:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-fields-from-nested-JSON-event/m-p/532327#M150377</guid>
      <dc:creator>kmaron</dc:creator>
      <dc:date>2020-12-08T13:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: I don't Re: Extracting fields from nested JSON event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-fields-from-nested-JSON-event/m-p/532397#M150402</link>
      <description>&lt;P&gt;I can't make a regular expression because you're only presenting the processed log. Also, there are no multiple logs.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 21:21:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-fields-from-nested-JSON-event/m-p/532397#M150402</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-12-08T21:21:36Z</dc:date>
    </item>
  </channel>
</rss>

