<?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: Change time zone in log indexing in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Change-time-zone-in-log-indexing/m-p/502566#M139878</link>
    <description>&lt;P&gt;In the props.conf stanza for the sourcetype, add &lt;CODE&gt;TZ&lt;/CODE&gt; to tell Splunk the time zone.&lt;/P&gt;</description>
    <pubDate>Mon, 09 Dec 2019 11:52:03 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2019-12-09T11:52:03Z</dc:date>
    <item>
      <title>Change time zone in log indexing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Change-time-zone-in-log-indexing/m-p/502565#M139877</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a log that it has the format below, I need his GMT to be -3h.&lt;/P&gt;

&lt;P&gt;That is, in the log file the time is &lt;STRONG&gt;(2019-12-08 06: 03: 54.463)&lt;/STRONG&gt;, however I need it to be indexed in splunk as &lt;STRONG&gt;(2019-12-08 03: 03: 54.463)&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(2019-12-09 08:04:57.618)           (2019-12-08 12:47:17.125)
easy_init.27964 (thread #0, tid: 40920) (trace:0) (proc_launch): Process easy_log successfully launched (31412)

(2019-12-09 08:04:57.665)           (2019-12-09 08:04:57.649)
easy_init.exe.27964 (trace:4) (proc_launch): Process dbmon.oci successfully launched (19320)

(2019-12-09 08:04:58.571)           (2019-12-09 08:04:58.571)
tsrv.exe.18260 (trace:0) ([ trace: disabled ] version '8.4' [ build 0 (Jun 11 2019 11:11:18) Update 1220 ]): information

(2019-12-09 08:04:58.571)           (2019-12-09 08:04:58.571)
tsrv.exe.45784 (trace:0) ([ trace: disabled ] version '8.4' [ build 0 (Jun 11 2019 11:11:18) Update 1220 ]): information
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The regex below correctly indicates the events, however with the times are not gmt -3h&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;LINE_BREAKER=([\r\n]+)
NO_BINARY_CHECK=true
SHOULD_LINEMERGE=true
TIME_FORMAT=%Y-%m-%d%t%H:%M:%S.%3N
TIME_PREFIX=^\(
disabled=false
pulldown_type=true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Dec 2019 10:31:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Change-time-zone-in-log-indexing/m-p/502565#M139877</guid>
      <dc:creator>leandromatperei</dc:creator>
      <dc:date>2019-12-09T10:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Change time zone in log indexing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Change-time-zone-in-log-indexing/m-p/502566#M139878</link>
      <description>&lt;P&gt;In the props.conf stanza for the sourcetype, add &lt;CODE&gt;TZ&lt;/CODE&gt; to tell Splunk the time zone.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 11:52:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Change-time-zone-in-log-indexing/m-p/502566#M139878</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-12-09T11:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Change time zone in log indexing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Change-time-zone-in-log-indexing/m-p/502567#M139879</link>
      <description>&lt;P&gt;Set the TZ parameter in the props.conf.&lt;/P&gt;

&lt;P&gt;Here's the documentation&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TZ = &amp;lt;timezone identifier&amp;gt;
* The algorithm for determining the time zone for a particular event is as
  follows:
  * If the event has a timezone in its raw text (for example, UTC, -08:00),
  use that.
  * If TZ is set to a valid timezone string, use that.
  * If the event was forwarded, and the forwarder-indexer connection uses
  the version 6.0 and higher forwarding protocol, use the timezone provided
  by the forwarder.
  * Otherwise, use the timezone of the system that is running splunkd.
* Default: empty string
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.0/Admin/Propsconf"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.0/Admin/Propsconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 11:53:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Change-time-zone-in-log-indexing/m-p/502567#M139879</guid>
      <dc:creator>arjunpkishore5</dc:creator>
      <dc:date>2019-12-09T11:53:20Z</dc:date>
    </item>
  </channel>
</rss>

