<?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 extract count of specific event from nested JSON? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-count-of-specific-event-from-nested-JSON/m-p/514801#M144508</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;Sorry! I was using the highlighted syntax mode in Splunk. Thanks for correcting that.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Aug 2020 23:51:51 GMT</pubDate>
    <dc:creator>chtmai</dc:creator>
    <dc:date>2020-08-18T23:51:51Z</dc:date>
    <item>
      <title>How to extract count of specific event from nested JSON?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-count-of-specific-event-from-nested-JSON/m-p/514789#M144501</link>
      <description>&lt;P&gt;I have this data coming in every minute to monitor application performance:&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;{ "events": [ 
     { "appId": "mock-app",
       "eventType": "WorkflowRequestFailedCount",
       "failureType": "wf.execution.error",
       "metricType": "COUNTER",
       "requestType": "WORKFLOW",
       "throughput": 15,
       "workflowId": "create"
     },
     { "appId": "mock-app",
       "eventType": "WorkflowRequestProcessedCount",
       "metricType": "COUNTER",
       "requestType": "WORKFLOW",
       "throughput": 0
     },
     { "appId": "mock-app",
       "eventType": "WorkflowRequestReceivedCount",
       "metricType": "COUNTER",
       "requestType": "WORKFLOW",
       "throughput": 20,
       "workflowId": "create"
     }
   ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need a query (to set up an alert) that identifies when &lt;STRONG&gt;throughput&lt;/STRONG&gt; is GREATER than 0 for throughput nested with&amp;nbsp;&lt;STRONG&gt;eventType&lt;/STRONG&gt; &lt;STRONG&gt;= WorkflowRequestFailedCount&lt;/STRONG&gt;. I can't figure out how to isolate the throughput count between different &lt;STRONG&gt;eventType&lt;/STRONG&gt; items when they are both nested within the same &lt;STRONG&gt;events&lt;/STRONG&gt; object as shown above.&lt;/P&gt;&lt;P&gt;For the JSON shown above, the correct query should trigger an alert because the throughput for&amp;nbsp;&lt;STRONG&gt;WorkflowRequestFailedCount&amp;nbsp;&lt;/STRONG&gt;is 15 (greater than 0).&lt;/P&gt;&lt;P&gt;Appreciate the help.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 23:52:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-count-of-specific-event-from-nested-JSON/m-p/514789#M144501</guid>
      <dc:creator>chtmai</dc:creator>
      <dc:date>2020-08-18T23:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract count of specific event from nested JSON?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-count-of-specific-event-from-nested-JSON/m-p/514795#M144503</link>
      <description>&lt;P&gt;your sample is not valid json.&lt;BR /&gt;Splunk can't extract invalid json.&lt;BR /&gt;We can't create a solution with the wrong sample.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 23:24:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-count-of-specific-event-from-nested-JSON/m-p/514795#M144503</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-08-18T23:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract count of specific event from nested JSON?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-count-of-specific-event-from-nested-JSON/m-p/514797#M144504</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;Updated! Does this help?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 23:33:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-count-of-specific-event-from-nested-JSON/m-p/514797#M144504</guid>
      <dc:creator>chtmai</dc:creator>
      <dc:date>2020-08-18T23:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract count of specific event from nested JSON?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-count-of-specific-event-from-nested-JSON/m-p/514800#M144507</link>
      <description>&lt;LI-CODE lang="markup"&gt;{ "events": [ 
     { "appId": "mock-app",
       "eventType": "WorkflowRequestFailedCount",
       "failureType": "wf.execution.error",
       "metricType": "COUNTER",
       "requestType": "WORKFLOW",
       "throughput": 15,
       "workflowId": "create"
     },
     { "appId": "mock-app",
       "eventType": "WorkflowRequestProcessedCount",
       "metricType": "COUNTER",
       "requestType": "WORKFLOW",
       "throughput": 0
     },
     { "appId": "mock-app",
       "eventType": "WorkflowRequestReceivedCount",
       "metricType": "COUNTER",
       "requestType": "WORKFLOW",
       "throughput": 20,
       "workflowId": "create"
     }
   ]
}&lt;/LI-CODE&gt;&lt;P&gt;this is valid JSON. your JSON is not valid.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 23:49:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-count-of-specific-event-from-nested-JSON/m-p/514800#M144507</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-08-18T23:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract count of specific event from nested JSON?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-count-of-specific-event-from-nested-JSON/m-p/514801#M144508</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;Sorry! I was using the highlighted syntax mode in Splunk. Thanks for correcting that.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 23:51:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-count-of-specific-event-from-nested-JSON/m-p/514801#M144508</guid>
      <dc:creator>chtmai</dc:creator>
      <dc:date>2020-08-18T23:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract count of specific event from nested JSON?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-count-of-specific-event-from-nested-JSON/m-p/514803#M144509</link>
      <description>&lt;P&gt;| spath events{} output=events&lt;BR /&gt;| mvexpand events&lt;BR /&gt;| spath input=events&lt;BR /&gt;| fields - events* _raw&lt;BR /&gt;| search throughput &amp;gt; 0 AND eventType = WorkflowRequestFailedCount&lt;BR /&gt;| table *&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 23:55:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-count-of-specific-event-from-nested-JSON/m-p/514803#M144509</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-08-18T23:55:05Z</dc:date>
    </item>
  </channel>
</rss>

