<?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 How to change timezone to MST? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-timezone-to-MST/m-p/642468#M109486</link>
    <description>&lt;P&gt;we have data written in MST and data is indexed without any issue.&lt;/P&gt;
&lt;P&gt;Splunk servers are in CST as well forwarder in CST timezone and we are getting indexed time in CST which is one hour behind of MST so team wants to be indexed in MST rather than in CST. Challenge here is we can't change any TZ for both splunk as well forwarder servers.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently no props applied and tried applying US/Mountain but didn't worked. Any suggestions to make indexed time in MST.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN class=""&gt;5/5/23 9:33:50:997 MST&lt;/SPAN&gt;&lt;SPAN&gt;] 0000000 SystemOut&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN class=""&gt;5/5/23 9:33:50:994 MST&lt;/SPAN&gt;&lt;SPAN&gt;] 0000000 SystemOut O ** ACCESS&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 08 May 2023 10:08:08 GMT</pubDate>
    <dc:creator>JGP</dc:creator>
    <dc:date>2023-05-08T10:08:08Z</dc:date>
    <item>
      <title>How to change timezone to MST?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-timezone-to-MST/m-p/642468#M109486</link>
      <description>&lt;P&gt;we have data written in MST and data is indexed without any issue.&lt;/P&gt;
&lt;P&gt;Splunk servers are in CST as well forwarder in CST timezone and we are getting indexed time in CST which is one hour behind of MST so team wants to be indexed in MST rather than in CST. Challenge here is we can't change any TZ for both splunk as well forwarder servers.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently no props applied and tried applying US/Mountain but didn't worked. Any suggestions to make indexed time in MST.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN class=""&gt;5/5/23 9:33:50:997 MST&lt;/SPAN&gt;&lt;SPAN&gt;] 0000000 SystemOut&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN class=""&gt;5/5/23 9:33:50:994 MST&lt;/SPAN&gt;&lt;SPAN&gt;] 0000000 SystemOut O ** ACCESS&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 10:08:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-timezone-to-MST/m-p/642468#M109486</guid>
      <dc:creator>JGP</dc:creator>
      <dc:date>2023-05-08T10:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: TZ Issue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-timezone-to-MST/m-p/642472#M109488</link>
      <description>&lt;P&gt;Every sourcetype should have props and lack of props in this case is the reason for the failure.&amp;nbsp; Without props, Splunk has to guess at your data and may guess wrong.&amp;nbsp; Try these props as a starting point&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[mysourcetype]
