<?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: Events from same file getting separate timestamps in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Events-from-same-file-getting-separate-timestamps/m-p/498801#M85022</link>
    <description>&lt;P&gt;Try these props.  Since the timestamps in your data contain milliseconds, the TIME_FORMAT setting may not work and may need to be dropped.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype]
SHOULD_LINEMERGE=false
LINE_BREAKER=([\r\n]+)
NO_BINARY_CHECK=true
AUTO_KV_JSON=false
CHARSET=UTF-8
INDEXED_EXTRACTIONS=json
KV_MODE=none
TRUNCATE=20000
disabled=false
TIME_PREFIX="date":
TIME_FORMAT = %s
TZ = &amp;lt;time zone of source&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 14 May 2020 12:29:06 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-05-14T12:29:06Z</dc:date>
    <item>
      <title>Events from same file getting separate timestamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Events-from-same-file-getting-separate-timestamps/m-p/498797#M85018</link>
      <description>&lt;P&gt;I have json files that have multiple events per file. However when I ingest the data, Splunk parses some of the timestamps correctly and gives other events from the same file the timestamp of when the data was indexed. Anyone else had this problem and know a solution/explanation? All-time search of the source(which is path name that ends with json filename) in picture to show results&lt;IMG src="https://community.splunk.com/storage/temp/291772-screen-shot-2020-05-13-at-52305-pm.png" alt="alt text" /&gt;&lt;BR /&gt;
Thanks in advance&lt;BR /&gt;
props.conf&lt;BR /&gt;
[sourcetype]&lt;BR /&gt;
SHOULD_LINEMERGE=true&lt;BR /&gt;
LINE_BREAKER=([\r\n]+)&lt;BR /&gt;
NO_BINARY_CHECK=true&lt;BR /&gt;
AUTO_KV_JSON=false&lt;BR /&gt;
CHARSET=UTF-8&lt;BR /&gt;
INDEXED_EXTRACTIONS=json&lt;BR /&gt;
KV_MODE=none&lt;BR /&gt;
TRUNCATE=20000&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;BR /&gt;
TIME_PREFIX="date":+&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:26:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Events-from-same-file-getting-separate-timestamps/m-p/498797#M85018</guid>
      <dc:creator>wwhite12</dc:creator>
      <dc:date>2020-09-30T05:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Events from same file getting separate timestamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Events-from-same-file-getting-separate-timestamps/m-p/498798#M85019</link>
      <description>&lt;P&gt;Your props.conf is missing &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt;.  Share a sample event and we can tell you what else should be changed.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 00:11:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Events-from-same-file-getting-separate-timestamps/m-p/498798#M85019</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-05-14T00:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Events from same file getting separate timestamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Events-from-same-file-getting-separate-timestamps/m-p/498799#M85020</link>
      <description>&lt;P&gt;Here's a generic sample of a file that would have two events. In this example, Splunk would've read the epoch "date" field correctly for one but given the other one an indexed time timestamp. &lt;/P&gt;

&lt;P&gt;{"message”:”Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Platea dictumst vestibulum rhoncus est. Mattis rhoncus urna neque viverra justo. Justo eget magna fermentum iaculis eu non diam phasellus. Morbi tempus iaculis urna id volutpat lacus laoreet.“,”type”:”bType”,”level":"INFO","details":{},"date":1585769642062}&lt;/P&gt;

&lt;P&gt;{"message”:”blah blah blah”,”type”:”aType”,”level":"INFO","details":{},"date":1585769641953}&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 00:49:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Events-from-same-file-getting-separate-timestamps/m-p/498799#M85020</guid>
      <dc:creator>wwhite12</dc:creator>
      <dc:date>2020-05-14T00:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Events from same file getting separate timestamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Events-from-same-file-getting-separate-timestamps/m-p/498800#M85021</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;SHOULD_LINEMERGE=true
LINE_BREAKER=([\r\n]+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;you should modify this.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 00:54:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Events-from-same-file-getting-separate-timestamps/m-p/498800#M85021</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-14T00:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Events from same file getting separate timestamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Events-from-same-file-getting-separate-timestamps/m-p/498801#M85022</link>
      <description>&lt;P&gt;Try these props.  Since the timestamps in your data contain milliseconds, the TIME_FORMAT setting may not work and may need to be dropped.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype]
SHOULD_LINEMERGE=false
LINE_BREAKER=([\r\n]+)
NO_BINARY_CHECK=true
AUTO_KV_JSON=false
CHARSET=UTF-8
INDEXED_EXTRACTIONS=json
KV_MODE=none
TRUNCATE=20000
disabled=false
TIME_PREFIX="date":
TIME_FORMAT = %s
TZ = &amp;lt;time zone of source&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 May 2020 12:29:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Events-from-same-file-getting-separate-timestamps/m-p/498801#M85022</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-05-14T12:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Events from same file getting separate timestamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Events-from-same-file-getting-separate-timestamps/m-p/498802#M85023</link>
      <description>&lt;P&gt;Added these two configs to props and it seems to parse data correctly, I have identified the underlying issue as to why some events were incorrectly parsed though and it has to do with similar data fields, will have to ask that in a separate question though&lt;BR /&gt;
TIME_FORMAT=%s%3N&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=13&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:26:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Events-from-same-file-getting-separate-timestamps/m-p/498802#M85023</guid>
      <dc:creator>wwhite12</dc:creator>
      <dc:date>2020-09-30T05:26:33Z</dc:date>
    </item>
  </channel>
</rss>

