<?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 from any timezone to UTC in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Convert-from-any-timezone-to-UTC/m-p/510786#M143023</link>
    <description>&lt;P&gt;try&amp;nbsp;&lt;STRONG&gt;strptime() &lt;/STRONG&gt;with&lt;STRONG&gt; %:z&amp;nbsp;&lt;/STRONG&gt;and change user preference time zone.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval _raw="7/24/2020 9:45:47 AM +05:30
7/23/2020 6:29:45 AM -05:00
7/24/2020 11:21:31 AM +07:00
7/24/2020 4:21:29 AM +00:00"
| multikv noheader=t 
| table _raw
| eval epoch=strptime(_raw,"%m/%d/%Y %T %p %:z")
| eval local_time=strftime(epoch,"%F %T")&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jul 2020 07:13:35 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2020-07-24T07:13:35Z</dc:date>
    <item>
      <title>Convert from any timezone to UTC</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-from-any-timezone-to-UTC/m-p/510779#M143021</link>
      <description>&lt;P&gt;How do I convert a timestamp from &lt;STRONG&gt;any timezone&lt;/STRONG&gt; to UTC in splunk?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a field "DeviceTime" that can hold any time zone value. Few examples below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;7/24/2020 9:45:47 AM +05:30
7/23/2020 6:29:45 AM -05:00
7/24/2020 11:21:31 AM +07:00
7/24/2020 4:21:29 AM +00:00&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to find the difference in minutes between current UTC time and the time stamp fields above&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 04:25:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-from-any-timezone-to-UTC/m-p/510779#M143021</guid>
      <dc:creator>rockstarter</dc:creator>
      <dc:date>2020-07-24T04:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Convert from any timezone to UTC</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-from-any-timezone-to-UTC/m-p/510785#M143022</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224050"&gt;@rockstarter&lt;/a&gt;&amp;nbsp;check out&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt;&amp;nbsp;'s answer on this post:&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Splunk-Search/How-to-get-current-GMT-time/m-p/510578#M142924" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/How-to-get-current-GMT-time/m-p/510578#M142924&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 05:10:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-from-any-timezone-to-UTC/m-p/510785#M143022</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-07-24T05:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Convert from any timezone to UTC</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-from-any-timezone-to-UTC/m-p/510786#M143023</link>
      <description>&lt;P&gt;try&amp;nbsp;&lt;STRONG&gt;strptime() &lt;/STRONG&gt;with&lt;STRONG&gt; %:z&amp;nbsp;&lt;/STRONG&gt;and change user preference time zone.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval _raw="7/24/2020 9:45:47 AM +05:30
7/23/2020 6:29:45 AM -05:00
7/24/2020 11:21:31 AM +07:00
7/24/2020 4:21:29 AM +00:00"
| multikv noheader=t 
| table _raw
| eval epoch=strptime(_raw,"%m/%d/%Y %T %p %:z")
| eval local_time=strftime(epoch,"%F %T")&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 07:13:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-from-any-timezone-to-UTC/m-p/510786#M143023</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-07-24T07:13:35Z</dc:date>
    </item>
  </channel>
</rss>