TIME_PREFIX = ^\[
TIME_FORMAT = %m/%d/%y %H:%M:%S:%3N %Z
MAX_TIMESTAMP_LOOKAHEAD = 50
TRUNCATE = 10000
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 06 May 2023 12:42:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-timezone-to-MST/m-p/642472#M109488</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-05-06T12:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: TZ Issue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-timezone-to-MST/m-p/642486#M109492</link>
      <description>&lt;P&gt;Splunk applies time zones in the following order:&lt;/P&gt;&lt;P&gt;1- TZ indicator in the raw event data&lt;/P&gt;&lt;P&gt;2. Value TZ = &amp;lt;value&amp;gt; attribute set in props.conf&lt;/P&gt;&lt;P&gt;3. FW TZ&lt;/P&gt;&lt;P&gt;4. IDX TZ&lt;/P&gt;&lt;P&gt;For the data sample that you provided it seems that your data already contains TZ indicator.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a new sourcetype or a props.conf stanza for this host|source for this event containing a timestamp with the TIME_FORMAT = &amp;lt;strptime-style format&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Data: Valid_Until=Thu Dec 31 17:59:59 GMT-06:00 2020&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;To extract the timestamp, add this stanza to the props.conf file:&lt;/P&gt;&lt;P&gt;%Z stands for Time zone name&lt;/P&gt;&lt;P&gt;%z stand for UTC offset in the form +HHMM or -HHMM&lt;/P&gt;&lt;P&gt;*In your case, use only %Z&lt;/P&gt;&lt;P&gt;* Use the following table to adapt your data to the strptime format so you can create your own TIME_FORMAT attribute.&amp;nbsp;&lt;A href="https://strftime.org/" target="_blank"&gt;Python strftime reference cheatsheet&lt;/A&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;TIME_PREFIX = Valid_Until=
TIME_FORMAT =&amp;nbsp;%a&amp;nbsp;%b&amp;nbsp;%d&amp;nbsp;%H:%M:%S&amp;nbsp;%Z%:z&amp;nbsp;%Y&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 07 May 2023 06:41:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-timezone-to-MST/m-p/642486#M109492</guid>
      <dc:creator>enzomialich</dc:creator>
      <dc:date>2023-05-07T06:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: TZ Issue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-timezone-to-MST/m-p/642503#M109497</link>
      <description>&lt;P&gt;Tried applying props, but didn't worked, same result&lt;/P&gt;&lt;P&gt;TIME_PREFIX = ^\[&lt;BR /&gt;TIME_FORMAT = %m/%d/%y %H:%M:%S:%3N %Z&lt;BR /&gt;SHOULD_LINEMERGE = false&lt;BR /&gt;LINE_BREAKER = ([\r\n]+)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JGP_2-1683523894587.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25266i9BEB4070C38DDF8D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JGP_2-1683523894587.png" alt="JGP_2-1683523894587.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 05:33:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-timezone-to-MST/m-p/642503#M109497</guid>
      <dc:creator>JGP</dc:creator>
      <dc:date>2023-05-08T05:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: TZ Issue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-timezone-to-MST/m-p/642519#M109502</link>
      <description>&lt;P&gt;Now try to apply the TZ = &amp;lt;time_zone&amp;gt; in props.conf&lt;/P&gt;&lt;P&gt;I believe that for your TZ it will end like this:&lt;/P&gt;&lt;P data-unlink="true"&gt;TZ =&amp;nbsp;America/Boise&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;See wiki list for all timezones:&amp;nbsp;&lt;A href="https://en.wikipedia.org/wiki/List_of_tz_database_time_zones" target="_blank"&gt;List of tz database time zones - Wikipedia&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 11:07:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-timezone-to-MST/m-p/642519#M109502</guid>
      <dc:creator>enzomialich</dc:creator>
      <dc:date>2023-05-08T11:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: TZ Issue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-timezone-to-MST/m-p/642520#M109503</link>
      <description>&lt;P&gt;Also, your event timestamp seems to be different from the event. Remember the event results display the event from your timezone perpesctive.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if you're in Rio de Janeiro (UTC-3)&amp;nbsp; and the event contains a UK (UTC-0) timestamp. Your timestamp shows from your timezone perspective (the event timestamp less 3 hours).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try the TZ = &amp;lt;&amp;gt; attribute in props.conf but also try to change your timezone preference in Splunk to the same TZ that you configured to see if there's any difference.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 11:11:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-timezone-to-MST/m-p/642520#M109503</guid>
      <dc:creator>enzomialich</dc:creator>
      <dc:date>2023-05-08T11:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to change timezone to MST?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-timezone-to-MST/m-p/642623#M109535</link>
      <description>&lt;P&gt;Added TZ = US/Mountain to the exiting props but didn't worked that as well.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 08:44:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-timezone-to-MST/m-p/642623#M109535</guid>
      <dc:creator>JGP</dc:creator>
      <dc:date>2023-05-09T08:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to change timezone to MST?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-timezone-to-MST/m-p/642652#M109542</link>
      <description>&lt;P&gt;Try other time zone designations like &lt;FONT face="courier new,courier"&gt;America/Denver&lt;/FONT&gt; or &lt;FONT face="courier new,courier"&gt;MST&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;Frankly, some of what you've tried already should have worked.&amp;nbsp; Did you restart Splunk after changing props.conf?&amp;nbsp; Are you looking at newly-onboarded data after each change?&amp;nbsp; Indexed data will not change.&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 12:34:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-timezone-to-MST/m-p/642652#M109542</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-05-09T12:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to change timezone to MST?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-timezone-to-MST/m-p/642950#M109579</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;, are you talking about forwarder service to be restarted?&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 04:51:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-timezone-to-MST/m-p/642950#M109579</guid>
      <dc:creator>JGP</dc:creator>
      <dc:date>2023-05-11T04:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to change timezone to MST?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-timezone-to-MST/m-p/643030#M109587</link>
      <description>&lt;P&gt;Any instance where a .conf file is edited from the CLI needs to be restarted so it will read the changes.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 12:19:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-timezone-to-MST/m-p/643030#M109587</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-05-11T12:19:29Z</dc:date>
    </item>
  </channel>
</rss>

