<?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: Timezones - Same Time 3 sites in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Timezones-Same-Time-3-sites/m-p/323360#M60226</link>
    <description>&lt;P&gt;The solution to your problem is convert your &lt;CODE&gt;Start&lt;/CODE&gt; and &lt;CODE&gt;Stop&lt;/CODE&gt; fields as &lt;EM&gt;soon&lt;/EM&gt; as possible into &lt;CODE&gt;time_t/epoch&lt;/CODE&gt; using &lt;CODE&gt;strptime&lt;/CODE&gt; JUST ONCE and from then on out use &lt;CODE&gt;fieldformat&lt;/CODE&gt; (&lt;EM&gt;NOT&lt;/EM&gt; &lt;CODE&gt;eval&lt;/CODE&gt;) to change the way that &lt;CODE&gt;Stop&lt;/CODE&gt; and &lt;CODE&gt;Start&lt;/CODE&gt; are presented to the user but &lt;EM&gt;DO NOT&lt;/EM&gt; change the value itself.  This way when you use them as values for &lt;CODE&gt;earliest&lt;/CODE&gt; and &lt;CODE&gt;latest&lt;/CODE&gt;, they &lt;EM&gt;still&lt;/EM&gt; are &lt;CODE&gt;time_t/epoch&lt;/CODE&gt; and they do not need reformatting/translating and they are still correct because they haven't been converted back-and-forth-and-back-and.... with &lt;CODE&gt;strptime/strftime&lt;/CODE&gt; calls.  If you do this, you should be fine.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jun 2017 17:44:06 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2017-06-22T17:44:06Z</dc:date>
    <item>
      <title>Timezones - Same Time 3 sites</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timezones-Same-Time-3-sites/m-p/323356#M60222</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;I have 3 office all 1 hour different from each other.&lt;BR /&gt;
100% of SPLUNK is installed in the middle office. (Paris Time)&lt;/P&gt;

&lt;P&gt;Is it possible that when all users log in they only see the time of the middle office (PARIS).&lt;BR /&gt;
At the moment EPOC time is converted to -1 hour or + 1 pending on the site. Ideally i just want each user to see 100% the same thing.&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Robert Lynch&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 17:16:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timezones-Same-Time-3-sites/m-p/323356#M60222</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2017-05-30T17:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Timezones - Same Time 3 sites</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timezones-Same-Time-3-sites/m-p/323357#M60223</link>
      <description>&lt;P&gt;You can set the user timezone offset in the UI under settings&amp;gt;access controls&amp;gt;users &amp;gt; Time zone &lt;BR /&gt;
This will offest the display time of the search results in the 'Time' column of the search results relative to the time of the logged event.&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 17:49:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timezones-Same-Time-3-sites/m-p/323357#M60223</guid>
      <dc:creator>rphillips_splk</dc:creator>
      <dc:date>2017-05-30T17:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Timezones - Same Time 3 sites</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timezones-Same-Time-3-sites/m-p/323358#M60224</link>
      <description>&lt;P&gt;Make sure that ALL of your events are properly timestamped; this is not as easy as it sounds and most people believe that they are done with this part but they still actually have problems (I have never looked at client data where this has been 100% correct).  Splunk always normalizes every event to &lt;CODE&gt;UTC&lt;/CODE&gt; for indexing (creating the &lt;CODE&gt;_time&lt;/CODE&gt; field) so all it needs to know is the TZ that is used for each event's timestamp.  The Indexers know how to check host OS to determine system clock and will use this if use use &lt;CODE&gt;DATETIME_CONFIG=CURRENT&lt;/CODE&gt;.  Once that is done, you have done the most important and most difficult half of the job by aligning your data so Splunk's knows your events' TZ:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/data/Applytimezoneoffsetstotimestamps"&gt;http://docs.splunk.com/Documentation/Splunk/latest/data/Applytimezoneoffsetstotimestamps&lt;/A&gt;&lt;BR /&gt;
NOTE: only newly indexed events are effected by changes to these settings; older events will stay "wrong".&lt;/P&gt;

