<?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: How to dynamically change the span parameter for a timechart? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-dynamically-change-the-span-parameter-for-a-timechart/m-p/165411#M46999</link>
    <description>&lt;P&gt;I tried the following and getting unexpected results.&lt;/P&gt;

&lt;P&gt;Here is my query:&lt;BR /&gt;
searchquery | timechart bins=10 avg(responseTime)&lt;/P&gt;

&lt;P&gt;I expect the x-axis to be divided into 10 bins/sections. In other words, if i use a bar/column chart for visualization, i expect 10 bars. However, I see only 3 bars. &lt;BR /&gt;
Is my understanding/expectation incorrect?&lt;/P&gt;</description>
    <pubDate>Thu, 02 Apr 2015 04:26:26 GMT</pubDate>
    <dc:creator>vdevarayan</dc:creator>
    <dc:date>2015-04-02T04:26:26Z</dc:date>
    <item>
      <title>How to dynamically change the span parameter for a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-dynamically-change-the-span-parameter-for-a-timechart/m-p/165408#M46996</link>
      <description>&lt;P&gt;I have a dashboard panel that will display all events (for a given search)&lt;BR /&gt;
The result set may contain 100 or 10,000 events (assume one event for every second).&lt;BR /&gt;
If it is just 100, i would like to have span=1s.&lt;BR /&gt;
If it is 1,000, then i would like to have span=1m&lt;/P&gt;

&lt;P&gt;How to dynamically change the span parameter in this scenario?&lt;BR /&gt;
Basically, how to find out the best timespan so that it fits inside the 1000 event limit imposed by Splunk to avoid truncation happening?&lt;/P&gt;

&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2015 10:38:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-dynamically-change-the-span-parameter-for-a-timechart/m-p/165408#M46996</guid>
      <dc:creator>vdevarayan</dc:creator>
      <dc:date>2015-03-06T10:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically change the span parameter for a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-dynamically-change-the-span-parameter-for-a-timechart/m-p/165409#M46997</link>
      <description>&lt;P&gt;One option is to use &lt;CODE&gt;bins=1000&lt;/CODE&gt;, which will divide the timechart into up to 1000 buckets. See &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/SearchReference/Timechart#Optional_arguments"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.0/SearchReference/Timechart#Optional_arguments&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Is this what you are looking for?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2015 11:43:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-dynamically-change-the-span-parameter-for-a-timechart/m-p/165409#M46997</guid>
      <dc:creator>laserval</dc:creator>
      <dc:date>2015-03-06T11:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically change the span parameter for a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-dynamically-change-the-span-parameter-for-a-timechart/m-p/165410#M46998</link>
      <description>&lt;P&gt;I agree with you.&lt;/P&gt;

&lt;P&gt;Bins is the only argument that I can see for the timechart command that will be ideal for your situation.&lt;/P&gt;

&lt;P&gt;35 should be good if you require about a month span.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2015 12:08:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-dynamically-change-the-span-parameter-for-a-timechart/m-p/165410#M46998</guid>
      <dc:creator>markthompson</dc:creator>
      <dc:date>2015-03-06T12:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically change the span parameter for a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-dynamically-change-the-span-parameter-for-a-timechart/m-p/165411#M46999</link>
      <description>&lt;P&gt;I tried the following and getting unexpected results.&lt;/P&gt;

&lt;P&gt;Here is my query:&lt;BR /&gt;
searchquery | timechart bins=10 avg(responseTime)&lt;/P&gt;

&lt;P&gt;I expect the x-axis to be divided into 10 bins/sections. In other words, if i use a bar/column chart for visualization, i expect 10 bars. However, I see only 3 bars. &lt;BR /&gt;
Is my understanding/expectation incorrect?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2015 04:26:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-dynamically-change-the-span-parameter-for-a-timechart/m-p/165411#M46999</guid>
      <dc:creator>vdevarayan</dc:creator>
      <dc:date>2015-04-02T04:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically change the span parameter for a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-dynamically-change-the-span-parameter-for-a-timechart/m-p/165412#M47000</link>
      <description>&lt;P&gt;I downvoted this post because incorrect answer, bins option just define a maximun number of bins, no the target number.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2015 12:52:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-dynamically-change-the-span-parameter-for-a-timechart/m-p/165412#M47000</guid>
      <dc:creator>gfuente</dc:creator>
      <dc:date>2015-11-13T12:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically change the span parameter for a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-dynamically-change-the-span-parameter-for-a-timechart/m-p/165413#M47001</link>
      <description>&lt;P&gt;I valid solution is:&lt;/P&gt;

&lt;P&gt;index=main   | timechart &lt;STRONG&gt;[ search index=_internal | head 1 | addinfo | eval span=ceil((info_max_time-info_min_time)/1000)."s" | return span]&lt;/STRONG&gt; count  &lt;/P&gt;

&lt;P&gt;The subsearch calculates dinamically the maximum period in sec, to get 1000 bins&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:54:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-dynamically-change-the-span-parameter-for-a-timechart/m-p/165413#M47001</guid>
      <dc:creator>gfuente</dc:creator>
      <dc:date>2020-09-29T07:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically change the span parameter for a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-dynamically-change-the-span-parameter-for-a-timechart/m-p/165414#M47002</link>
      <description>&lt;P&gt;I downvoted this post because sadly this does not work as expected.  bins=1000 means that splunk will determine some arbitrary number of bins that is less than 1000.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 15:47:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-dynamically-change-the-span-parameter-for-a-timechart/m-p/165414#M47002</guid>
      <dc:creator>benton</dc:creator>
      <dc:date>2017-03-31T15:47:27Z</dc:date>
    </item>
  </channel>
</rss>

