<?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: Timezone conversion issue on HF in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Timezone-conversion-issue-on-HF/m-p/271777#M52197</link>
    <description>&lt;P&gt;You are saying -&lt;BR /&gt;
-- The log events are in UTC timezone. &lt;/P&gt;

&lt;P&gt;So, the time in the log events is not in the format of &lt;CODE&gt;-0500, GMT&lt;/CODE&gt;, right? otherwise you would have received the events in the UTC timezone. &lt;/P&gt;

&lt;P&gt;You should probably "force" the timezone at the forwarder level.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jul 2016 01:27:19 GMT</pubDate>
    <dc:creator>ddrillic</dc:creator>
    <dc:date>2016-07-27T01:27:19Z</dc:date>
    <item>
      <title>Timezone conversion issue on HF</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timezone-conversion-issue-on-HF/m-p/271775#M52195</link>
      <description>&lt;P&gt;We have a HF in UTC timezone that is received log events from an Universal Forwarder running on EDT timezone.&lt;BR /&gt;
The log events are in UTC timezone. &lt;BR /&gt;
The HF is configured in non-indexer mode (Indexandforward = false in props.conf ) and&lt;BR /&gt;
the HF is forwarding the events into an external application attaching a header (Time, hostname)&lt;/P&gt;

&lt;P&gt;The issues is:&lt;BR /&gt;
The time that HF is attaching is in EDT timezone. we want this to be in UTC timezone.&lt;/P&gt;

&lt;P&gt;Anyone faced this kind of issue? please suggest solutions.&lt;/P&gt;

&lt;P&gt;Below are config details:&lt;BR /&gt;
props.conf&lt;BR /&gt;
[mysourcetype]&lt;BR /&gt;
TRANSFORMS-route_log = route_log_external&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
[route_log_external]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = _SYSLOG_ROUTING&lt;BR /&gt;
FORMAT = external_out&lt;/P&gt;

&lt;P&gt;outputs.conf&lt;BR /&gt;
[syslog]&lt;BR /&gt;
defaultGroup = none&lt;BR /&gt;
maxEventSize = 50000&lt;/P&gt;

&lt;P&gt;[syslog:external_out]&lt;BR /&gt;
server = 127.0.0.1:12121&lt;BR /&gt;
type = tcp&lt;BR /&gt;
timestampformat = %b %e %H:%M:%S&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:18:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timezone-conversion-issue-on-HF/m-p/271775#M52195</guid>
      <dc:creator>bkumarm</dc:creator>
      <dc:date>2020-09-29T10:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone conversion issue on HF</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timezone-conversion-issue-on-HF/m-p/271776#M52196</link>
      <description>&lt;P&gt;Have you set the timezone on the first HF to EDT for this input stanza? &lt;/P&gt;

&lt;P&gt;props.conf :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TZ = &amp;lt;timezone identifier&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If the timezone is in the log events, Splunk will use this timezone (from props.conf Splunk docs). &lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2016 00:27:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timezone-conversion-issue-on-HF/m-p/271776#M52196</guid>
      <dc:creator>Raschko</dc:creator>
      <dc:date>2016-07-27T00:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone conversion issue on HF</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timezone-conversion-issue-on-HF/m-p/271777#M52197</link>
      <description>&lt;P&gt;You are saying -&lt;BR /&gt;
-- The log events are in UTC timezone. &lt;/P&gt;

&lt;P&gt;So, the time in the log events is not in the format of &lt;CODE&gt;-0500, GMT&lt;/CODE&gt;, right? otherwise you would have received the events in the UTC timezone. &lt;/P&gt;

&lt;P&gt;You should probably "force" the timezone at the forwarder level.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2016 01:27:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timezone-conversion-issue-on-HF/m-p/271777#M52197</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2016-07-27T01:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone conversion issue on HF</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timezone-conversion-issue-on-HF/m-p/271778#M52198</link>
      <description>&lt;P&gt;We don't have any TZ specified in props.conf on the UF at the source.&lt;BR /&gt;
I have updated the description above with additional info.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2016 13:19:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timezone-conversion-issue-on-HF/m-p/271778#M52198</guid>
      <dc:creator>bkumarm</dc:creator>
      <dc:date>2016-07-27T13:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone conversion issue on HF</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timezone-conversion-issue-on-HF/m-p/271779#M52199</link>
      <description>&lt;P&gt;Yes, we do not get log events in the format -0500, GMT&lt;BR /&gt;
could you please explain how to "force" the timezone at UF level? and how would that affect when event is forwarded again from HF?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2016 13:22:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timezone-conversion-issue-on-HF/m-p/271779#M52199</guid>
      <dc:creator>bkumarm</dc:creator>
      <dc:date>2016-07-27T13:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone conversion issue on HF</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timezone-conversion-issue-on-HF/m-p/271780#M52200</link>
      <description>&lt;P&gt;Please try to set one in props.conf as I described above using your timezone identifier for EDT.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2016 13:33:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timezone-conversion-issue-on-HF/m-p/271780#M52200</guid>
      <dc:creator>Raschko</dc:creator>
      <dc:date>2016-07-27T13:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone conversion issue on HF</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timezone-conversion-issue-on-HF/m-p/271781#M52201</link>
      <description>&lt;P&gt;If the log event can have an explicit time zone then it's obviously the best choice.&lt;BR /&gt;
If not, then apparently &lt;CODE&gt;props.conf&lt;/CODE&gt; on the indexer is the proper place to "force" it. &lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2016 13:38:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timezone-conversion-issue-on-HF/m-p/271781#M52201</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2016-07-27T13:38:05Z</dc:date>
    </item>
  </channel>
</rss>

