<?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 create a search to get number of events for HTTP status code? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-to-get-number-of-events-for-HTTP-status/m-p/501942#M139720</link>
    <description>&lt;P&gt;Assuming you don't have fields extracted, try this for starters.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo
| rex "1\.1" (?&amp;lt;status&amp;gt;\d+)"
| stats count by status
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 21 May 2020 17:33:53 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-05-21T17:33:53Z</dc:date>
    <item>
      <title>How to create a search to get number of events for HTTP status code?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-to-get-number-of-events-for-HTTP-status/m-p/501941#M139719</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I have the logs below and need to get an HTTP status code count.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;10.176.242.7 - app [21/May/2020:16:09:01 +0000] "GET /data/app1/2016-11-04/2582478/0CA087DB-8F72-4E5D-9F9C-F4E0C362601F.pdf.zip HTTP/1.1" 200 95098

10.176.242.7 - app [21/May/2020:16:09:01 +0000] "GET /data/app2/2016-11-04/2582478/0CA087DB-8F72-4E5D-9F9C-F4E0C362601F.pdf.zip HTTP/1.1" 401 95098

10.176.242.7 - app [21/May/2020:16:09:01 +0000] "GET /data/app3/2016-11-04/2582478/0CA087DB-8F72-4E5D-9F9C-F4E0C362601F.pdf.zip HTTP/1.1" 404 95098
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please help me create a Splunk search.&lt;/P&gt;

&lt;P&gt;--Raja&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 16:12:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-to-get-number-of-events-for-HTTP-status/m-p/501941#M139719</guid>
      <dc:creator>rajawccm16</dc:creator>
      <dc:date>2020-05-21T16:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a search to get number of events for HTTP status code?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-to-get-number-of-events-for-HTTP-status/m-p/501942#M139720</link>
      <description>&lt;P&gt;Assuming you don't have fields extracted, try this for starters.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo
| rex "1\.1" (?&amp;lt;status&amp;gt;\d+)"
| stats count by status
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 May 2020 17:33:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-to-get-number-of-events-for-HTTP-status/m-p/501942#M139720</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-05-21T17:33:53Z</dc:date>
    </item>
  </channel>
</rss>

