<?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 extract timezone in json? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-timezone-in-json/m-p/474600#M81518</link>
    <description>&lt;P&gt;The timestamp is of GMT format(Z at the end indicates time is GMT). Assuming that the source has actually put in the timestamp in GMT and not just stamped the local time with the GMT format, you could just ingest it as GMT. Based on the timezone set in your profile, Splunk would convert the timestamp to your local timestamp.&lt;/P&gt;

&lt;P&gt;EDIT: I just converted the startTime field in &lt;A href="https://www.epochconverter.com/"&gt;https://www.epochconverter.com/&lt;/A&gt; and it looks like the timestamp is actual GMT and not just local time stamped in GMT format.&lt;/P&gt;</description>
    <pubDate>Sat, 02 Nov 2019 12:52:44 GMT</pubDate>
    <dc:creator>arjunpkishore5</dc:creator>
    <dc:date>2019-11-02T12:52:44Z</dc:date>
    <item>
      <title>How to extract timezone in json?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-timezone-in-json/m-p/474599#M81517</link>
      <description>&lt;P&gt;We have a log that we've been asked to ingest which is a json format file that's similar to this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; {"type":"appRequest",
    "severity":"INFO",
    "eventid":"abcdefg1234567",
    "userid":76965813945444,
    "timezone":7,
    "timestamp":"2019-10-30T23:57:59.958Z",
    "logLevel":"INFO",
    "url":"/some/url",
    "diagnosticsEventId":"someEventId",
    "startTime":1572479879958,
    "logDetails":"200,OK"}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As you can see, the timezone is specified in a field instead of built into the timestamp string.  I've look around to no avail, is there a way to specify the event timezone based on the timezone (this is offset to GMT in hours)?&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2019 00:31:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-timezone-in-json/m-p/474599#M81517</guid>
      <dc:creator>paxtaru</dc:creator>
      <dc:date>2019-11-02T00:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract timezone in json?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-timezone-in-json/m-p/474600#M81518</link>
      <description>&lt;P&gt;The timestamp is of GMT format(Z at the end indicates time is GMT). Assuming that the source has actually put in the timestamp in GMT and not just stamped the local time with the GMT format, you could just ingest it as GMT. Based on the timezone set in your profile, Splunk would convert the timestamp to your local timestamp.&lt;/P&gt;

&lt;P&gt;EDIT: I just converted the startTime field in &lt;A href="https://www.epochconverter.com/"&gt;https://www.epochconverter.com/&lt;/A&gt; and it looks like the timestamp is actual GMT and not just local time stamped in GMT format.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2019 12:52:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-timezone-in-json/m-p/474600#M81518</guid>
      <dc:creator>arjunpkishore5</dc:creator>
      <dc:date>2019-11-02T12:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract timezone in json?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-timezone-in-json/m-p/474601#M81519</link>
      <description>&lt;P&gt;Thank you.  It's a misunderstanding on my part.  I will confirm with our developer as well just to make sure.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2019 15:24:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-timezone-in-json/m-p/474601#M81519</guid>
      <dc:creator>paxtaru</dc:creator>
      <dc:date>2019-11-02T15:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract timezone in json?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-timezone-in-json/m-p/621122#M106995</link>
      <description>&lt;P&gt;I have this issue as well but without the benefit of logs in GMT. My logs are multiple time zones in a single host, index, source, sourcetype combo. Here's an example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{ [-]
   AppID:
   ElapsedSeconds: 0.694 seconds
   Event: RestCall
   Method: POST
   Request: { [+]
   }
   RequestLength: 371
   RequestTimestamp: 16-Nov-2022 12:59:54
   Response: { [+]
   }
   ResponseLength: 286
   ResponseTimestamp: 16-Nov-2022 12:59:55
   SequenceNumber: null
   ServiceName:
   ServiceURL: 
   StatusCode: 200
   StatusText: OK
   TimeZone: Asia/Shanghai
   UserID:
   UserIP: 127.0.0.1
   UserName: 
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In total there are about 85 different timezones logging here. Any idea how to get Splunk to recognize the timezone when not with the time stamp?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 19:08:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-timezone-in-json/m-p/621122#M106995</guid>
      <dc:creator>Labbemiche</dc:creator>
      <dc:date>2022-11-16T19:08:23Z</dc:date>
    </item>
  </channel>
</rss>

