<?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: DateParserVerbose - Failed to parse timestamp. Defaulting to timestamp of previous event Warning is coming in a JSON data load for EPOCH TIMESTAMP in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/DateParserVerbose-Failed-to-parse-timestamp-Defaulting-to/m-p/315409#M93254</link>
    <description>&lt;P&gt;Thanks @p_gurav&lt;/P&gt;</description>
    <pubDate>Mon, 05 Mar 2018 11:58:31 GMT</pubDate>
    <dc:creator>pbankar</dc:creator>
    <dc:date>2018-03-05T11:58:31Z</dc:date>
    <item>
      <title>DateParserVerbose - Failed to parse timestamp. Defaulting to timestamp of previous event Warning is coming in a JSON data load for EPOCH TIMESTAMP</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/DateParserVerbose-Failed-to-parse-timestamp-Defaulting-to/m-p/315403#M93248</link>
      <description>&lt;P&gt;Hello, I'm trying to get the timestamp from the below JSON data. I have two type of JSON data to be indexed in Splunk as below. &lt;BR /&gt;
&lt;STRONG&gt;NOTE&lt;/STRONG&gt; Below JSON is copied from the Splunk event by clicking the  - "Show as raw text"&lt;/P&gt;

&lt;P&gt;JSON DATA for &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;sourcetype = [lastFound]&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;{"vulnerability": null, "lastFound": "1511257640614", "os": null, "authType": ["UNIX_AUTH"],  "supportedBy": ["VM", "CA-Linux Agent", "CA-Mac Agent"], "discoveryType": ["AUTHENTICATED"], "port": null, "firstFound": "1511257640614"}&lt;/P&gt;

&lt;P&gt;JSON DATA for &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;sourcetype = [lastScanned]&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;{"size": 520227288, "created": "1432662156000", "vulnerabilities": {"severity2Count": 2, "severity5Count": 11, "severity3Count": 38, "severity1Count": 0, "severity4Count": 30}, "lastScanned": "1516151267981"}&lt;/P&gt;

&lt;P&gt;My prop.conf is&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[lastFound]
SHOULD_LINEMERGE=false
KV_MODE=json
INDEXED_EXTRACTIONS= JSON
DATETIME_CONFIG = CURRENT
MAX_EVENTS = 50000
TIME_PREFIX=lastFound:
TIME_FORMAT=%s%3N
MAX_TIMESTAMP_LOOKAHEAD=13
TZ=UTC

[lastScanned]
SHOULD_LINEMERGE=false
KV_MODE=json
INDEXED_EXTRACTIONS= JSON
DATETIME_CONFIG = CURRENT
MAX_EVENTS = 50000
TIME_PREFIX=lastScanned:
TIME_FORMAT=%s%3N
MAX_TIMESTAMP_LOOKAHEAD=13
TZ=UTC
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm curious sometime it works to give me the eventdate as per the "lastFound" but sometime it dosen't. Is it related to the WARNING I'm getting?&lt;/P&gt;

&lt;P&gt;P.S. "lastScanned" never worked!!! Please do suggest me if I'm doing anything unexpected.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 10:03:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/DateParserVerbose-Failed-to-parse-timestamp-Defaulting-to/m-p/315403#M93248</guid>
      <dc:creator>pbankar</dc:creator>
      <dc:date>2018-02-28T10:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: DateParserVerbose - Failed to parse timestamp. Defaulting to timestamp of previous event Warning is coming in a JSON data load for EPOCH TIMESTAMP</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/DateParserVerbose-Failed-to-parse-timestamp-Defaulting-to/m-p/315404#M93249</link>
      <description>&lt;P&gt;hi ,&lt;/P&gt;

&lt;P&gt;Try for last found:&lt;BR /&gt;
TIME_PREFIX = \"lastFound\":\s&lt;BR /&gt;
TIME_FORMAT = %s&lt;/P&gt;

