<?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: How to view same results with different timezone users in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-view-same-results-with-different-timezone-users/m-p/310763#M58392</link>
    <description>&lt;P&gt;The answer is: it depends on each user's personal settings.  Go to &lt;CODE&gt;&amp;lt;Your Login Name&amp;gt;&lt;/CODE&gt; -&amp;gt; &lt;CODE&gt;Account settings&lt;/CODE&gt; -&amp;gt; &lt;CODE&gt;Time zone&lt;/CODE&gt; and set it to what &lt;EM&gt;you&lt;/EM&gt; desire.  From that point on, the &lt;CODE&gt;Timepicker&lt;/CODE&gt; will normalize to that &lt;CODE&gt;Time zone&lt;/CODE&gt;.  If you set it to &lt;CODE&gt;US/Central&lt;/CODE&gt; then pick &lt;CODE&gt;Yesterday&lt;/CODE&gt;, you will get a different set of values than a user who has a setting of &lt;CODE&gt;US/Pacific&lt;/CODE&gt;, just as you would expect/desire.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Sep 2017 15:32:31 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2017-09-04T15:32:31Z</dc:date>
    <item>
      <title>How to view same results with different timezone users</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-view-same-results-with-different-timezone-users/m-p/310761#M58390</link>
      <description>&lt;P&gt;Splunkers,&lt;/P&gt;

&lt;P&gt;Question: &lt;/P&gt;

&lt;P&gt;All my  data sources and Indexers and Search heads  are in PST time zone and Indexer time zones are PST. I have users in different  timezones EST,CST,PST . My question is when a EST user searches in search head  for  (3.00pm to 4.00pm timerange)  and  CST user searches in search head  for  (3.00pm to 4.00pm timerange) will  the results  same or different for both the users?&lt;BR /&gt;
I dont want to know how to change user timezone in settings and also in props.conf. I want how to view the same results even though the users are in different timezones.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 05:05:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-view-same-results-with-different-timezone-users/m-p/310761#M58390</guid>
      <dc:creator>sridharreddy</dc:creator>
      <dc:date>2017-08-31T05:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to view same results with different timezone users</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-view-same-results-with-different-timezone-users/m-p/310762#M58391</link>
      <description>&lt;P&gt;So with everything being indexed in PST, a user in CST would have data 2 hours shifted from a user in PST, even though the data itself is all the same, the time picker goes off of the user preferences. &lt;/P&gt;

&lt;P&gt;you can either make sure everyone is listed as PST users (which you've mentioned you don't want to do) &lt;BR /&gt;
or you can add this to syntaxes (given that your data has an offset field that says what timezone it is in, like -5:00):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|base search earliest=just a little before the earliest targeted date latest=just a little ahead of the latest targeted date
| addinfo 
| convert mktime(dateTime) as epochDateTime timeformat="%Y-%m-%d %H:%M:%S.%6N %:z" 
| eval shifted_time=epochDateTime-(abs(date_zone)*60) 
| eval shiftedMaxTime=info_max_time-(abs(date_zone)*60) 
| eval shiftedMinTime=info_min_time-(abs(date_zone)*60) 
| eval earliest=relative_time(shiftedMinTime, "+1w@w1")|convert ctime(earliest) as earliest timeformat="%Y-%m-%d %H:%M:%S.%6N %:z" 
| eval latest=relative_time(shiftedMaxTime, "@w1")|convert ctime(latest) as latest timeformat="%Y-%m-%d %H:%M:%S.%6N %:z" 
| eval offset=case(like(earliest,"%12:00") OR like(latest,"%12:00"),43200, like(earliest,"%11:00") OR like(latest,"%11:00"),39600, like(earliest,"%10:00") OR like(latest,"%-10:00"),36000, like(earliest,"%09:00") OR like(latest,"%09:00"),32400, like(earliest,"%08:00") OR like(latest,"%08:00"),28800, like(earliest,"%07:00") OR like(latest,"%07:00"),25200, like(earliest,"%06:00") OR like(latest,"%06:00"),21600, like(earliest,"%05:00") OR like(latest,"%05:00"),18000, like(earliest,"%04:00") OR like(latest,"%04:00"),14400, like(earliest,"%03:00") OR like(latest,"%03:00"),10800, like(earliest,"%02:00") OR like(latest,"%02:00"),7200, like(earliest,"%01:00") OR like(latest,"%01:00"),3600, like(earliest,"%00:00") OR like(latest,"%00:00"),0)
|eval earliest=strptime(earliest,"%Y-%m-%d %H:%M:%S.%6N %:z")-offset
|eval latest=strptime(latest,"%Y-%m-%d %H:%M:%S.%6N %:z")-offset
| where shifted_time&amp;gt;=earliest AND shifted_time&amp;lt;=latest 
| eval _time=shifted_time+offset
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;this could be trimmed down or edited to fit exactly what you need. We have a similar situation where all data is indexed CST but data comes from other timezones and users login from other timezones. This specific chunk of syntax works for our set of needs. If you don't need to worry about data coming in from other timezones, just the users, the &lt;STRONG&gt;offset&lt;/STRONG&gt; eval could be severely trimmed down to just include PST/PDT&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 11:56:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-view-same-results-with-different-timezone-users/m-p/310762#M58391</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-08-31T11:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to view same results with different timezone users</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-view-same-results-with-different-timezone-users/m-p/310763#M58392</link>
      <description>&lt;P&gt;The answer is: it depends on each user's personal settings.  Go to &lt;CODE&gt;&amp;lt;Your Login Name&amp;gt;&lt;/CODE&gt; -&amp;gt; &lt;CODE&gt;Account settings&lt;/CODE&gt; -&amp;gt; &lt;CODE&gt;Time zone&lt;/CODE&gt; and set it to what &lt;EM&gt;you&lt;/EM&gt; desire.  From that point on, the &lt;CODE&gt;Timepicker&lt;/CODE&gt; will normalize to that &lt;CODE&gt;Time zone&lt;/CODE&gt;.  If you set it to &lt;CODE&gt;US/Central&lt;/CODE&gt; then pick &lt;CODE&gt;Yesterday&lt;/CODE&gt;, you will get a different set of values than a user who has a setting of &lt;CODE&gt;US/Pacific&lt;/CODE&gt;, just as you would expect/desire.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2017 15:32:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-view-same-results-with-different-timezone-users/m-p/310763#M58392</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-09-04T15:32:31Z</dc:date>
    </item>
  </channel>
</rss>

