<?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: Latest/Earliest Timeformat using another timezone other than the default in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Latest-Earliest-Timeformat-using-another-timezone-other-than-the/m-p/127882#M34710</link>
    <description>&lt;P&gt;This should work!  Thank you very much!&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jan 2014 14:51:10 GMT</pubDate>
    <dc:creator>benspader</dc:creator>
    <dc:date>2014-01-28T14:51:10Z</dc:date>
    <item>
      <title>Latest/Earliest Timeformat using another timezone other than the default</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Latest-Earliest-Timeformat-using-another-timezone-other-than-the/m-p/127880#M34708</link>
      <description>&lt;P&gt;I need to create a search that uses the UTC timezone not my default which is Central time (UTC - 6h).  &lt;/P&gt;

&lt;P&gt;Basically my search must search from NOW to the earliest of 6pm yesterday, but the problem I have is when it is past 6pm in the same day this time modifier (earliest=@d-6h latest=now) still puts me back to 6pm yesterday but it should be 6pm today.&lt;/P&gt;

&lt;P&gt;Does anyone have any idea how I can create a time modifier that will be smart enough to not go back to yesterday at 6pm if it is past 6pm in the same day?&lt;BR /&gt;
Thanks in advance.&lt;BR /&gt;
-Ben&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2014 13:55:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Latest-Earliest-Timeformat-using-another-timezone-other-than-the/m-p/127880#M34708</guid>
      <dc:creator>benspader</dc:creator>
      <dc:date>2014-01-28T13:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Latest/Earliest Timeformat using another timezone other than the default</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Latest-Earliest-Timeformat-using-another-timezone-other-than-the/m-p/127881#M34709</link>
      <description>&lt;P&gt;You can use a subsearch to generate the correct value for &lt;CODE&gt;earliest&lt;/CODE&gt;;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=splunkd index=_internal latest=now() [search * | head 1 | eval now_hour = strftime(now(),"%H") | eval earliest = if((now_hour &amp;gt; 17), "@d+18h", "@d-6h") | fields + earliest] | the rest of your search
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;K&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2014 14:27:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Latest-Earliest-Timeformat-using-another-timezone-other-than-the/m-p/127881#M34709</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2014-01-28T14:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Latest/Earliest Timeformat using another timezone other than the default</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Latest-Earliest-Timeformat-using-another-timezone-other-than-the/m-p/127882#M34710</link>
      <description>&lt;P&gt;This should work!  Thank you very much!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2014 14:51:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Latest-Earliest-Timeformat-using-another-timezone-other-than-the/m-p/127882#M34710</guid>
      <dc:creator>benspader</dc:creator>
      <dc:date>2014-01-28T14:51:10Z</dc:date>
    </item>
  </channel>
</rss>