&lt;P&gt;Try for last scanned:&lt;BR /&gt;
TIME_PREFIX = \"lastScanned\":\s&lt;BR /&gt;
TIME_FORMAT = %s&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:17:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/DateParserVerbose-Failed-to-parse-timestamp-Defaulting-to/m-p/315404#M93249</guid>
      <dc:creator>p_gurav</dc:creator>
      <dc:date>2020-09-29T18:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: DateParserVerbose - Failed to parse timestamp. Defaulting to timestamp of previous event Warning is coming in a JSON data load for EPOCH TIMESTAMP</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/DateParserVerbose-Failed-to-parse-timestamp-Defaulting-to/m-p/315405#M93250</link>
      <description>&lt;P&gt;Hi @p_gurav,&lt;/P&gt;

&lt;P&gt;Thanks for your comment. I tried below as your sugesstion was good but didn't worked for me.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[lastFound]
 SHOULD_LINEMERGE=false
 KV_MODE=json
 INDEXED_EXTRACTIONS= JSON
 DATETIME_CONFIG = CURRENT
 MAX_EVENTS = 50000
 TIME_PREFIX=\"lastFound\":\s
 TIME_FORMAT=%s%3N
 #MAX_TIMESTAMP_LOOKAHEAD=13 # commented this line. So it worked for the lastFound
 TZ=UTC

 [lastScanned]
 SHOULD_LINEMERGE=false
 KV_MODE=json
 INDEXED_EXTRACTIONS= JSON
 DATETIME_CONFIG = CURRENT
 MAX_EVENTS = 50000
 TIME_PREFIX=\"lastScanned\":\s
 TIME_FORMAT=%s%3N
# MAX_TIMESTAMP_LOOKAHEAD=13 # commented same but not working here. Not sure Why?
 TZ=UTC
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Mar 2018 05:43:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/DateParserVerbose-Failed-to-parse-timestamp-Defaulting-to/m-p/315405#M93250</guid>
      <dc:creator>pbankar</dc:creator>
      <dc:date>2018-03-05T05:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: DateParserVerbose - Failed to parse timestamp. Defaulting to timestamp of previous event Warning is coming in a JSON data load for EPOCH TIMESTAMP</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/DateParserVerbose-Failed-to-parse-timestamp-Defaulting-to/m-p/315406#M93251</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Can you try :&lt;/P&gt;

&lt;P&gt;[sample_json]&lt;BR /&gt;
DATETIME_CONFIG =&lt;BR /&gt;
INDEXED_EXTRACTIONS = json&lt;BR /&gt;
KV_MODE = none&lt;BR /&gt;
NO_BINARY_CHECK = true&lt;BR /&gt;
TIMESTAMP_FIELDS = lastFound&lt;BR /&gt;
TIME_FORMAT = %s%3N&lt;BR /&gt;
category = Structured&lt;BR /&gt;
description = JavaScript Object Notation format. For more information, visit &lt;A href="http://json.org/" target="_blank"&gt;http://json.org/&lt;/A&gt;&lt;BR /&gt;
disabled = false&lt;BR /&gt;
pulldown_type = true&lt;/P&gt;

&lt;P&gt;[sample_json1]&lt;BR /&gt;
DATETIME_CONFIG =&lt;BR /&gt;
INDEXED_EXTRACTIONS = json&lt;BR /&gt;
KV_MODE = none&lt;BR /&gt;
NO_BINARY_CHECK = true&lt;BR /&gt;
TIMESTAMP_FIELDS = lastScanned&lt;BR /&gt;
TIME_FORMAT = %s%3N&lt;BR /&gt;
category = Structured&lt;BR /&gt;
description = JavaScript Object Notation format. For more information, visit &lt;A href="http://json.org/" target="_blank"&gt;http://json.org/&lt;/A&gt;&lt;BR /&gt;
disabled = false&lt;BR /&gt;
pulldown_type = true&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:18:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/DateParserVerbose-Failed-to-parse-timestamp-Defaulting-to/m-p/315406#M93251</guid>
      <dc:creator>p_gurav</dc:creator>
      <dc:date>2020-09-29T18:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: DateParserVerbose - Failed to parse timestamp. Defaulting to timestamp of previous event Warning is coming in a JSON data load for EPOCH TIMESTAMP</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/DateParserVerbose-Failed-to-parse-timestamp-Defaulting-to/m-p/315407#M93252</link>
      <description>&lt;P&gt;@p_gurav&lt;/P&gt;

