<?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 How do you customize the time span for searches and reports? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-customize-the-time-span-for-searches-and-reports/m-p/456798#M166781</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I need to know if Splunk allows searching back a "specified" time instead of using only earliest and latest.&lt;/P&gt;

&lt;P&gt;I have data that I want to search from:&lt;/P&gt;

&lt;P&gt;Jan 1st, YYYY till March 31st, YYYY&lt;/P&gt;

&lt;P&gt;Likewise for the next 3 months and so on for the whole year. I know starttime and endtime are deprecated.&lt;/P&gt;

&lt;P&gt;Splunk Enterprise 6.6.6 and +&lt;/P&gt;

&lt;P&gt;This is to be done for scheduling a report, so I want to specify the times in the schedule report option.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Wed, 31 Oct 2018 20:04:31 GMT</pubDate>
    <dc:creator>mbasharat</dc:creator>
    <dc:date>2018-10-31T20:04:31Z</dc:date>
    <item>
      <title>How do you customize the time span for searches and reports?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-customize-the-time-span-for-searches-and-reports/m-p/456798#M166781</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I need to know if Splunk allows searching back a "specified" time instead of using only earliest and latest.&lt;/P&gt;

&lt;P&gt;I have data that I want to search from:&lt;/P&gt;

&lt;P&gt;Jan 1st, YYYY till March 31st, YYYY&lt;/P&gt;

&lt;P&gt;Likewise for the next 3 months and so on for the whole year. I know starttime and endtime are deprecated.&lt;/P&gt;

&lt;P&gt;Splunk Enterprise 6.6.6 and +&lt;/P&gt;

&lt;P&gt;This is to be done for scheduling a report, so I want to specify the times in the schedule report option.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 20:04:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-customize-the-time-span-for-searches-and-reports/m-p/456798#M166781</guid>
      <dc:creator>mbasharat</dc:creator>
      <dc:date>2018-10-31T20:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do you customize the time span for searches and reports?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-customize-the-time-span-for-searches-and-reports/m-p/456799#M166782</link>
      <description>&lt;P&gt;You can manually set time fields in your search like the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal earliest="10/31/2018:12:00:00" latest="10/31/2018:13:00:00"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The confusing thing is the format when hardcoding earliest/latest is  &lt;CODE&gt;%m/%d/%Y:%H:%M:%S&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.0/Search/Specifytimemodifiersinyoursearch"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.0/Search/Specifytimemodifiersinyoursearch&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 20:15:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-customize-the-time-span-for-searches-and-reports/m-p/456799#M166782</guid>
      <dc:creator>sir_lamneth</dc:creator>
      <dc:date>2018-10-31T20:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do you customize the time span for searches and reports?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-customize-the-time-span-for-searches-and-reports/m-p/456800#M166783</link>
      <description>&lt;P&gt;Hi sir_lamneth,&lt;/P&gt;

&lt;P&gt;This works in the actual search string. &lt;/P&gt;

&lt;P&gt;What about the scheduling report area?&lt;BR /&gt;
1) Report&amp;gt;Edit&amp;gt;Edit Search&amp;gt; Earliest &amp;amp; Latest time&lt;BR /&gt;
2) Report&amp;gt;Edit&amp;gt;Edit Schedule&amp;gt; Schedule Report&amp;gt;Time Range&amp;gt;Advanced&amp;gt;Earliest &amp;amp; Latest&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 20:58:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-customize-the-time-span-for-searches-and-reports/m-p/456800#M166783</guid>
      <dc:creator>mbasharat</dc:creator>
      <dc:date>2018-10-31T20:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do you customize the time span for searches and reports?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-customize-the-time-span-for-searches-and-reports/m-p/456801#M166784</link>
      <description>&lt;P&gt;I don't think that you can specify an absolute time via the web GUI for a Report.  If you put in an absolute time you probably are seeing an error like this when saving:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Cannot parse time argument 'dispatch.earliest_time': '10/31/2018:12:00:00'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;BUT, if you have command-line access to your Splunk instance than you can always manually edit the savedsearches.conf file that your Report is being saved in.  You'll want to set the &lt;CODE&gt;dispatch.earliest_time&lt;/CODE&gt; and &lt;CODE&gt;dispatch.latest_time&lt;/CODE&gt; values, and make sure the format of your absolute time matches the format defined by &lt;CODE&gt;dispatch.time_format&lt;/CODE&gt;.  More info here:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Savedsearchesconf"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/Savedsearchesconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 21:26:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-customize-the-time-span-for-searches-and-reports/m-p/456801#M166784</guid>
      <dc:creator>sir_lamneth</dc:creator>
      <dc:date>2018-10-31T21:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do you customize the time span for searches and reports?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-customize-the-time-span-for-searches-and-reports/m-p/456802#M166785</link>
      <description>&lt;P&gt;This is exactly the error I am seeing. I think I can live with the first solution you provided because that takes priority over the selection. Thanks again!!! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 22:42:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-customize-the-time-span-for-searches-and-reports/m-p/456802#M166785</guid>
      <dc:creator>mbasharat</dc:creator>
      <dc:date>2018-10-31T22:42:17Z</dc:date>
    </item>
  </channel>
</rss>

