<?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: &amp;quot;Last 15 min&amp;quot; - refers to event time or index time ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/quot-Last-15-min-quot-refers-to-event-time-or-index-time/m-p/175775#M50490</link>
    <description>&lt;P&gt;That refers to the event's time, namely the &lt;CODE&gt;_time&lt;/CODE&gt; field.&lt;/P&gt;

&lt;P&gt;All times in the UI are in the Splunk user's timezone, which defaults to the Search Head timezone.&lt;BR /&gt;
For indexing other timezones where the event doesn't specify the timezone you can set the timezone for a host in props.conf like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::some_host]
TZ = timezone
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/Admin/propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.3/Admin/propsconf&lt;/A&gt; for reference.&lt;/P&gt;

&lt;P&gt;If you want to search for the last 15 minutes by index time you can search over all time using this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_index_earliest=-15m _index_latest=now actual search goes here
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 08 Aug 2014 08:45:59 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2014-08-08T08:45:59Z</dc:date>
    <item>
      <title>"Last 15 min" - refers to event time or index time ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/quot-Last-15-min-quot-refers-to-event-time-or-index-time/m-p/175774#M50489</link>
      <description>&lt;P&gt;"Last 15 minutes" - Is this referring to index time (or) Events time ?&lt;/P&gt;

&lt;P&gt;I have hosts located in different timezones, and my Search head &amp;amp; indexers running in GMT TZ.&lt;BR /&gt;
So,when I do a search for say.,"Last 15 min" , this refers to GMT's timezones last 15 minute ?&lt;/P&gt;

&lt;P&gt;I am referring to this since, i might miss data in my search result as host's event time are in their native TZ format which will not be shown for my search&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2014 08:35:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/quot-Last-15-min-quot-refers-to-event-time-or-index-time/m-p/175774#M50489</guid>
      <dc:creator>splunker12er</dc:creator>
      <dc:date>2014-08-08T08:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: "Last 15 min" - refers to event time or index time ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/quot-Last-15-min-quot-refers-to-event-time-or-index-time/m-p/175775#M50490</link>
      <description>&lt;P&gt;That refers to the event's time, namely the &lt;CODE&gt;_time&lt;/CODE&gt; field.&lt;/P&gt;

&lt;P&gt;All times in the UI are in the Splunk user's timezone, which defaults to the Search Head timezone.&lt;BR /&gt;
For indexing other timezones where the event doesn't specify the timezone you can set the timezone for a host in props.conf like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::some_host]
TZ = timezone
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/Admin/propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.3/Admin/propsconf&lt;/A&gt; for reference.&lt;/P&gt;

&lt;P&gt;If you want to search for the last 15 minutes by index time you can search over all time using this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_index_earliest=-15m _index_latest=now actual search goes here
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Aug 2014 08:45:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/quot-Last-15-min-quot-refers-to-event-time-or-index-time/m-p/175775#M50490</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-08-08T08:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: "Last 15 min" - refers to event time or index time ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/quot-Last-15-min-quot-refers-to-event-time-or-index-time/m-p/175776#M50491</link>
      <description>&lt;P&gt;Martin has answered your question.&lt;/P&gt;

&lt;P&gt;Suppose if you need index time. Use _indextime field.&lt;/P&gt;

&lt;P&gt;Example:&lt;BR /&gt;
index= your_index earliest=-10m@m | dedup _indextime | eval indextime=strftime(_indextime,"%Y-%m-%d %H:%M:%S") | table indextime&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:17:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/quot-Last-15-min-quot-refers-to-event-time-or-index-time/m-p/175776#M50491</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2020-09-28T17:17:40Z</dc:date>
    </item>
  </channel>
</rss>