&lt;P&gt;Below is working for me:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[lastScanned]
INDEXED_EXTRACTIONS=json
KV_MODE=json
MAX_EVENTS=50000
NO_BINARY_CHECK=true
SHOULD_LINEMERGE=true
TIMESTAMP_FIELDS=lastScanned
TIME_FORMAT=%s%3N
category=Structured
description=JavaScript Object Notation format. For more information, visit &lt;A href="http://json.org/" target="test_blank"&gt;http://json.org/&lt;/A&gt;
disabled=false
pulldown_type=true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Mar 2018 11:51:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/DateParserVerbose-Failed-to-parse-timestamp-Defaulting-to/m-p/315407#M93252</guid>
      <dc:creator>pbankar</dc:creator>
      <dc:date>2018-03-05T11:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: DateParserVerbose - Failed to parse timestamp. Defaulting to timestamp of previous event Warning is coming in a JSON data load for EPOCH TIMESTAMP</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/DateParserVerbose-Failed-to-parse-timestamp-Defaulting-to/m-p/315408#M93253</link>
      <description>&lt;P&gt;Great. Happy to help!!!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 11:56:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/DateParserVerbose-Failed-to-parse-timestamp-Defaulting-to/m-p/315408#M93253</guid>
      <dc:creator>p_gurav</dc:creator>
      <dc:date>2018-03-05T11:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: DateParserVerbose - Failed to parse timestamp. Defaulting to timestamp of previous event Warning is coming in a JSON data load for EPOCH TIMESTAMP</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/DateParserVerbose-Failed-to-parse-timestamp-Defaulting-to/m-p/315409#M93254</link>
      <description>&lt;P&gt;Thanks @p_gurav&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 11:58:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/DateParserVerbose-Failed-to-parse-timestamp-Defaulting-to/m-p/315409#M93254</guid>
      <dc:creator>pbankar</dc:creator>
      <dc:date>2018-03-05T11:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: DateParserVerbose - Failed to parse timestamp. Defaulting to timestamp of previous event Warning is coming in a JSON data load for EPOCH TIMESTAMP</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/DateParserVerbose-Failed-to-parse-timestamp-Defaulting-to/m-p/315410#M93255</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/85706"&gt;@p_gurav&lt;/a&gt; I need one more help from you.&lt;/P&gt;

&lt;P&gt;In both of the JSON, there are 2 epoch time fields.&lt;/P&gt;

&lt;P&gt;sourcetype = [lastFound]&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{"vulnerability": null, "lastFound": "1511257640614", "os": null, "authType": ["UNIX_AUTH"], "supportedBy": ["VM", "CA-Linux Agent", "CA-Mac Agent"], "discoveryType": ["AUTHENTICATED"], "port": null, "firstFound": "1511257640614"}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;JSON DATA for&lt;/P&gt;

&lt;P&gt;sourcetype = [lastScanned]&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{"size": 520227288, "created": "1432662156000", "vulnerabilities": {"severity2Count": 2, "severity5Count": 11, "severity3Count": 38, "severity1Count": 0, "severity4Count": 30}, "lastScanned": "1516151267981"}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I need to provide an OR case for the TIMESTAMP_FIELDS.&lt;BR /&gt;
I tried this but it didn't work.&lt;BR /&gt;
TIMESTAMP_FIELDS=lastScanned|created&lt;/P&gt;

&lt;P&gt;Could you suggest something?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:21:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/DateParserVerbose-Failed-to-parse-timestamp-Defaulting-to/m-p/315410#M93255</guid>
      <dc:creator>pbankar</dc:creator>
      <dc:date>2020-09-29T18:21:00Z</dc:date>
    </item>
  </channel>
</rss>

