<?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: Getting the counts in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Getting-the-counts/m-p/115644#M30663</link>
    <description>&lt;P&gt;Based on this clarification:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;I need the total count for that day but I don't need to show the uri count, I need the instances count of how many times it exceeded &amp;gt; 100 (within 5 minutes).
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This should work when run for at least 1 full day (or more):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; sourcetype=access_combined_cookie uri="xxxxx" jsession!=- | bucket _time span=5m | stats count BY _time jsession | timechart span=1d count(eval(count&amp;gt;100)) AS count BY jsession
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 10 Jul 2015 15:37:57 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-07-10T15:37:57Z</dc:date>
    <item>
      <title>Getting the counts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-the-counts/m-p/115641#M30660</link>
      <description>&lt;P&gt;Hi  i have this query - sourcetype=access_combined_cookie  uri="&lt;EM&gt;xxxxx&lt;/EM&gt;" jsession!=-  | bucket _time span=5m | stats  count by _time,jsession,  | where count &amp;gt; 100&lt;/P&gt;

&lt;P&gt;i basically want to get a timechart of count of jsessions for which uri xxxx is executed more than 100 times in 5m period.&lt;BR /&gt;&lt;BR /&gt;
i have used timechart but did not work. can you pls help me modify this query.  &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:39:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-the-counts/m-p/115641#M30660</guid>
      <dc:creator>xvxt006</dc:creator>
      <dc:date>2020-09-29T06:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the counts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-the-counts/m-p/115642#M30661</link>
      <description>&lt;P&gt;If I understand you correctly, this should do it (you were almost there):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=access_combined_cookie uri="xxxxx" jsession!=- | bucket _time span=5m | stats count BY _time jsession | where count &amp;gt; 100 | timechart span=5m first(count) AS count BY jsession
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=access_combined_cookie uri="xxxxx" jsession!=- | timechart span=5m count BY jsession | where count&amp;gt;100
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Jul 2015 15:08:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-the-counts/m-p/115642#M30661</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-10T15:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the counts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-the-counts/m-p/115643#M30662</link>
      <description>&lt;P&gt;Hi, &lt;BR /&gt;
i have tried the timechart one previously but that is not giving me any results. Going back to the first query, after i took out _time, i am getting i think may be the first one for that day. But i need the total count for that day. Also i don't need to show the uri count, but i need the instances count of how many times it exceeded &amp;gt; 100.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2015 15:25:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-the-counts/m-p/115643#M30662</guid>
      <dc:creator>xvxt006</dc:creator>
      <dc:date>2015-07-10T15:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the counts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-the-counts/m-p/115644#M30663</link>
      <description>&lt;P&gt;Based on this clarification:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;I need the total count for that day but I don't need to show the uri count, I need the instances count of how many times it exceeded &amp;gt; 100 (within 5 minutes).
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This should work when run for at least 1 full day (or more):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; sourcetype=access_combined_cookie uri="xxxxx" jsession!=- | bucket _time span=5m | stats count BY _time jsession | timechart span=1d count(eval(count&amp;gt;100)) AS count BY jsession
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Jul 2015 15:37:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-the-counts/m-p/115644#M30663</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-10T15:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the counts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-the-counts/m-p/115645#M30664</link>
      <description>&lt;P&gt;Thank you. this is close. But when i just execute  - sourcetype=access_combined_cookie uri="xxxxx" jsession!=- | bucket _time span=5m | stats count BY _time jsession | where count &amp;gt; 100&lt;/P&gt;

&lt;P&gt;i am getting 27 results but when i use your latest query i see 16 results. trying to find why is the difference&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:39:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-the-counts/m-p/115645#M30664</guid>
      <dc:creator>xvxt006</dc:creator>
      <dc:date>2020-09-29T06:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the counts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-the-counts/m-p/115646#M30665</link>
      <description>&lt;P&gt;You are probably doing "last 24 hours" instead of "yesterday"; the former splits across 2 days so will show differently between the 2 searches.  Run both searches for "yesterday" or "today" and the values will be the same.  The former evaluates every 5m interval for the entire timepicker range (regardless of days), the latter breaks out by days.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2015 15:52:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-the-counts/m-p/115646#M30665</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-10T15:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the counts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-the-counts/m-p/115647#M30666</link>
      <description>&lt;P&gt;Awesome. Actually this is correct. &lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2015 15:57:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-the-counts/m-p/115647#M30666</guid>
      <dc:creator>xvxt006</dc:creator>
      <dc:date>2015-07-10T15:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the counts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-the-counts/m-p/115648#M30667</link>
      <description>&lt;P&gt;Thank you &lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2015 16:05:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-the-counts/m-p/115648#M30667</guid>
      <dc:creator>xvxt006</dc:creator>
      <dc:date>2015-07-10T16:05:07Z</dc:date>
    </item>
  </channel>
</rss>

