<?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 timestamp for JSON events with no date/time? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-timestamp-for-JSON-events-with-no-date-time/m-p/618136#M106670</link>
    <description>&lt;P&gt;Verified with Splunk support that setting the time zone in props in combination with setting time zone preference in GUI is correct&lt;/P&gt;</description>
    <pubDate>Mon, 24 Oct 2022 13:32:20 GMT</pubDate>
    <dc:creator>jwalzerpitt</dc:creator>
    <dc:date>2022-10-24T13:32:20Z</dc:date>
    <item>
      <title>How to extract timestamp for JSON events with no date/time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-timestamp-for-JSON-events-with-no-date-time/m-p/617522#M106616</link>
      <description>&lt;P&gt;I have a flat file that is in JSON format where events have no date/time as follows:&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;{"device": "info.gw.xyz.com", "ip": "x.x.x.x", "age": "0", "mac": "Incomplete", "interface": " "}, {"device": "info.gw.xyz.com", "ip": "x.x.x.x", "age": "-", "mac": "0000.0000.0000", "interface": "Vlan673"}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My props.conf file is as follows:&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;[my_arp]
INDEXED_EXTRACTIONS = JSON
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;Problem is when I search events, they are four hours in the future.&lt;/P&gt;&lt;P&gt;The files are on a sever that has the UF and that has the correct time set so looking through the Splunk docs&amp;nbsp; (&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.1/Data/HowSplunkextractstimestamps" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.1/Data/HowSplunkextractstimestamps&lt;/A&gt;) I see this:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV class=""&gt;If no events in the source have a date, Splunk software tries to find a date in the source name or file name. The events must have a time, even if they don't have a date.&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The files do have a date and time&lt;/P&gt;&lt;P&gt;How do I fix this?&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 13:09:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-timestamp-for-JSON-events-with-no-date-time/m-p/617522#M106616</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2022-10-18T13:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract timestamp for JSON events with no date/time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-timestamp-for-JSON-events-with-no-date-time/m-p/617527#M106617</link>
      <description>&lt;P&gt;So just checked preferences for my account in Splunk Cloud and no default was set so I changed that to GMT/Eastern Time and now when I search the events they have the correct time.&lt;/P&gt;&lt;P&gt;Just making sure this is the fix&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 13:13:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-timestamp-for-JSON-events-with-no-date-time/m-p/617527#M106617</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2022-10-18T13:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract timestamp for JSON events with no date/time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-timestamp-for-JSON-events-with-no-date-time/m-p/618136#M106670</link>
      <description>&lt;P&gt;Verified with Splunk support that setting the time zone in props in combination with setting time zone preference in GUI is correct&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 13:32:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-timestamp-for-JSON-events-with-no-date-time/m-p/618136#M106670</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2022-10-24T13:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract timestamp for JSON events with no date/time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-timestamp-for-JSON-events-with-no-date-time/m-p/618137#M106671</link>
      <description>&lt;P&gt;Yes. The data is being logged in GMT/UTC as you specified in props.conf. The _time (or Time column) in search result is translated event time based on current user's timezone (so if you're TZ before UTC, events will show in future). If you want to see the time in the same timezone where they occurred, then what you did is correct (changing your timezone to match data timezone).&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 13:36:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-timestamp-for-JSON-events-with-no-date-time/m-p/618137#M106671</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2022-10-24T13:36:33Z</dc:date>
    </item>
  </channel>
</rss>

