<?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: what is the format to use for a date in a search / dashboard in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/what-is-the-format-to-use-for-a-date-in-a-search-dashboard/m-p/50002#M12013</link>
    <description>&lt;P&gt;As stated by others, the default timestamp format is "%m/%d/%Y:%H:%M:%S", but you can change that!&lt;/P&gt;

&lt;P&gt;With the current Splunk 6.4 you specify a different formatter using this syntax:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... timeformat="%Y-%m-%d %H:%M:%S" latest="2016-9-22 12:56:11"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Latest documentation for search time modifiers can be found  here:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/SearchTimeModifiers"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/SearchTimeModifiers&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Sep 2016 18:12:36 GMT</pubDate>
    <dc:creator>mIliofotou_splu</dc:creator>
    <dc:date>2016-09-05T18:12:36Z</dc:date>
    <item>
      <title>what is the format to use for a date in a search / dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/what-is-the-format-to-use-for-a-date-in-a-search-dashboard/m-p/49995#M12006</link>
      <description>&lt;P&gt;I tried to specify an exact date for a search time range, but couldn't make it work&lt;/P&gt;

&lt;P&gt;relative and epoch date works : earliest=-5d@d or earliest=1352750400&lt;/P&gt;

&lt;P&gt;but those fails &lt;BR /&gt;
earliest="2012/11/12 20:00:00" or  "2012-11-12 8:00:00 pm" or "12/11/2012 20:00:00.000"&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2012 20:51:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/what-is-the-format-to-use-for-a-date-in-a-search-dashboard/m-p/49995#M12006</guid>
      <dc:creator>mataharry</dc:creator>
      <dc:date>2012-11-29T20:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: what is the format to use for a date in a search / dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/what-is-the-format-to-use-for-a-date-in-a-search-dashboard/m-p/49996#M12007</link>
      <description>&lt;P&gt;Yup, here is a list of all time modifiers;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/4.2.3/SearchReference/SearchTimeModifiers"&gt;http://docs.splunk.com/Documentation/Splunk/4.2.3/SearchReference/SearchTimeModifiers&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2012 20:53:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/what-is-the-format-to-use-for-a-date-in-a-search-dashboard/m-p/49996#M12007</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2012-11-29T20:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: what is the format to use for a date in a search / dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/what-is-the-format-to-use-for-a-date-in-a-search-dashboard/m-p/49997#M12008</link>
      <description>&lt;P&gt;the default time format is &lt;CODE&gt;%m/%d/%Y:%H:%M:%S&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;example : from November 12th to 15th at 8pm &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;earliest="12/11/2012:20:00:00" latest="15/11/2012:20:00:00"&lt;/CODE&gt;&lt;BR /&gt;
or in a dashboard&lt;BR /&gt;
&lt;PRE&gt;&amp;lt; earliestTime &amp;gt;12/11/2012:20:00:00&amp;lt; /earliestTime &amp;gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;it is explained here in timeformat : &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.4/SearchReference/SearchTimeModifiers"&gt;http://docs.splunk.com/Documentation/Splunk/4.3.4/SearchReference/SearchTimeModifiers&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2012 20:54:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/what-is-the-format-to-use-for-a-date-in-a-search-dashboard/m-p/49997#M12008</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-11-29T20:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: what is the format to use for a date in a search / dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/what-is-the-format-to-use-for-a-date-in-a-search-dashboard/m-p/49998#M12009</link>
      <description>&lt;P&gt;The stated default time format and the example given do not match up.&lt;BR /&gt;
The default time format shown is month / day / year.  But the example shows day/month/year.&lt;/P&gt;

