<?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: time range splunk search &amp; increase time range in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/time-range-splunk-search-increase-time-range/m-p/431693#M52975</link>
    <description>&lt;P&gt;Hi @rups260386,&lt;/P&gt;

&lt;P&gt;Since you're already counting hour by hour from &lt;CODE&gt;earliest=@d&lt;/CODE&gt; then all you have to do is add this to the end of your search &lt;CODE&gt;|streamstats sum(*) as *&lt;/CODE&gt;to make an incremental sum of the results. &lt;/P&gt;

&lt;P&gt;Your search should then look like this :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=mdp_ivc_cdrs sourcetype=prd_mdp_ivc_cdrs earliest=@d latest=now 
| bucket _time span=1h 
| timechart span=1h count(eval(like(INGRESS_TRUNKCONTEXT,"%amazon%"))) as "Outound Calls",count(eval(like(INGRESS_TRUNKCONTEXT,"%vodafone%"))) as "Inbound Calls",count(eval(like(INGRESS_TRUNKCONTEXT,"%amazon%") AND CDR_TYPE=2 AND ANSWERED_CALL=1)) as "Outbound Answered Calls",count(eval(like(INGRESS_TRUNKCONTEXT,"%vodafone%") AND CDR_TYPE=2 AND ANSWERED_CALL=1)) as "Inbound  Answered Calls"
|streamstats sum(*) as *
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
David&lt;/P&gt;</description>
    <pubDate>Sun, 16 Jun 2019 13:36:58 GMT</pubDate>
    <dc:creator>DavidHourani</dc:creator>
    <dc:date>2019-06-16T13:36:58Z</dc:date>
    <item>
      <title>time range splunk search &amp; increase time range</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/time-range-splunk-search-increase-time-range/m-p/431691#M52973</link>
      <description>&lt;P&gt;currently  when I am running below query getting hourly count, but I need to have count always start from 00:00 to 01:00, 00:00 to 02:00, 00:00 to 03:00, 00:00 to 04:00, 00:00 to 05:00 ....... 00:00 to current hour.&lt;/P&gt;

&lt;P&gt;How I can modify below query so that I will get output hourly but search clock always start from 00:00. It would be great if anyone can help me.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=mdp_ivc_cdrs sourcetype=prd_mdp_ivc_cdrs earliest=@d latest=now | bucket _time span=1h |timechart span=1h count(eval(like(INGRESS_TRUNKCONTEXT,"%amazon%"))) as "Outound Calls",count(eval(like(INGRESS_TRUNKCONTEXT,"%vodafone%"))) as "Inbound Calls",count(eval(like(INGRESS_TRUNKCONTEXT,"%amazon%") AND CDR_TYPE=2 AND ANSWERED_CALL=1)) as "Outbound Answered Calls",count(eval(like(INGRESS_TRUNKCONTEXT,"%vodafone%") AND CDR_TYPE=2 AND ANSWERED_CALL=1)) as "Inbound  Answered Calls"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7222iE0BDA71CCD56647B/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jun 2019 08:37:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/time-range-splunk-search-increase-time-range/m-p/431691#M52973</guid>
      <dc:creator>rups260386</dc:creator>
      <dc:date>2019-06-16T08:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: time range splunk search &amp; increase time range</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/time-range-splunk-search-increase-time-range/m-p/431692#M52974</link>
      <description>&lt;P&gt;I am not sure I understand the question, as it seems your query already accomplishes this task.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest=@d
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;in your query, does what you are requesting&lt;/P&gt;

&lt;P&gt;Please explain further &lt;BR /&gt;
Edit:&lt;/P&gt;

&lt;P&gt;Are you looking for a cumulative count? &lt;/P&gt;

&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=mdp_ivc_cdrs sourcetype=prd_mdp_ivc_cdrs earliest=@d latest=now 
| bucket _time span=1h 
| timechart span=1h count(eval(like(INGRESS_TRUNKCONTEXT,"%amazon%"))) as "Outound Calls",count(eval(like(INGRESS_TRUNKCONTEXT,"%vodafone%"))) as "Inbound Calls",count(eval(like(INGRESS_TRUNKCONTEXT,"%amazon%") AND CDR_TYPE=2 AND ANSWERED_CALL=1)) as "Outbound Answered Calls",count(eval(like(INGRESS_TRUNKCONTEXT,"%vodafone%") AND CDR_TYPE=2 AND ANSWERED_CALL=1)) as "Inbound  Answered Calls" 
| streamstats sum("Outbound Calls") ,sum("Inbound Calls") , sum("Outbound Answered Calls") ,sum("Inbound  Answered Calls")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 16 Jun 2019 12:00:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/time-range-splunk-search-increase-time-range/m-p/431692#M52974</guid>
      <dc:creator>martinpu</dc:creator>
      <dc:date>2019-06-16T12:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: time range splunk search &amp; increase time range</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/time-range-splunk-search-increase-time-range/m-p/431693#M52975</link>
      <description>&lt;P&gt;Hi @rups260386,&lt;/P&gt;

&lt;P&gt;Since you're already counting hour by hour from &lt;CODE&gt;earliest=@d&lt;/CODE&gt; then all you have to do is add this to the end of your search &lt;CODE&gt;|streamstats sum(*) as *&lt;/CODE&gt;to make an incremental sum of the results. &lt;/P&gt;

&lt;P&gt;Your search should then look like this :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=mdp_ivc_cdrs sourcetype=prd_mdp_ivc_cdrs earliest=@d latest=now 
| bucket _time span=1h 
| timechart span=1h count(eval(like(INGRESS_TRUNKCONTEXT,"%amazon%"))) as "Outound Calls",count(eval(like(INGRESS_TRUNKCONTEXT,"%vodafone%"))) as "Inbound Calls",count(eval(like(INGRESS_TRUNKCONTEXT,"%amazon%") AND CDR_TYPE=2 AND ANSWERED_CALL=1)) as "Outbound Answered Calls",count(eval(like(INGRESS_TRUNKCONTEXT,"%vodafone%") AND CDR_TYPE=2 AND ANSWERED_CALL=1)) as "Inbound  Answered Calls"
|streamstats sum(*) as *
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
David&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jun 2019 13:36:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/time-range-splunk-search-increase-time-range/m-p/431693#M52975</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-06-16T13:36:58Z</dc:date>
    </item>
  </channel>
</rss>

