<?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 can you adjust timezone in search? Convert UTC to AEST in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-you-adjust-timezone-in-search-Convert-UTC-to-AEST/m-p/560907#M159419</link>
    <description>&lt;P&gt;How can I apply this to a pre existing _time field value?&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jul 2021 04:20:15 GMT</pubDate>
    <dc:creator>ebs</dc:creator>
    <dc:date>2021-07-27T04:20:15Z</dc:date>
    <item>
      <title>How can you adjust timezone in search? Convert UTC to AEST</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-you-adjust-timezone-in-search-Convert-UTC-to-AEST/m-p/560723#M159372</link>
      <description>&lt;P&gt;Hi, I have a field value&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;2021-07-26T00:30:51.411 UTC&lt;/STRONG&gt; which I got from &lt;EM&gt;| eval strftime(_time,"%Y-%m-%dT%H:%M:%S.%Q %Z")&amp;nbsp;&amp;nbsp;&lt;/EM&gt;how can I turn this field into the Brisbane timezone (+10 hrs)?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 01:20:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-you-adjust-timezone-in-search-Convert-UTC-to-AEST/m-p/560723#M159372</guid>
      <dc:creator>ebs</dc:creator>
      <dc:date>2021-07-26T01:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: How can you adjust timezone in search? Convert UTC to AEST</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-you-adjust-timezone-in-search-Convert-UTC-to-AEST/m-p/560725#M159373</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/228215"&gt;@ebs&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are already under Brisbane timezone under user settings, and above said timestamp is mapped _time then your _time value is by default get adjusted to AEST isn't that you are after?&lt;/P&gt;&lt;P&gt;otherwise if time is a field not mapped to _time then a 10 hour shall be added to it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 02:42:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-you-adjust-timezone-in-search-Convert-UTC-to-AEST/m-p/560725#M159373</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-07-26T02:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can you adjust timezone in search? Convert UTC to AEST</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-you-adjust-timezone-in-search-Convert-UTC-to-AEST/m-p/560875#M159407</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/163730"&gt;@venkatasri&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the answer but sadly this won't work for my use case as I'm using tstats and datamodels and even when my personal timezone is set to Brisbane the time of events is still in UTC. So it needs to be through SPL&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 22:48:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-you-adjust-timezone-in-search-Convert-UTC-to-AEST/m-p/560875#M159407</guid>
      <dc:creator>ebs</dc:creator>
      <dc:date>2021-07-26T22:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: How can you adjust timezone in search? Convert UTC to AEST</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-you-adjust-timezone-in-search-Convert-UTC-to-AEST/m-p/560878#M159409</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/228215"&gt;@ebs&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;User settings should have been fine could be the way _time been extracted ignored TZ settings. You can try this as an alternative.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval _time="2021-07-26T00:30:51.411 UTC" 
| eval _time=strptime(_time." +1000", "%Y-%m-%dT%H:%M:%S.%3Q %Z") 
| convert ctime(_time)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="venkatasri_0-1627341582708.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15254iA1B88DE5A875BBA9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="venkatasri_0-1627341582708.png" alt="venkatasri_0-1627341582708.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;An upvote would be appreciated and Accept solution if this reply helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 23:21:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-you-adjust-timezone-in-search-Convert-UTC-to-AEST/m-p/560878#M159409</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-07-26T23:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can you adjust timezone in search? Convert UTC to AEST</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-you-adjust-timezone-in-search-Convert-UTC-to-AEST/m-p/560907#M159419</link>
      <description>&lt;P&gt;How can I apply this to a pre existing _time field value?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 04:20:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-you-adjust-timezone-in-search-Convert-UTC-to-AEST/m-p/560907#M159419</guid>
      <dc:creator>ebs</dc:creator>
      <dc:date>2021-07-27T04:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can you adjust timezone in search? Convert UTC to AEST</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-you-adjust-timezone-in-search-Convert-UTC-to-AEST/m-p/560911#M159421</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/228215"&gt;@ebs&lt;/a&gt;&amp;nbsp;Above SPL replaces _time at search-time but not permanent to indexers.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 04:30:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-you-adjust-timezone-in-search-Convert-UTC-to-AEST/m-p/560911#M159421</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-07-27T04:30:18Z</dc:date>
    </item>
  </channel>
</rss>

