<?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: Passing span as argument to timechart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Passing-span-as-argument-to-timechart/m-p/65151#M16134</link>
    <description>&lt;P&gt;I have hard coded it for now. I cannot use fixed bins as my time ranges vary greatly. They are Last 60 minutes, Last 24 hours and Last 7 days.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Mar 2013 08:43:08 GMT</pubDate>
    <dc:creator>keerthana_k</dc:creator>
    <dc:date>2013-03-19T08:43:08Z</dc:date>
    <item>
      <title>Passing span as argument to timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Passing-span-as-argument-to-timechart/m-p/65149#M16132</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
I have a requirement wherein I have to display 3 different series in a single chart. I am using an append query to fetch all the results and manipulating the search job in my dashboard.xml. I also have a dropdown at the top to select time ranges. Based on the time ranges selected, my timechart's span should also vary ex. for last 60 minutes, the span should be 5 minutes and so on. When I pass the span value dynamically, I am getting an error saying "Invalid Option". Please tell me how this can be done.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2013 12:52:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Passing-span-as-argument-to-timechart/m-p/65149#M16132</guid>
      <dc:creator>keerthana_k</dc:creator>
      <dc:date>2013-03-18T12:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Passing span as argument to timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Passing-span-as-argument-to-timechart/m-p/65150#M16133</link>
      <description>&lt;P&gt;How are you passing the span now?&lt;/P&gt;

&lt;P&gt;Have you considered specifying a fixed maximum number of bins instead?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2013 13:02:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Passing-span-as-argument-to-timechart/m-p/65150#M16133</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-03-18T13:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Passing span as argument to timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Passing-span-as-argument-to-timechart/m-p/65151#M16134</link>
      <description>&lt;P&gt;I have hard coded it for now. I cannot use fixed bins as my time ranges vary greatly. They are Last 60 minutes, Last 24 hours and Last 7 days.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2013 08:43:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Passing-span-as-argument-to-timechart/m-p/65151#M16134</guid>
      <dc:creator>keerthana_k</dc:creator>
      <dc:date>2013-03-19T08:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Passing span as argument to timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Passing-span-as-argument-to-timechart/m-p/65152#M16135</link>
      <description>&lt;P&gt;In that case you can hack yourself to dynamic spans like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal | timechart count [stats count | addinfo | eval range = info_max_time - info_min_time | eval span = "span=".case(range &amp;lt; 4000, "5m", range &amp;lt; 90000, "1h", 1=1, "12h") | return $span]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The subsearch probably is best put into a macro.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2013 22:34:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Passing-span-as-argument-to-timechart/m-p/65152#M16135</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-03-19T22:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: Passing span as argument to timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Passing-span-as-argument-to-timechart/m-p/65153#M16136</link>
      <description>&lt;P&gt;I tried this but I keep getting the error: SearchException: This search cannot be parsed when parse_only is set to true. Any help with this?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2013 09:42:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Passing-span-as-argument-to-timechart/m-p/65153#M16136</guid>
      <dc:creator>keerthana_k</dc:creator>
      <dc:date>2013-03-25T09:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Passing span as argument to timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Passing-span-as-argument-to-timechart/m-p/65154#M16137</link>
      <description>&lt;P&gt;Works great!&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jan 2015 23:52:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Passing-span-as-argument-to-timechart/m-p/65154#M16137</guid>
      <dc:creator>helge</dc:creator>
      <dc:date>2015-01-19T23:52:06Z</dc:date>
    </item>
  </channel>
</rss>

