<?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 USe time range in Search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/USe-time-range-in-Search/m-p/195953#M56503</link>
    <description>&lt;P&gt;Hi - i have used time range in my adv-xml number of time using earlies and latest and defining range&lt;BR /&gt;
but one of the module i am using is&lt;/P&gt;

&lt;P&gt;&lt;MODULE name="SingleValue"&gt;&lt;BR /&gt;&lt;BR /&gt;
            max&lt;BR /&gt;
            range&lt;BR /&gt;&lt;BR /&gt;
            &lt;OBJECT&gt;&lt;PARAM name="beforeLabel" /&gt;AVAILABLITY&lt;BR /&gt;
            &lt;PARAM name="afterLabel" /&gt;%&lt;BR /&gt;
            &lt;PARAM name="linkFields" /&gt;result&lt;BR /&gt;
            &lt;PARAM name="linkSearch" /&gt;source="XYZ |  search name != null | stats avg(avail) by name &lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;param name="linkView"&amp;gt;Template_Table&amp;lt;/param&amp;gt;
    &amp;lt;/module&amp;gt;   
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to use linksearch for a defined time - but do not know where to define the time range for example i want to call linksearch/search only for last 4 hrs or last 24 hrs&lt;BR /&gt;
I tried following but do not work&lt;/P&gt;

&lt;P&gt;&lt;OBJECT&gt;&lt;PARAM name="linkSearch" /&gt;source="XYZ |  search name != null | stats avg(avail) by name | earliest=-4h latest=-1h &lt;/OBJECT&gt;&lt;/P&gt;

&lt;P&gt;What should be right syntax to call time based search in link search&lt;/P&gt;</description>
    <pubDate>Thu, 20 Mar 2014 05:41:56 GMT</pubDate>
    <dc:creator>nikhilmehra79</dc:creator>
    <dc:date>2014-03-20T05:41:56Z</dc:date>
    <item>
      <title>USe time range in Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/USe-time-range-in-Search/m-p/195953#M56503</link>
      <description>&lt;P&gt;Hi - i have used time range in my adv-xml number of time using earlies and latest and defining range&lt;BR /&gt;
but one of the module i am using is&lt;/P&gt;

&lt;P&gt;&lt;MODULE name="SingleValue"&gt;&lt;BR /&gt;&lt;BR /&gt;
            max&lt;BR /&gt;
            range&lt;BR /&gt;&lt;BR /&gt;
            &lt;OBJECT&gt;&lt;PARAM name="beforeLabel" /&gt;AVAILABLITY&lt;BR /&gt;
            &lt;PARAM name="afterLabel" /&gt;%&lt;BR /&gt;
            &lt;PARAM name="linkFields" /&gt;result&lt;BR /&gt;
            &lt;PARAM name="linkSearch" /&gt;source="XYZ |  search name != null | stats avg(avail) by name &lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;param name="linkView"&amp;gt;Template_Table&amp;lt;/param&amp;gt;
    &amp;lt;/module&amp;gt;   
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to use linksearch for a defined time - but do not know where to define the time range for example i want to call linksearch/search only for last 4 hrs or last 24 hrs&lt;BR /&gt;
I tried following but do not work&lt;/P&gt;

&lt;P&gt;&lt;OBJECT&gt;&lt;PARAM name="linkSearch" /&gt;source="XYZ |  search name != null | stats avg(avail) by name | earliest=-4h latest=-1h &lt;/OBJECT&gt;&lt;/P&gt;

&lt;P&gt;What should be right syntax to call time based search in link search&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2014 05:41:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/USe-time-range-in-Search/m-p/195953#M56503</guid>
      <dc:creator>nikhilmehra79</dc:creator>
      <dc:date>2014-03-20T05:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: USe time range in Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/USe-time-range-in-Search/m-p/195954#M56504</link>
      <description>&lt;P&gt;I believe the &lt;CODE&gt;linkSearch&lt;/CODE&gt; parameter should be a search query as you would enter it in the search box, which means the time range would not be downstream.  Try &lt;CODE&gt;'&amp;lt;param name="linkSearch"&amp;gt;source="XYZ" earliest=-4h latest=-1h | search name != null | stats avg(avail) by name&amp;lt;/param&amp;gt;'&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2014 12:49:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/USe-time-range-in-Search/m-p/195954#M56504</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-03-20T12:49:53Z</dc:date>
    </item>
  </channel>
</rss>

