<?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: Convert _time Timezone at Search Time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Convert-time-Timezone-at-Search-Time/m-p/23713#M4259</link>
    <description>&lt;P&gt;The best thing to do is set your time zone in your props file for each of your sources by sourcetype, host, or source.  Then set your users time zone and Splunk will handle the rest, example below.  The other option is to user strptime and strftime to do the math yourself.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;
#props.conf&lt;BR /&gt;
[host::nyc*]&lt;BR /&gt;
sourcetype = foo&lt;BR /&gt;
SHOULD_LINEMERGE = True&lt;BR /&gt;
TZ = US/Eastern&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 03 May 2013 14:45:01 GMT</pubDate>
    <dc:creator>bmacias84</dc:creator>
    <dc:date>2013-05-03T14:45:01Z</dc:date>
    <item>
      <title>Convert _time Timezone at Search Time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-time-Timezone-at-Search-Time/m-p/23712#M4258</link>
      <description>&lt;P&gt;Some of the logs I am consuming have time stamps in GMT while my overall logging infrastructure is in EST.  I am trying to do a comparison between the GMT timestamp in one log and the current time in EST.  Is there any way to convert _time from EST to GMT using something like strftime at searchtime, so it can be more easily worked with?  I understand there is a way to do this "overall" in Splunk, but I am more interested in doing a "one-off" timezone conversion if possible.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2013 13:13:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-time-Timezone-at-Search-Time/m-p/23712#M4258</guid>
      <dc:creator>bcarr12</dc:creator>
      <dc:date>2013-05-03T13:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Convert _time Timezone at Search Time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-time-Timezone-at-Search-Time/m-p/23713#M4259</link>
      <description>&lt;P&gt;The best thing to do is set your time zone in your props file for each of your sources by sourcetype, host, or source.  Then set your users time zone and Splunk will handle the rest, example below.  The other option is to user strptime and strftime to do the math yourself.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;
#props.conf&lt;BR /&gt;
[host::nyc*]&lt;BR /&gt;
sourcetype = foo&lt;BR /&gt;
SHOULD_LINEMERGE = True&lt;BR /&gt;
TZ = US/Eastern&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2013 14:45:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-time-Timezone-at-Search-Time/m-p/23713#M4259</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2013-05-03T14:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Convert _time Timezone at Search Time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-time-Timezone-at-Search-Time/m-p/23714#M4260</link>
      <description>&lt;P&gt;If the event has the wrong timestamp.timezone, it will never match your search time window. And you cannot change the TZ once indexed.&lt;BR /&gt;
So use the previous method and reindex with a TZ.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2013 15:32:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-time-Timezone-at-Search-Time/m-p/23714#M4260</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-05-03T15:32:00Z</dc:date>
    </item>
  </channel>
</rss>

