<?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 Trouble extracting time in JSON in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Trouble-extracting-time-in-JSON/m-p/441755#M77026</link>
    <description>&lt;P&gt;I have a JSON log file that I'm attempting to ingest (Splunk v6.6.5).  The events parse correctly, but the epoch time isn't being used as the event timestamp.  Splunk is using the file modified date for the event timestamp.&lt;/P&gt;

&lt;P&gt;Here's a sample record and my props config (which lives on the Indexers):&lt;/P&gt;

&lt;P&gt;{"time":1531405028,"name":"PSIKD01.BOOT","appl":"@ABCVDIF","server":"SERVER1","user":"LSRVID","HandleCount":792,"KernelModeTime":66875000,"OtherOperationCount":18498,"OtherTransferCount":630163,"PageFaults":320216,"PageFileUsage":1349924,"PrivatePageCount":1382322176,"ReadOperationCount":36716,"ReadTransferCount":38844376,"ThreadCount":34,"UserModeTime":363281250,"VirtualSize":2207380942848,"WorkingSetSize":672907264,"WriteOperationCount":205,"WriteTransferCount":63855}&lt;/P&gt;

&lt;P&gt;[apm_json]&lt;BR /&gt;
KV_MODE = none&lt;BR /&gt;
INDEXED_EXTRACTIONS = json&lt;BR /&gt;
TIME_PREFIX = "time":&lt;BR /&gt;
TIME_FORMAT = %s&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
TRUNCATE = 100000&lt;/P&gt;

&lt;P&gt;Any help would be appreciated.  Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 20:28:13 GMT</pubDate>
    <dc:creator>ericlarsen</dc:creator>
    <dc:date>2020-09-29T20:28:13Z</dc:date>
    <item>
      <title>Trouble extracting time in JSON</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trouble-extracting-time-in-JSON/m-p/441755#M77026</link>
      <description>&lt;P&gt;I have a JSON log file that I'm attempting to ingest (Splunk v6.6.5).  The events parse correctly, but the epoch time isn't being used as the event timestamp.  Splunk is using the file modified date for the event timestamp.&lt;/P&gt;

&lt;P&gt;Here's a sample record and my props config (which lives on the Indexers):&lt;/P&gt;

&lt;P&gt;{"time":1531405028,"name":"PSIKD01.BOOT","appl":"@ABCVDIF","server":"SERVER1","user":"LSRVID","HandleCount":792,"KernelModeTime":66875000,"OtherOperationCount":18498,"OtherTransferCount":630163,"PageFaults":320216,"PageFileUsage":1349924,"PrivatePageCount":1382322176,"ReadOperationCount":36716,"ReadTransferCount":38844376,"ThreadCount":34,"UserModeTime":363281250,"VirtualSize":2207380942848,"WorkingSetSize":672907264,"WriteOperationCount":205,"WriteTransferCount":63855}&lt;/P&gt;

&lt;P&gt;[apm_json]&lt;BR /&gt;
KV_MODE = none&lt;BR /&gt;
INDEXED_EXTRACTIONS = json&lt;BR /&gt;
TIME_PREFIX = "time":&lt;BR /&gt;
TIME_FORMAT = %s&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
TRUNCATE = 100000&lt;/P&gt;

&lt;P&gt;Any help would be appreciated.  Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:28:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trouble-extracting-time-in-JSON/m-p/441755#M77026</guid>
      <dc:creator>ericlarsen</dc:creator>
      <dc:date>2020-09-29T20:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble extracting time in JSON</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trouble-extracting-time-in-JSON/m-p/441756#M77027</link>
      <description>&lt;P&gt;Everything looks good in the config. Have you looked to see if there is anything overriding that configuration that might be causing the date parsing problem? Use &lt;CODE&gt;btool&lt;/CODE&gt; to see what Splunk is actually seeing as the configs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk btool props list --debug | less
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then search for &lt;CODE&gt;apm_json&lt;/CODE&gt; and see if the configs for that sourcetype match the above configs.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 19:02:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trouble-extracting-time-in-JSON/m-p/441756#M77027</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2018-07-17T19:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble extracting time in JSON</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Trouble-extracting-time-in-JSON/m-p/441757#M77028</link>
      <description>&lt;P&gt;I had run btool on props previously.  I confirmed my sourcetype is active.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 19:06:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Trouble-extracting-time-in-JSON/m-p/441757#M77028</guid>
      <dc:creator>ericlarsen</dc:creator>
      <dc:date>2018-07-17T19:06:34Z</dc:date>
    </item>
  </channel>
</rss>

