<?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: Modify  Time Zone in SPLUNK in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-Time-Zone-in-Splunk/m-p/607449#M211188</link>
    <description>&lt;P&gt;What is the end goal? &amp;nbsp; If ingestion is working correctly, all of them would be numeric in epoch UTC (GMT). &amp;nbsp; The original time zone will not matter.&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jul 2022 04:29:07 GMT</pubDate>
    <dc:creator>yuanliu</dc:creator>
    <dc:date>2022-07-29T04:29:07Z</dc:date>
    <item>
      <title>How to modify  Time Zone in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-Time-Zone-in-Splunk/m-p/607444#M211185</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;We have a few types of logs generated with different time zones. Are there any ways SPLUNK can modify the time zones associated with the logs entries to a one time zone (EST) so we can map all logs to one time zone.&lt;/P&gt;
&lt;P class=""&gt;DS Logs:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2021-07-28 16:57:00,526 GMT&lt;/P&gt;
&lt;P class=""&gt;Security Logs:&amp;nbsp; &amp;nbsp; &amp;nbsp;2021-07-28 16:15:49,430 EST&lt;/P&gt;
&lt;P class=""&gt;Audit Logs :&amp;nbsp; &amp;nbsp;Wed 2021 May 28, 16:58:11:430&lt;/P&gt;
&lt;P&gt;Any recommendations will be highly appreciated. Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jul 2022 22:15:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-Time-Zone-in-Splunk/m-p/607444#M211185</guid>
      <dc:creator>SplunkDash</dc:creator>
      <dc:date>2022-07-30T22:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Modify  Time Zone in SPLUNK</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-Time-Zone-in-Splunk/m-p/607449#M211188</link>
      <description>&lt;P&gt;What is the end goal? &amp;nbsp; If ingestion is working correctly, all of them would be numeric in epoch UTC (GMT). &amp;nbsp; The original time zone will not matter.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 04:29:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-Time-Zone-in-Splunk/m-p/607449#M211188</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-07-29T04:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Modify  Time Zone in SPLUNK</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-Time-Zone-in-Splunk/m-p/607509#M211225</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you so much for you quick response. The goal is&amp;nbsp;&lt;SPAN&gt;all of them want to be numeric in epoch UTC (GMT).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 11:24:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-Time-Zone-in-Splunk/m-p/607509#M211225</guid>
      <dc:creator>SplunkDash</dc:creator>
      <dc:date>2022-07-29T11:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Modify  Time Zone in SPLUNK</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-Time-Zone-in-Splunk/m-p/607554#M211237</link>
      <description>&lt;P&gt;Internally, _time field should already be in epoch. &amp;nbsp;Can you illustrate how it is different for different data sources in your instance?&lt;/P&gt;&lt;P&gt;When _time is used as a table head (including in stats), Splunk displays it in human readable form, potentially influenced by user preference but doesn't change its value or internal representation. &amp;nbsp;You can still perform calculations such as &lt;FONT face="andale mono,times"&gt;_time - 3600&lt;/FONT&gt;, &lt;FONT face="andale mono,times"&gt;_time + 86400&lt;/FONT&gt;, and so on. &amp;nbsp;If simultaneous events from two sources end up with different _time values due to the sources' differing time zones, it is likely a problem in ingestion. &amp;nbsp;You'll need to adjust ingestion to take time zone into account.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 15:37:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-Time-Zone-in-Splunk/m-p/607554#M211237</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-07-29T15:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Modify  Time Zone in SPLUNK</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-Time-Zone-in-Splunk/m-p/607559#M211240</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you so much again. I tried to use TZ=US/Eastern in porps.conf files, do you think it will address the issue? Thank you again!&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 16:10:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-Time-Zone-in-Splunk/m-p/607559#M211240</guid>
      <dc:creator>SplunkDash</dc:creator>
      <dc:date>2022-07-29T16:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Modify  Time Zone in SPLUNK</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-Time-Zone-in-Splunk/m-p/607600#M211262</link>
      <description>&lt;P&gt;It is hard to say which remedy will work without knowing the cause of the problem. &amp;nbsp;Under &lt;FONT face="andale mono,times"&gt;TZ&lt;/FONT&gt;,&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/admin/Propsconf#Timestamp_extraction_configuration" target="_blank" rel="noopener"&gt;Timestamp extraction configuration&lt;/A&gt;&amp;nbsp;contains this quote&lt;/P&gt;&lt;PRE&gt;  * 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.
  * ...&lt;/PRE&gt;&lt;P&gt;Among log &amp;nbsp;samples, only Audit log is missing a valid timezone string. &amp;nbsp;If Audit log is the one giving trouble, (you can use something like "&lt;FONT face="andale mono,times"&gt;| eval timediff = _indextime - _time | stats avg(timediff) by sourcetype&lt;/FONT&gt;" to test) setting TZ in that source type should help.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jul 2022 07:52:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-Time-Zone-in-Splunk/m-p/607600#M211262</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-07-30T07:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Modify  Time Zone in SPLUNK</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-Time-Zone-in-Splunk/m-p/607607#M211265</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you so much again.&lt;/P&gt;&lt;P&gt;We have different logs with different timestamps (please see below), my objective is to configure SPLUNK that would allow us to convert all timestamp in to EasternTime. Thank you again.&lt;/P&gt;&lt;P class=""&gt;DS Logs:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2021-07-28 16:57:00,526 GMT&lt;/P&gt;&lt;P class=""&gt;Security Logs:&amp;nbsp; &amp;nbsp; &amp;nbsp;2021-07-28 16:15:49,430 EST&lt;/P&gt;&lt;P class=""&gt;Audit Logs :&amp;nbsp; &amp;nbsp;Wed 2021 May 28, 16:58:11:430&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jul 2022 09:42:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-Time-Zone-in-Splunk/m-p/607607#M211265</guid>
      <dc:creator>SplunkDash</dc:creator>
      <dc:date>2022-07-30T09:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Modify  Time Zone in SPLUNK</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-Time-Zone-in-Splunk/m-p/607624#M211279</link>
      <description>&lt;P&gt;I think the objective needs two distinct actions to achieve.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Make &amp;nbsp;sure that all data sources are ingested with correct internal time.&lt;/LI&gt;&lt;LI&gt;Present data in Eastern Standard time.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Let's start &amp;nbsp;from the second one. &amp;nbsp; Note, I ignored the word "&lt;SPAN&gt;convert", which is very different from "present". &amp;nbsp;This is &amp;nbsp;because Splunk does not use timestamps internally. &amp;nbsp;As such, _time carries no timezone. &amp;nbsp;You can present _time in any timezone you desire. &amp;nbsp;Usually the user can set preferences. (See &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Data/Applytimezoneoffsetstotimestamps#Set_the_time_zone_for_a_user.27s_search_results" target="_blank" rel="noopener"&gt;Set the time zone for a user's search results&lt;/A&gt;.)&amp;nbsp; Alternatively, you can force presentation using functions like strftime().&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now to the first. &amp;nbsp;Splunk uses various tactics to best decipher timestamp in the input. &amp;nbsp;For example, it will automatically recognize "2021-07-28 16:57:00,526 GMT" as&amp;nbsp;1627491420.526000, "2021-07-28 16:15:49,430 EST" as&amp;nbsp;1627506949.430000. (These epoch representations assume UTC aka GMT.) &amp;nbsp;For these two, you generally don't &amp;nbsp;have to worry.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The problem can arise in "Wed 2021 May 28, 16:58:11:430" because this log doesn't come with timezone info. &amp;nbsp; For Splunk to obtain the correct time, your indexer must use the same timezone as machines that produce these logs. &amp;nbsp;In this scenario, Splunk's internal representation will always be the actual epoch time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If the indexer runs on a different timezone from the source machines, e.g., the indexer is running on UTC but the source machines are running EST (-5), Splunk will interpret&amp;nbsp;&lt;SPAN&gt;"Wed 2021 May 28, 16:58:11:430" as&amp;nbsp;1622246291.430000 instead of the correct&amp;nbsp;1622228291.430000.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If all source machines run on the same timezone, you can rectify this problem by setting TZ on the indexer. &amp;nbsp;If source machines themselves run on varying timezones, you will need to set forwarders' TZ on source machines.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Does this make sense?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jul 2022 20:04:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-Time-Zone-in-Splunk/m-p/607624#M211279</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-07-30T20:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Modify  Time Zone in SPLUNK</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-Time-Zone-in-Splunk/m-p/607682#M211300</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;How would I set forwarder TZ to Eastern Time? Where I need to make changes in forwarder? Any help would be appreciated. Thank you so much again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jul 2022 21:19:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-Time-Zone-in-Splunk/m-p/607682#M211300</guid>
      <dc:creator>SplunkDash</dc:creator>
      <dc:date>2022-07-31T21:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Modify  Time Zone in SPLUNK</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-Time-Zone-in-Splunk/m-p/607688#M211303</link>
      <description>&lt;P&gt;Have you tried to set TZ in props.conf?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 03:18:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-Time-Zone-in-Splunk/m-p/607688#M211303</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-08-01T03:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Modify  Time Zone in SPLUNK</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-Time-Zone-in-Splunk/m-p/607691#M211305</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;Include following stanza in&amp;nbsp; props.conf&amp;nbsp; at $FORWARDER_HOME/etc/system/local/&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[default]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TZ = US/Eastern&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 04:19:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-Time-Zone-in-Splunk/m-p/607691#M211305</guid>
      <dc:creator>SplunkDash</dc:creator>
      <dc:date>2022-08-01T04:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Modify  Time Zone in SPLUNK</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-Time-Zone-in-Splunk/m-p/607694#M211308</link>
      <description>&lt;P&gt;Does this mean it works? &amp;nbsp;Is your index server running on a different timezone?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 05:16:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-Time-Zone-in-Splunk/m-p/607694#M211308</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-08-01T05:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Modify  Time Zone in SPLUNK</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-Time-Zone-in-Splunk/m-p/607735#M211326</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Yes, index is running in different time zone. I haven't implemented. I need to reach out to client to let me change/update props.conf file in their machine. I wanted to make sure if it will work. Thank you so much.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 12:36:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-Time-Zone-in-Splunk/m-p/607735#M211326</guid>
      <dc:creator>SplunkDash</dc:creator>
      <dc:date>2022-08-01T12:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Modify  Time Zone in SPLUNK</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-Time-Zone-in-Splunk/m-p/607839#M211349</link>
      <description>&lt;P&gt;Yeah, it's tough to rely on client to conduct test to confirm a solution. &amp;nbsp;If at all possible, set up a bunch of local test machines running on varying TZs; you can use a test index for such purposes. (If your network allows, you can even run a VM on your laptop to forward into the indexer, or even run forwarder on your own laptop for which you can temporarily change timezone.) &amp;nbsp;Another possible quick test is to set TZ on indexer to a zone that is most populous among forwarders; obviously this is not good if the index is already in production use.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 20:28:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-Time-Zone-in-Splunk/m-p/607839#M211349</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-08-01T20:28:37Z</dc:date>
    </item>
  </channel>
</rss>

