<?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 How to use the bin command? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-bin-command/m-p/176871#M186726</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;

&lt;P&gt;I have a field which takes values from 1 to 100. So I want use the bin command in such a way so the output should be like 1-10, 11-20, 21-30, 31-40 ..............99-100&lt;/P&gt;

&lt;P&gt;Output:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1-10            13
11-20            9
21-30           21
31-40            5
................................
................................
................................

91-100           3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please suggest &lt;/P&gt;

&lt;P&gt;Thanks in advance,&lt;BR /&gt;
Amarish&lt;/P&gt;</description>
    <pubDate>Tue, 18 Aug 2015 05:59:08 GMT</pubDate>
    <dc:creator>amarish_vlabs</dc:creator>
    <dc:date>2015-08-18T05:59:08Z</dc:date>
    <item>
      <title>How to use the bin command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-bin-command/m-p/176871#M186726</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;

&lt;P&gt;I have a field which takes values from 1 to 100. So I want use the bin command in such a way so the output should be like 1-10, 11-20, 21-30, 31-40 ..............99-100&lt;/P&gt;

&lt;P&gt;Output:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1-10            13
11-20            9
21-30           21
31-40            5
................................
................................
................................

91-100           3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please suggest &lt;/P&gt;

&lt;P&gt;Thanks in advance,&lt;BR /&gt;
Amarish&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2015 05:59:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-bin-command/m-p/176871#M186726</guid>
      <dc:creator>amarish_vlabs</dc:creator>
      <dc:date>2015-08-18T05:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the bin command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-bin-command/m-p/176872#M186727</link>
      <description>&lt;P&gt;Use this:&lt;BR /&gt;
    | bin field_name bins=10 | stats count by field_name&lt;/P&gt;

&lt;P&gt;More information on bins from docs &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.4/SearchReference/bin" target="_blank"&gt;here&lt;/A&gt; (check the Example 2 in docs).&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:01:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-bin-command/m-p/176872#M186727</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2020-09-29T07:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the bin command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-bin-command/m-p/176873#M186728</link>
      <description>&lt;P&gt;Thank you so much for your reply.  I have used your query and got the output like  0-10  , 10-20, 20-30.....etc.  But I want to see the out put like  0-10 , 11-20, 21-30 , 31-40 .......etc. Please let me know Is this possible ?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Amarish&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2015 01:28:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-bin-command/m-p/176873#M186728</guid>
      <dc:creator>amarish_vlabs</dc:creator>
      <dc:date>2015-08-19T01:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the bin command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-bin-command/m-p/176874#M186729</link>
      <description>&lt;P&gt;Actually, using &lt;CODE&gt;bins=10&lt;/CODE&gt; will produce ten bins, so if your range is from 0 to 1000, your first bin will be 0-100, the next 100-200 and so on - use &lt;CODE&gt;span=10&lt;/CODE&gt; to have bins with a length of 10 each, no matter your range.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2015 13:20:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-bin-command/m-p/176874#M186729</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2015-08-19T13:20:09Z</dc:date>
    </item>
  </channel>
</rss>

