<?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: Convert _time to different time zone while searching in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Convert-time-to-different-time-zone-while-searching/m-p/378432#M169016</link>
    <description>&lt;P&gt;You can use strptime and strftime to convert timezone.&lt;/P&gt;

&lt;P&gt;Get the lookup in the search and use CASE command to convert time to server timezone based on your server DNS name or something.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jun 2018 08:35:19 GMT</pubDate>
    <dc:creator>ansif</dc:creator>
    <dc:date>2018-06-11T08:35:19Z</dc:date>
    <item>
      <title>Convert _time to different time zone while searching</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-time-to-different-time-zone-while-searching/m-p/378431#M169015</link>
      <description>&lt;P&gt;I have a Splunk cloud instance getting data from multiple forwarders across globe from different time zone. I do have a heavy forwarder where I am converting the time to respective server time zone using below stanza in props.conf&lt;/P&gt;

&lt;P&gt;[host::DSF-*]&lt;BR /&gt;
TZ = America/Mexico_City&lt;/P&gt;

&lt;P&gt;While viewing the dashboards, I want the data to be automatically converted into server time zone. One of the solution for this is to set the user time zone to server time zone. But this can not be done all the time as users have to see data for multiple servers at one time.&lt;/P&gt;

&lt;P&gt;So what is the best way to convert the _time field to server time zone automatically while searching. I can maintain the lookup of host and its timezone.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2018 14:02:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-time-to-different-time-zone-while-searching/m-p/378431#M169015</guid>
      <dc:creator>santosh_sshanbh</dc:creator>
      <dc:date>2018-06-08T14:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Convert _time to different time zone while searching</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-time-to-different-time-zone-while-searching/m-p/378432#M169016</link>
      <description>&lt;P&gt;You can use strptime and strftime to convert timezone.&lt;/P&gt;

&lt;P&gt;Get the lookup in the search and use CASE command to convert time to server timezone based on your server DNS name or something.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2018 08:35:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-time-to-different-time-zone-while-searching/m-p/378432#M169016</guid>
      <dc:creator>ansif</dc:creator>
      <dc:date>2018-06-11T08:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Convert _time to different time zone while searching</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-time-to-different-time-zone-while-searching/m-p/378433#M169017</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Please refer the answer. it must help you&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/320021/how-do-i-set-timezone-properly-in-propsconf.html"&gt;https://answers.splunk.com/answers/320021/how-do-i-set-timezone-properly-in-propsconf.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Loganathan C&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2018 10:44:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-time-to-different-time-zone-while-searching/m-p/378433#M169017</guid>
      <dc:creator>logloganathan</dc:creator>
      <dc:date>2018-06-11T10:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Convert _time to different time zone while searching</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-time-to-different-time-zone-while-searching/m-p/378434#M169018</link>
      <description>&lt;P&gt;Can you please elaborate more on how to do this? I tried eval _time=strptime(strftime(_time,"%m/%d/%Y %H:%M:%S Asia/Bangkok"),"%m/%d/%Y %H:%M:%S %Z") after my base search but somehow I am not getting expected results. &lt;/P&gt;

&lt;P&gt;May be the earliest and latest time is applied first before the _time is converted.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:58:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-time-to-different-time-zone-while-searching/m-p/378434#M169018</guid>
      <dc:creator>santosh_sshanbh</dc:creator>
      <dc:date>2020-09-29T19:58:31Z</dc:date>
    </item>
  </channel>
</rss>

