<?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: custom timeframe on cli with saved searches in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/custom-timeframe-on-cli-with-saved-searches/m-p/33834#M652</link>
    <description>&lt;P&gt;Is this still the case? I can't find any reference to SPL-33374, or any information regarding adjusting the time frame of a saved search.&lt;/P&gt;</description>
    <pubDate>Thu, 30 May 2013 15:38:23 GMT</pubDate>
    <dc:creator>solarboyz1</dc:creator>
    <dc:date>2013-05-30T15:38:23Z</dc:date>
    <item>
      <title>custom timeframe on cli with saved searches</title>
      <link>https://community.splunk.com/t5/Reporting/custom-timeframe-on-cli-with-saved-searches/m-p/33831#M649</link>
      <description>&lt;P&gt;How do you change the time period of a saved search when running from the CLI? &lt;/P&gt;

&lt;P&gt;Right now I have a saved search that runs over a 30min window by default. I normally will run it like this: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunk/bin/splunk search  "|savedsearch \"Top HTTP Response Codes\""
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Assuming I want to run that same saved search over a 1h window what can I do? I tried this but it did not seem to work: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunk/bin/splunk search  "|savedsearch \"Top HTTP Response Codes\"" -earliest_time "−50m" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I don't get any errors but it ran it over the same timeframe as before. &lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2010 03:40:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/custom-timeframe-on-cli-with-saved-searches/m-p/33831#M649</guid>
      <dc:creator>zscgeek</dc:creator>
      <dc:date>2010-08-20T03:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: custom timeframe on cli with saved searches</title>
      <link>https://community.splunk.com/t5/Reporting/custom-timeframe-on-cli-with-saved-searches/m-p/33832#M650</link>
      <description>&lt;P&gt;currently there is no way to override the time range over which the savedsearch is executed when ran from the CLI. Unfortunately there currently is no workaround for this issue.&lt;/P&gt;

&lt;P&gt;I have filed a bug, SPL-33374, which should be fixed in one of the next maintenance releases. &lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2010 23:24:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/custom-timeframe-on-cli-with-saved-searches/m-p/33832#M650</guid>
      <dc:creator>Ledion_Bitincka</dc:creator>
      <dc:date>2010-08-20T23:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: custom timeframe on cli with saved searches</title>
      <link>https://community.splunk.com/t5/Reporting/custom-timeframe-on-cli-with-saved-searches/m-p/33833#M651</link>
      <description>&lt;P&gt;Is this still the case ??  can you still not use a defined time frame on a saved search ? &lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2011 06:40:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/custom-timeframe-on-cli-with-saved-searches/m-p/33833#M651</guid>
      <dc:creator>SeanWilliams</dc:creator>
      <dc:date>2011-10-13T06:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: custom timeframe on cli with saved searches</title>
      <link>https://community.splunk.com/t5/Reporting/custom-timeframe-on-cli-with-saved-searches/m-p/33834#M652</link>
      <description>&lt;P&gt;Is this still the case? I can't find any reference to SPL-33374, or any information regarding adjusting the time frame of a saved search.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2013 15:38:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/custom-timeframe-on-cli-with-saved-searches/m-p/33834#M652</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2013-05-30T15:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: custom timeframe on cli with saved searches</title>
      <link>https://community.splunk.com/t5/Reporting/custom-timeframe-on-cli-with-saved-searches/m-p/33835#M653</link>
      <description>&lt;P&gt;This was fixed since 4.2 under SPL-35277.  &lt;/P&gt;

&lt;P&gt;Here is a sample CLI that will override the time period existing in a saved search to your custom one (eg. May 6, 2013 7:00am to May 18, 2013 11:00pm) on the Splunk search command line.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME/bin/splunk search "| savedsearch ChgTime" -auth admin:changeme -earliest_time "2013-05-06T07:00:00.000" -latest_time "2013-05-18T23:00:00.000" -time_format "%FT%T.%Q"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Jun 2013 18:52:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/custom-timeframe-on-cli-with-saved-searches/m-p/33835#M653</guid>
      <dc:creator>Ellen</dc:creator>
      <dc:date>2013-06-06T18:52:47Z</dc:date>
    </item>
  </channel>
</rss>