&lt;P&gt;Now for the part that you asked about: you also must tell Splunk &lt;EM&gt;your&lt;/EM&gt; preferred TZ by setting it in &lt;CODE&gt;Your Name&lt;/CODE&gt; -&amp;gt; &lt;CODE&gt;Settings&lt;/CODE&gt; -&amp;gt; &lt;CODE&gt;Time zone&lt;/CODE&gt;.  This setting controls &lt;EM&gt;both&lt;/EM&gt; the normalization of the timepicker when you pick settings that are date-relative (e.g. Today, Last 7 days, etc.) and it also changes the time value listed in some views of the &lt;CODE&gt;Events&lt;/CODE&gt; tab.  On the &lt;CODE&gt;Events&lt;/CODE&gt; tab, find the &lt;CODE&gt;Raw/List/Table&lt;/CODE&gt; link that is just above your search results and just under the histogram graph and all the way to the left and make sure it is set to &lt;CODE&gt;List&lt;/CODE&gt;. This will add a column to your search results called &lt;CODE&gt;Time&lt;/CODE&gt; which will show your preferred normalized timestamp.  The timestamp inside the raw event will never change and will always be exactly the way it was when the thing that generated it sent it to splunk.  A policy might be enforced that all users use the same setting here so that everyone always sees the same thing.&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 17:57:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timezones-Same-Time-3-sites/m-p/323358#M60224</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-30T17:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Timezones - Same Time 3 sites</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timezones-Same-Time-3-sites/m-p/323359#M60225</link>
      <description>&lt;P&gt;Woodcock, sorry for the delay on your great answer.&lt;/P&gt;

&lt;P&gt;Before i start changing things, i have to tell you one more factor.&lt;/P&gt;

&lt;P&gt;I have created one user = PARIS (CET).&lt;BR /&gt;
I can log in with this user from PARIS(Via Citrix) Or On my desktop in Dublin (-1H Behind Paris).&lt;/P&gt;

&lt;P&gt;I am displaying epoc _time.&lt;BR /&gt;&lt;BR /&gt;
From Both DUBLIN and PARIS i see PARIS time, In a timechart graph and this works well.&lt;/P&gt;

&lt;P&gt;The issues is when i try to move time using the below command.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;          &amp;lt;eval token="form.time_token.earliest"&amp;gt;strptime('row.Start',"%m/%d/%Y %H:%M:%S")&amp;lt;/eval&amp;gt;
          &amp;lt;eval token="form.time_token.latest"&amp;gt;strptime('row.Stop',"%m/%d/%Y %H:%M:%S")&amp;lt;/eval&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have a table with Start[16:45:00] and End[16:51:10] time in it. &lt;/P&gt;

&lt;P&gt;When i click on this table to re-drive time, in paris i get what i want. However in Dublin i get Start[17:45:00] and End[17:51:10]. So it pushes the data on + 1.&lt;BR /&gt;
In the past i put in a + 3600, however as SPLUNK is now gettign bigger in the company i need PARIS to be the main server and all users to see PARIS time and all Action to be on PARIS time.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3002i65C1009788683CD1/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3003i6158816C43AFCE78/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 15:01:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timezones-Same-Time-3-sites/m-p/323359#M60225</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2017-06-22T15:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Timezones - Same Time 3 sites</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timezones-Same-Time-3-sites/m-p/323360#M60226</link>
      <description>&lt;P&gt;The solution to your problem is convert your &lt;CODE&gt;Start&lt;/CODE&gt; and &lt;CODE&gt;Stop&lt;/CODE&gt; fields as &lt;EM&gt;soon&lt;/EM&gt; as possible into &lt;CODE&gt;time_t/epoch&lt;/CODE&gt; using &lt;CODE&gt;strptime&lt;/CODE&gt; JUST ONCE and from then on out use &lt;CODE&gt;fieldformat&lt;/CODE&gt; (&lt;EM&gt;NOT&lt;/EM&gt; &lt;CODE&gt;eval&lt;/CODE&gt;) to change the way that &lt;CODE&gt;Stop&lt;/CODE&gt; and &lt;CODE&gt;Start&lt;/CODE&gt; are presented to the user but &lt;EM&gt;DO NOT&lt;/EM&gt; change the value itself.  This way when you use them as values for &lt;CODE&gt;earliest&lt;/CODE&gt; and &lt;CODE&gt;latest&lt;/CODE&gt;, they &lt;EM&gt;still&lt;/EM&gt; are &lt;CODE&gt;time_t/epoch&lt;/CODE&gt; and they do not need reformatting/translating and they are still correct because they haven't been converted back-and-forth-and-back-and.... with &lt;CODE&gt;strptime/strftime&lt;/CODE&gt; calls.  If you do this, you should be fine.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 17:44:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timezones-Same-Time-3-sites/m-p/323360#M60226</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-06-22T17:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Timezones - Same Time 3 sites</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timezones-Same-Time-3-sites/m-p/323361#M60227</link>
      <description>&lt;P&gt;Thanks for this, if fixed this issues. I had epoc stored and i was able to use it to set the time so i did not need to convert it with eval.&lt;/P&gt;

&lt;P&gt;However i have another issues that has not arisen in relation to Timezones.&lt;/P&gt;

&lt;P&gt;I have made a new question "Timezones issues 1 site, 3 users in different timezones"... I am trying to apply what you said in this question however i am not sure it is the same thing.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 11:24:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timezones-Same-Time-3-sites/m-p/323361#M60227</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2017-06-27T11:24:23Z</dc:date>
    </item>
  </channel>
</rss>