&lt;P&gt;The same error occurs in the example given in the docs located at &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.2/SearchReference/SearchTimeModifiers"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.2/SearchReference/SearchTimeModifiers&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;"the default time format is %m/%d/%Y:%H:%M:%S&lt;BR /&gt;
example : from November 12th to 15th at 8pm &lt;BR /&gt;
earliest="12/11/2012:20:00:00" latest="15/11/2012:20:00:00"&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2014 03:49:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/what-is-the-format-to-use-for-a-date-in-a-search-dashboard/m-p/49998#M12009</guid>
      <dc:creator>greathera</dc:creator>
      <dc:date>2014-07-10T03:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: what is the format to use for a date in a search / dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/what-is-the-format-to-use-for-a-date-in-a-search-dashboard/m-p/49999#M12010</link>
      <description>&lt;P&gt;Took me a while to notice your example had the day and month the wrong way round, should be: earliest="11/12/2012:20:00:00" latest="11/12/2012:20:00:00"&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2014 15:32:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/what-is-the-format-to-use-for-a-date-in-a-search-dashboard/m-p/49999#M12010</guid>
      <dc:creator>kyleharrison</dc:creator>
      <dc:date>2014-08-01T15:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: what is the format to use for a date in a search / dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/what-is-the-format-to-use-for-a-date-in-a-search-dashboard/m-p/50000#M12011</link>
      <description>&lt;P&gt;Yeah, please fix your response to clarify. You say the format is %m/%d/%Y.. (American format) but then you set earliest and latest to show the day first %d/%m/%Y.. (International format).&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2015 14:34:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/what-is-the-format-to-use-for-a-date-in-a-search-dashboard/m-p/50000#M12011</guid>
      <dc:creator>aculveruwo</dc:creator>
      <dc:date>2015-07-09T14:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: what is the format to use for a date in a search / dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/what-is-the-format-to-use-for-a-date-in-a-search-dashboard/m-p/50001#M12012</link>
      <description>&lt;P&gt;What is if i need to change to 4 hours&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 20:51:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/what-is-the-format-to-use-for-a-date-in-a-search-dashboard/m-p/50001#M12012</guid>
      <dc:creator>Rocky31</dc:creator>
      <dc:date>2016-01-13T20:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: what is the format to use for a date in a search / dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/what-is-the-format-to-use-for-a-date-in-a-search-dashboard/m-p/50002#M12013</link>
      <description>&lt;P&gt;As stated by others, the default timestamp format is "%m/%d/%Y:%H:%M:%S", but you can change that!&lt;/P&gt;

&lt;P&gt;With the current Splunk 6.4 you specify a different formatter using this syntax:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... timeformat="%Y-%m-%d %H:%M:%S" latest="2016-9-22 12:56:11"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Latest documentation for search time modifiers can be found  here:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/SearchTimeModifiers"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/SearchTimeModifiers&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2016 18:12:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/what-is-the-format-to-use-for-a-date-in-a-search-dashboard/m-p/50002#M12013</guid>
      <dc:creator>mIliofotou_splu</dc:creator>
      <dc:date>2016-09-05T18:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: what is the format to use for a date in a search / dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/what-is-the-format-to-use-for-a-date-in-a-search-dashboard/m-p/50003#M12014</link>
      <description>&lt;P&gt;I downvoted this post because yes, since the example and explanation feature conflicting data, this response is impossible to tell which is correct.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 21:14:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/what-is-the-format-to-use-for-a-date-in-a-search-dashboard/m-p/50003#M12014</guid>
      <dc:creator>rnotch</dc:creator>
      <dc:date>2017-12-01T21:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: what is the format to use for a date in a search / dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/what-is-the-format-to-use-for-a-date-in-a-search-dashboard/m-p/50004#M12015</link>
      <description>&lt;P&gt;I downvoted this post because day/month is opposite&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2018 20:13:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/what-is-the-format-to-use-for-a-date-in-a-search-dashboard/m-p/50004#M12015</guid>
      <dc:creator>daniel_augustyn</dc:creator>
      <dc:date>2018-04-19T20:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: what is the format to use for a date in a search / dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/what-is-the-format-to-use-for-a-date-in-a-search-dashboard/m-p/50005#M12016</link>
      <description>&lt;P&gt;Can Splunk start doing in their examples with a day that is something like 20th-30th so it won't be that much of the confusion here? I love examples with 11/12/2012 which could be either day/month or month/day. &lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2018 20:14:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/what-is-the-format-to-use-for-a-date-in-a-search-dashboard/m-p/50005#M12016</guid>
      <dc:creator>daniel_augustyn</dc:creator>
      <dc:date>2018-04-19T20:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: what is the format to use for a date in a search / dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/what-is-the-format-to-use-for-a-date-in-a-search-dashboard/m-p/560206#M159204</link>
      <description>&lt;P&gt;Thread necromancy I know, but this answer still pops up on the first page of Google results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are trying to set the earliest/latest time in SimpleXML, you need to use either a relative time or Unix epoch time - &lt;STRONG&gt;the date format as described in the original solution does not work &lt;/STRONG&gt;afaik. This is documented here:&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/latest/Viz/PanelreferenceforSimplifiedXML#search" target="_blank"&gt;https://docs.splunk.com/Documentation/SplunkCloud/latest/Viz/PanelreferenceforSimplifiedXML#search&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you are trying to set earliest/latest using SPL, I think yannk's answer is still correct and the reference on this page is correct:&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/latest/Search/Specifytimemodifiersinyoursearch#Specify_relative_time_ranges_in_your_search" target="_blank"&gt;https://docs.splunk.com/Documentation/SplunkCloud/latest/Search/Specifytimemodifiersinyoursearch#Specify_relative_time_ranges_in_your_search&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 13:36:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/what-is-the-format-to-use-for-a-date-in-a-search-dashboard/m-p/560206#M159204</guid>
      <dc:creator>thellmann</dc:creator>
      <dc:date>2021-07-20T13:36:39Z</dc:date>
    </item>
  </channel>
</rss>

