<?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: Help me with search query for my usecase in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-me-with-search-query-for-my-usecase/m-p/306088#M91894</link>
    <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="ABC" sourcetype="XYZ" | bin _time span=1h | stats count(eval(responsecode="200")) AS success count BY _time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 30 Mar 2017 15:00:47 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2017-03-30T15:00:47Z</dc:date>
    <item>
      <title>Help me with search query for my usecase</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-me-with-search-query-for-my-usecase/m-p/306084#M91890</link>
      <description>&lt;P&gt;i want to list out the success count by time&lt;BR /&gt;
Example:&lt;/P&gt;

&lt;P&gt;index="ABC" sourcetype="XYZ"  responsecode="200"|&lt;/P&gt;

&lt;H2&gt;Time                           count&lt;/H2&gt;

&lt;P&gt;last 1hour(1:00am)                     20&lt;BR /&gt;
other 1hour(2:00am)                  10&lt;/P&gt;

&lt;P&gt;please help me with  sample query&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 14:46:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-me-with-search-query-for-my-usecase/m-p/306084#M91890</guid>
      <dc:creator>sravankaripe</dc:creator>
      <dc:date>2017-03-30T14:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help me with search query for my usecase</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-me-with-search-query-for-my-usecase/m-p/306085#M91891</link>
      <description>&lt;P&gt;is that what you are looking for?&lt;BR /&gt;
 .... | timechart span=1h count&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 14:53:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-me-with-search-query-for-my-usecase/m-p/306085#M91891</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-03-30T14:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help me with search query for my usecase</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-me-with-search-query-for-my-usecase/m-p/306086#M91892</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;index="ABC" sourcetype="XYZ" responsecode="200"| timechart span=1h count &lt;/P&gt;

&lt;P&gt;3no.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 14:55:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-me-with-search-query-for-my-usecase/m-p/306086#M91892</guid>
      <dc:creator>3no</dc:creator>
      <dc:date>2017-03-30T14:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help me with search query for my usecase</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-me-with-search-query-for-my-usecase/m-p/306087#M91893</link>
      <description>&lt;P&gt;index="ABC" sourcetype="XYZ" responsecode="200"|timechart span=1h count &lt;/P&gt;

&lt;P&gt;refer this one &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/timechart"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/timechart&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 14:56:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-me-with-search-query-for-my-usecase/m-p/306087#M91893</guid>
      <dc:creator>kiran331</dc:creator>
      <dc:date>2017-03-30T14:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help me with search query for my usecase</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-me-with-search-query-for-my-usecase/m-p/306088#M91894</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="ABC" sourcetype="XYZ" | bin _time span=1h | stats count(eval(responsecode="200")) AS success count BY _time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Mar 2017 15:00:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-me-with-search-query-for-my-usecase/m-p/306088#M91894</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-30T15:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help me with search query for my usecase</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-me-with-search-query-for-my-usecase/m-p/306089#M91895</link>
      <description>&lt;P&gt;Hi sravankaripe,&lt;BR /&gt;
you can use timechart command to count the number of events in every hour:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="ABC" sourcetype="XYZ" responsecode="200"
| timechart count span=1h
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In addition, you can also compare count of each hour with the corresponding hour of e.g. last week using timewrap command (see &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.2/SearchReference/Timewrap):"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.2/SearchReference/Timewrap):&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="ABC" sourcetype="XYZ" responsecode="200"
| timechart count span=1h
| timewrap 1week
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 15:16:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-me-with-search-query-for-my-usecase/m-p/306089#M91895</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-03-30T15:16:09Z</dc:date>
    </item>
  </channel>
</rss>

