<?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: Count all events matching field value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Count-all-events-matching-field-value/m-p/626689#M217821</link>
    <description>&lt;LI-CODE lang="markup"&gt;your search and your rex...
| stats count by status&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 11 Jan 2023 02:28:26 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2023-01-11T02:28:26Z</dc:date>
    <item>
      <title>Count all events matching field value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-all-events-matching-field-value/m-p/626688#M217820</link>
      <description>&lt;P&gt;My data looks something like this&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sjs_0-1673402480170.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23301iE9B1EA6B3A0BF7E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sjs_0-1673402480170.png" alt="sjs_0-1673402480170.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The status can be either SUCCESS or FAILED, I want to count the total number of events that has status as FAILED and status as SUCCESS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FYI: The status is not a direct field, I had to extract it out by using&amp;nbsp;&lt;/P&gt;
&lt;P&gt;| rex "status=(?&amp;lt;Status&amp;gt;[^,]+)"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 18:05:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-all-events-matching-field-value/m-p/626688#M217820</guid>
      <dc:creator>sjs</dc:creator>
      <dc:date>2023-01-11T18:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Count all events matching field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-all-events-matching-field-value/m-p/626689#M217821</link>
      <description>&lt;LI-CODE lang="markup"&gt;your search and your rex...
| stats count by status&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 11 Jan 2023 02:28:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-all-events-matching-field-value/m-p/626689#M217821</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-01-11T02:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Count all events matching field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-all-events-matching-field-value/m-p/626690#M217822</link>
      <description>&lt;P&gt;Thanks it helped 🥳🥳🥳&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 02:40:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-all-events-matching-field-value/m-p/626690#M217822</guid>
      <dc:creator>sjs</dc:creator>
      <dc:date>2023-01-11T02:40:24Z</dc:date>
    </item>
  </channel>
</rss>

