<?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 how to change timezone for splunk-add-onn for google cloud platform in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/how-to-change-timezone-for-splunk-add-onn-for-google-cloud/m-p/559482#M92533</link>
    <description>&lt;P&gt;hi, please i would like to ask for help to determine how to convert the timezone of events i am indexing with the gcp cloud plattform add-on before they are indexed. Events arrive today in UTC, and I need to convert that time to gmt-4. I have been trying from the sourcetype configuration, without success. I was also seeing this link, without much success&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.1/Data/Applytimezoneoffsetstotimestamps" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.1/Data/Applytimezoneoffsetstotimestamps&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Jul 2021 18:31:20 GMT</pubDate>
    <dc:creator>jjofret</dc:creator>
    <dc:date>2021-07-14T18:31:20Z</dc:date>
    <item>
      <title>how to change timezone for splunk-add-onn for google cloud platform</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-change-timezone-for-splunk-add-onn-for-google-cloud/m-p/559482#M92533</link>
      <description>&lt;P&gt;hi, please i would like to ask for help to determine how to convert the timezone of events i am indexing with the gcp cloud plattform add-on before they are indexed. Events arrive today in UTC, and I need to convert that time to gmt-4. I have been trying from the sourcetype configuration, without success. I was also seeing this link, without much success&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.1/Data/Applytimezoneoffsetstotimestamps" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.1/Data/Applytimezoneoffsetstotimestamps&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 18:31:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-change-timezone-for-splunk-add-onn-for-google-cloud/m-p/559482#M92533</guid>
      <dc:creator>jjofret</dc:creator>
      <dc:date>2021-07-14T18:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to change timezone for splunk-add-onn for google cloud platform</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-change-timezone-for-splunk-add-onn-for-google-cloud/m-p/559710#M92556</link>
      <description>&lt;P&gt;When you say you need to convert that time, what do you mean exactly?&lt;/P&gt;&lt;P&gt;Events are stored using UTC at index time. At search time Splunk uses the time zone set on the Splunk instance (default time zone), unless a given user has changes that.&lt;/P&gt;&lt;P&gt;I think the latter is what you are after is displaying the correct time when searching. For this you don't need any conversion, just go to your user preferences and change your time zone to GMT. Splunk will then automatically adjust the results for you.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 21:22:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-change-timezone-for-splunk-add-onn-for-google-cloud/m-p/559710#M92556</guid>
      <dc:creator>codebuilder</dc:creator>
      <dc:date>2021-07-15T21:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to change timezone for splunk-add-onn for google cloud platform</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-change-timezone-for-splunk-add-onn-for-google-cloud/m-p/559851#M92571</link>
      <description>&lt;P&gt;Hi, this problem was resolved with this article:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.1/Data/Configuretimestamprecognition" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.1/Data/Configuretimestamprecognition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks so much&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 16:58:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-change-timezone-for-splunk-add-onn-for-google-cloud/m-p/559851#M92571</guid>
      <dc:creator>jjofret</dc:creator>
      <dc:date>2021-07-16T16:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to change timezone for splunk-add-onn for google cloud platform</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-change-timezone-for-splunk-add-onn-for-google-cloud/m-p/567024#M100755</link>
      <description>&lt;P&gt;We are in EST and all data from Google in in UTC, so all of our data was four hours off:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=&amp;lt;your gcp index&amp;gt; | 
eval indextime=strftime(_indextime,"%Y-%m-%d %H:%M:%S") | 
eval delta = _indextime - _time | 
table sourcetype, _time, _indextime, indextime, delta |
sort indextime desc&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sourcetype _time indextime delta&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;google:gcp:pubsub:message&lt;/TD&gt;&lt;TD&gt;2021-09-14 21:13:45.381&lt;/TD&gt;&lt;TD&gt;2021-09-14 17:13:48&lt;/TD&gt;&lt;TD&gt;-14397.381004&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;google:gcp:pubsub:message&lt;/TD&gt;&lt;TD&gt;2021-09-14 21:13:47.272&lt;/TD&gt;&lt;TD&gt;2021-09-14 17:13:47&lt;/TD&gt;&lt;TD&gt;-14400.272801&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;google:gcp:pubsub:message&lt;/TD&gt;&lt;TD&gt;2021-09-14 21:13:46.430&lt;/TD&gt;&lt;TD&gt;2021-09-14 17:13:47&lt;/TD&gt;&lt;TD&gt;-14399.43&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;jofret, is this the change you made? Edit file&amp;nbsp;/opt/splunk/etc/apps/Splunk_TA_google-cloudplatform/local/props.conf&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;[google:billing:json]
TZ = UTC

[google:billing:csv]
TZ = UTC

[google:gcp:billing:report]
TZ = UTC

[google:gcp:pubsub:message]
TZ = UTC

[google:gcp:pubsub:audit:auth]
TZ = UTC

[google:gsuite:pubsub:audit:auth]
TZ = UTC

[google:gcp:gsuite:admin:directory:users]
TZ = UTC

[google:gcp:buckets:xmldata]
TZ = UTC

[google:gcp:buckets:jsondata]
TZ = UTC

[google:gcp:buckets:*data]
TZ = UTC

[google:gcp:compute:instance]
TZ = UTC

[google:gcp:compute:vpc_flows]
TZ = UTC&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After refreshing the heavy forwarder this Splunk add is running on the the issue seems to be resolved.&lt;/P&gt;&lt;P&gt;sourcetype _time indextime delta&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;google:gcp:pubsub:message&lt;/TD&gt;&lt;TD&gt;2021-09-14 17:20:38.147&lt;/TD&gt;&lt;TD&gt;2021-09-14 17:20:39&lt;/TD&gt;&lt;TD&gt;0.852020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;google:gcp:pubsub:message&lt;/TD&gt;&lt;TD&gt;2021-09-14 17:20:38.146&lt;/TD&gt;&lt;TD&gt;2021-09-14 17:20:39&lt;/TD&gt;&lt;TD&gt;0.853950&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;google:gcp:pubsub:message&lt;/TD&gt;&lt;TD&gt;2021-09-14 17:20:38.097&lt;/TD&gt;&lt;TD&gt;2021-09-14 17:20:39&lt;/TD&gt;&lt;TD&gt;0.902150&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 14 Sep 2021 21:27:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-change-timezone-for-splunk-add-onn-for-google-cloud/m-p/567024#M100755</guid>
      <dc:creator>andrewcg</dc:creator>
      <dc:date>2021-09-14T21:27:44Z</dc:date>
    </item>
  </channel>
</rss>

