<?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 Why does splunk think it can't parse my timestamp in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-think-it-can-t-parse-my-timestamp/m-p/212915#M41847</link>
    <description>&lt;P&gt;I am seeing some odd behavior.  My setup is this:  Splunk 6.3.1 Enterprise, 1 search head, 4 indexers, 1 forwarder Plus licence manager/deployment server.&lt;BR /&gt;
The Props.conf file is on the search head, all indexers and forwarder.  It looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[json_foo]
FIELDALIAS-curlybrace=office{} as office processors{} as processors
INDEXED_EXTRACTIONS=json
KV_MODE=none
MAX_TIMESTAMP_LOOKAHEAD=30
NO_BINARY_CHECK=true
TIMESTAMP_FIELDS= upTime
TIME_FORMAT= %Y-%m-%dT%H:%M:%S%Z
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The inputs.conf file on the forwarder looks like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[batch:///data/ingest/json-data]
index=foo
sourcetype=json_foo
move_policy=sinkhole
blacklist=\..*\.json
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The issue I'm seeing is that I am getting " DateParserVerbose - Failed to parse timestamp. Defaulting to timestamp of previous ..." messages for &lt;STRONG&gt;some&lt;/STRONG&gt; events.  Typically it is all events in a certain file that cause the error.   The error shows up in the splunkd.log file on the forwarder AND whichever indexer indexes the event.  &lt;/P&gt;

&lt;P&gt;A sample  of the data is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[
{
  identifier: "ccce-da12-83ac",
  city: "baltimore",
  upTime: "2016-04-22T16:40:15Z",
  filesize: 14423,
  user: ["user1", "user2", "user3"]
},
{
  identifier: "cc32s-da12-83de",
  city: "paris",
  upTime: "2016-04-22T16:43:52Z",
  filesize: 1223,
  user: ["user1", "user2"]
}
]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I look at the source files, the data looks fine, and when I examine what is indexed in splunk, the upTime value and _time are the same.  I've even compared the  non-readable values and they are identical.&lt;/P&gt;

&lt;P&gt;index=foo | eval mytime=_time | eval mytime2=strptime(upTime,"%Y-%m-%dT%H:%M:%S%Z") | table mytime, mytime2&lt;/P&gt;

&lt;P&gt;I'm hoping i can just ignore this since it is just a warning and the values are correct.  Can anyone see if I am doing something wrong?  Any help would be appreciated.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Apr 2016 21:54:33 GMT</pubDate>
    <dc:creator>lyndac</dc:creator>
    <dc:date>2016-04-22T21:54:33Z</dc:date>
    <item>
      <title>Why does splunk think it can't parse my timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-think-it-can-t-parse-my-timestamp/m-p/212915#M41847</link>
      <description>&lt;P&gt;I am seeing some odd behavior.  My setup is this:  Splunk 6.3.1 Enterprise, 1 search head, 4 indexers, 1 forwarder Plus licence manager/deployment server.&lt;BR /&gt;
The Props.conf file is on the search head, all indexers and forwarder.  It looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[json_foo]
FIELDALIAS-curlybrace=office{} as office processors{} as processors
INDEXED_EXTRACTIONS=json
KV_MODE=none
MAX_TIMESTAMP_LOOKAHEAD=30
NO_BINARY_CHECK=true
TIMESTAMP_FIELDS= upTime
TIME_FORMAT= %Y-%m-%dT%H:%M:%S%Z
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The inputs.conf file on the forwarder looks like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[batch:///data/ingest/json-data]
index=foo
sourcetype=json_foo
move_policy=sinkhole
blacklist=\..*\.json
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The issue I'm seeing is that I am getting " DateParserVerbose - Failed to parse timestamp. Defaulting to timestamp of previous ..." messages for &lt;STRONG&gt;some&lt;/STRONG&gt; events.  Typically it is all events in a certain file that cause the error.   The error shows up in the splunkd.log file on the forwarder AND whichever indexer indexes the event.  &lt;/P&gt;

&lt;P&gt;A sample  of the data is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[
{
  identifier: "ccce-da12-83ac",
  city: "baltimore",
  upTime: "2016-04-22T16:40:15Z",
  filesize: 14423,
  user: ["user1", "user2", "user3"]
},
{
  identifier: "cc32s-da12-83de",
  city: "paris",
  upTime: "2016-04-22T16:43:52Z",
  filesize: 1223,
  user: ["user1", "user2"]
}
]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I look at the source files, the data looks fine, and when I examine what is indexed in splunk, the upTime value and _time are the same.  I've even compared the  non-readable values and they are identical.&lt;/P&gt;

&lt;P&gt;index=foo | eval mytime=_time | eval mytime2=strptime(upTime,"%Y-%m-%dT%H:%M:%S%Z") | table mytime, mytime2&lt;/P&gt;

&lt;P&gt;I'm hoping i can just ignore this since it is just a warning and the values are correct.  Can anyone see if I am doing something wrong?  Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2016 21:54:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-think-it-can-t-parse-my-timestamp/m-p/212915#M41847</guid>
      <dc:creator>lyndac</dc:creator>
      <dc:date>2016-04-22T21:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why does splunk think it can't parse my timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-think-it-can-t-parse-my-timestamp/m-p/212916#M41848</link>
      <description>&lt;P&gt;MAX_TIMESTAMP_LOOKAHEAD is telling splunk to only look 30 bytes into the message. Your timestamp is well beyond the 30 byte marker.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:32:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-think-it-can-t-parse-my-timestamp/m-p/212916#M41848</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2020-09-29T09:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why does splunk think it can't parse my timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-think-it-can-t-parse-my-timestamp/m-p/212917#M41849</link>
      <description>&lt;P&gt;Off topic: If you upgrade your version you can skip that alias with this props.conf entry:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;JSON_TRIM_BRACES_IN_ARRAY_NAMES = &amp;lt;bool&amp;gt;
* Tell the json parser not to add the curly braces to array names.
* Note that enabling this will make json indextime extracted array fiels names
  inconsistant with spath search processor's naming convention.
* For a json document containing the following array object, with trimming 
  enabled a indextime field 'mount_point' will be generated instead of the 
  spath consistant field 'mount_point{}'
      "mount_point": ["/disk48","/disk22"]
* Defaults to false.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Apr 2016 22:20:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-think-it-can-t-parse-my-timestamp/m-p/212917#M41849</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2016-04-22T22:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Why does splunk think it can't parse my timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-think-it-can-t-parse-my-timestamp/m-p/212918#M41850</link>
      <description>&lt;P&gt;Oh geez...I was thinking TIMESTAMP_FIELDS behaved the same as TIME_PREFIX and the counter started when the field was found.  I adjusted this value, but still get the same warning.&lt;/P&gt;

&lt;P&gt;Turns out the data was actually MISSING the upTime field.  Don't know how I missed that.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:29:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-think-it-can-t-parse-my-timestamp/m-p/212918#M41850</guid>
      <dc:creator>lyndac</dc:creator>
      <dc:date>2020-09-29T09:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why does splunk think it can't parse my timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-think-it-can-t-parse-my-timestamp/m-p/212919#M41851</link>
      <description>&lt;P&gt;This is nifty but are there any consequences?  The docs imply I wouldn't be able to use spath if I trim the braces.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2016 15:01:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-think-it-can-t-parse-my-timestamp/m-p/212919#M41851</guid>
      <dc:creator>lyndac</dc:creator>
      <dc:date>2016-04-25T15:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why does splunk think it can't parse my timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-think-it-can-t-parse-my-timestamp/m-p/212920#M41852</link>
      <description>&lt;P&gt;If you use INDEXED_EXTRACTIONS you won't really need spath any more.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2016 21:05:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-think-it-can-t-parse-my-timestamp/m-p/212920#M41852</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2016-04-25T21:05:42Z</dc:date>
    </item>
  </channel>
</rss>

