<?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: using bin command and span in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/using-bin-command-and-span/m-p/333158#M99081</link>
    <description>&lt;P&gt;Hi @mayurr98,&lt;/P&gt;

&lt;P&gt;I'm sorry but I did not understand. How would I check if there's no overlap? &lt;/P&gt;</description>
    <pubDate>Mon, 11 Dec 2017 10:12:52 GMT</pubDate>
    <dc:creator>jvmerilla</dc:creator>
    <dc:date>2017-12-11T10:12:52Z</dc:date>
    <item>
      <title>using bin command and span</title>
      <link>https://community.splunk.com/t5/Splunk-Search/using-bin-command-and-span/m-p/333156#M99079</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;

&lt;P&gt;I have this query:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index="sample_data" sourcetype="management_sampledata.csv"  | fields* | search Status!=Closed  "Ticket Type"="*" Priority="*"&lt;BR /&gt;
| rename "Reported Date" AS Reported_Date&lt;BR /&gt;
| eval reported_date = strptime(Reported_Date, "%m/%d/%y %H:%M")&lt;BR /&gt;
| eval date_today = now()&lt;BR /&gt;
| eval duration = round((date_today-reported_date)/86400)&lt;BR /&gt;
| bin duration span=30&lt;BR /&gt;
| chart count as "Open Tickets" by "Support_ Assigned Group", duration&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;and this is what it shows:&lt;BR /&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/3983i6A09FE5CDF3542C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;My question is why it returns 180-210 and 210-240? Is it possible that there will be overlaps, like if there's a data with the value of 210, then it will be in both 180-210 and 210-240?&lt;/P&gt;

&lt;P&gt;Also is there a way where I can my make it like 180-210, 211-240?&lt;/P&gt;

&lt;P&gt;I hope someone can help me with this.&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 06:21:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/using-bin-command-and-span/m-p/333156#M99079</guid>
      <dc:creator>jvmerilla</dc:creator>
      <dc:date>2017-12-11T06:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: using bin command and span</title>
      <link>https://community.splunk.com/t5/Splunk-Search/using-bin-command-and-span/m-p/333157#M99080</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/65460"&gt;@jvmerilla&lt;/a&gt;&lt;/P&gt;

&lt;P&gt;I have tested this query using test data. There are no overlaps. Your query is perfectly fine.&lt;BR /&gt;
here the output shows 190-210 which actually means 190-209. So There is no overlap&lt;BR /&gt;
Also if you have fix columns there you can sort of rename columns by writing | rename 190-210 as 190-209 ..&lt;/P&gt;

&lt;P&gt;PFA supporting proofs that there are no overlaps. look for 0-20(total_count)  and &lt;STRONG&gt;add&lt;/STRONG&gt; all 0-19(count) you will get 457.&lt;BR /&gt;
date_minute count   sum(count)&lt;BR /&gt;
0   5   5&lt;BR /&gt;
1   6   11&lt;BR /&gt;
2   2   13&lt;BR /&gt;
3   24  37&lt;BR /&gt;
4   6   43&lt;BR /&gt;
5   9   52&lt;BR /&gt;
6   68  120&lt;BR /&gt;
7   3   123&lt;BR /&gt;
8   1   124&lt;BR /&gt;
9   13  137&lt;BR /&gt;
10  26  163&lt;BR /&gt;
11  57  220&lt;BR /&gt;
12  21  241&lt;BR /&gt;
13  37  278&lt;BR /&gt;
14  32  310&lt;BR /&gt;
15  77  387&lt;BR /&gt;
16  24  411&lt;BR /&gt;
17  18  429&lt;BR /&gt;
18  15  444&lt;BR /&gt;
19  13  457&lt;/P&gt;

&lt;P&gt;I hope this helps. &lt;/P&gt;

&lt;P&gt;alt text&lt;BR /&gt;
&lt;IMG src="https://community.splunk.com/storage/temp/218995-test2.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:10:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/using-bin-command-and-span/m-p/333157#M99080</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2020-09-29T17:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: using bin command and span</title>
      <link>https://community.splunk.com/t5/Splunk-Search/using-bin-command-and-span/m-p/333158#M99081</link>
      <description>&lt;P&gt;Hi @mayurr98,&lt;/P&gt;

&lt;P&gt;I'm sorry but I did not understand. How would I check if there's no overlap? &lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 10:12:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/using-bin-command-and-span/m-p/333158#M99081</guid>
      <dc:creator>jvmerilla</dc:creator>
      <dc:date>2017-12-11T10:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: using bin command and span</title>
      <link>https://community.splunk.com/t5/Splunk-Search/using-bin-command-and-span/m-p/333159#M99082</link>
      <description>&lt;P&gt;you can look at the count. They are matching. Even you can check this on your data. for 0-19 the count is 457.&lt;BR /&gt;
so basically even though it is written 0-20 it is basically a sum of 0-19&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 11:31:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/using-bin-command-and-span/m-p/333159#M99082</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2017-12-11T11:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: using bin command and span</title>
      <link>https://community.splunk.com/t5/Splunk-Search/using-bin-command-and-span/m-p/333160#M99083</link>
      <description>&lt;P&gt;Hi @mayurr98,&lt;/P&gt;

&lt;P&gt;It took me a while to figure out what you mean but I get it now. And I already check the data using &lt;CODE&gt;stats count(eval)&lt;/CODE&gt;, and you're right, there's no overlapping. The 180-210 were actually the sum of 180-209.&lt;/P&gt;

&lt;P&gt;Thank you for your help. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 08:21:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/using-bin-command-and-span/m-p/333160#M99083</guid>
      <dc:creator>jvmerilla</dc:creator>
      <dc:date>2017-12-12T08:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: using bin command and span</title>
      <link>https://community.splunk.com/t5/Splunk-Search/using-bin-command-and-span/m-p/333161#M99084</link>
      <description>&lt;P&gt;eto yung approach ko dito men&lt;BR /&gt;
    index="excercises" Status!=Closed&lt;BR /&gt;
    | eval rd = strptime(ReportedDate, "%m/%d/%Y %H:%M")&lt;BR /&gt;
    | eventstats max(rd) as MaxDate&lt;BR /&gt;
    | eval age = floor((MaxDate - rd) / 86400)&lt;BR /&gt;
    | bin age span=30&lt;BR /&gt;
    | chart count as "Open Tickets" by SupportAssignedGroup, age&lt;BR /&gt;
    | rename SupportAssignedGroup as "Support Assigned Group"&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 09:53:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/using-bin-command-and-span/m-p/333161#M99084</guid>
      <dc:creator>morethanyell</dc:creator>
      <dc:date>2018-06-20T09:53:33Z</dc:date>
    </item>
  </channel>
</rss>

