<?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 span and bin in timechart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/using-span-and-bin-in-timechart/m-p/15034#M1738</link>
    <description>&lt;P&gt;Short answer - no you cannot have both,  and if you do, the 'span' will win. &lt;/P&gt;

&lt;P&gt;The longer answer is that technically you can 'bin' other fields besides time.   In the timechart below, im setting a span for the _time, but note the bins=3.  That is actually telling timechart to bin the &lt;STRONG&gt;date_hour&lt;/STRONG&gt; values into numeric ranges. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=_internal source=*metrics.log group=per_index_thruput series!=_internal | timechart span=1h sum(kb) by date_hour bins=3&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Jun 2010 07:33:45 GMT</pubDate>
    <dc:creator>sideview</dc:creator>
    <dc:date>2010-06-08T07:33:45Z</dc:date>
    <item>
      <title>using span and bin in timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/using-span-and-bin-in-timechart/m-p/15032#M1736</link>
      <description>&lt;P&gt;Can you have both span=x and bins=y in timechart? If both are specified, which one wins?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2010 05:01:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/using-span-and-bin-in-timechart/m-p/15032#M1736</guid>
      <dc:creator>kbains</dc:creator>
      <dc:date>2010-06-08T05:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: using span and bin in timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/using-span-and-bin-in-timechart/m-p/15033#M1737</link>
      <description>&lt;P&gt;It should flag it as an error/warning, but currently it is not.  span will win.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2010 07:29:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/using-span-and-bin-in-timechart/m-p/15033#M1737</guid>
      <dc:creator>steveyz</dc:creator>
      <dc:date>2010-06-08T07:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: using span and bin in timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/using-span-and-bin-in-timechart/m-p/15034#M1738</link>
      <description>&lt;P&gt;Short answer - no you cannot have both,  and if you do, the 'span' will win. &lt;/P&gt;

&lt;P&gt;The longer answer is that technically you can 'bin' other fields besides time.   In the timechart below, im setting a span for the _time, but note the bins=3.  That is actually telling timechart to bin the &lt;STRONG&gt;date_hour&lt;/STRONG&gt; values into numeric ranges. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=_internal source=*metrics.log group=per_index_thruput series!=_internal | timechart span=1h sum(kb) by date_hour bins=3&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2010 07:33:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/using-span-and-bin-in-timechart/m-p/15034#M1738</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2010-06-08T07:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: using span and bin in timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/using-span-and-bin-in-timechart/m-p/15035#M1739</link>
      <description>&lt;P&gt;You know what's awesome when you bin fields other than time? logarithmic spans: `index=weblogs | bin responseTime span=1.2log1.6 | stats count by responseTime&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2010 09:51:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/using-span-and-bin-in-timechart/m-p/15035#M1739</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-06-08T09:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: using span and bin in timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/using-span-and-bin-in-timechart/m-p/15036#M1740</link>
      <description>&lt;P&gt;fine. outdo me and get the last word. my mom still thinks im cool.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2010 12:24:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/using-span-and-bin-in-timechart/m-p/15036#M1740</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2010-06-08T12:24:06Z</dc:date>
    </item>
  </channel>
</rss>

