<?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 break events based on timestamp at index-time? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-break-events-based-on-timestamp-at-index-time/m-p/349114#M64100</link>
    <description>&lt;P&gt;Thanks for the reply. Looks better now. Timestamps being properly recognised. But it's not breaking events like I want it. It's doing one event per line, but I want all lines with exact same timestamp to be one event. I'm playing in the Add Data interface and can't figure it out. Here's the props.conf settings I have.&lt;/P&gt;

&lt;P&gt;I tried BREAK_ONLY_BEFORE=^[ like you suggested but it was still not doing what I want it to do.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ &amp;lt;SOURCETYPE NAME&amp;gt; ]
SHOULD_LINEMERGE=true
NO_BINARY_CHECK=true
CHARSET=UTF-8
MAX_TIMESTAMP_LOOKAHEAD=60
disabled=false
TIME_FORMAT=%m/%d/%y %H:%M:%S:%3N %Z
TIME_PREFIX=\[
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Data example: I would like line 45, 46 and 47 to be 1 event. They all have the same timestamp. Line 48 would be the start of a new event.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;45      3/14/18
12:12:41.610 AM 
[3/14/18 0:12:41:610 EDT] 00000039 SystemErr     R  at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
46      3/14/18
12:12:41.610 AM 
[3/14/18 0:12:41:610 EDT] 00000039 SystemErr     R  at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
47      3/14/18
12:12:41.610 AM 
[3/14/18 0:12:41:610 EDT] 00000039 SystemErr     R  at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1662)
48      3/14/18
1:00:02.465 AM  
[3/14/18 1:00:02:465 EDT] 0000006b SystemErr     R com.ibm.wcc.service.intf.ProcessingException
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 29 Sep 2020 18:27:19 GMT</pubDate>
    <dc:creator>patouellet</dc:creator>
    <dc:date>2020-09-29T18:27:19Z</dc:date>
    <item>
      <title>How to break events based on timestamp at index-time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-break-events-based-on-timestamp-at-index-time/m-p/349110#M64096</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Having a hard time parsing a file the way I need it too. Got a file with events spilling over multiple lines. There is no disnernable event breaking regex I could use to break out events. What seems to make more sense is to recognize multiple lines as a single event based on timestamp. That's what I want to do. I read that I should use the TIME_FORMAT and some other thing to tell Splunk to do that at Index time. But I'm stuck - for some reason I'm getting parsing errors.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Given this sample log line:
[3/14/18 4:00:08:816 EDT] 00000033 SystemErr     R  at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:278)

Using this TIME_FORMAT value:
%m/%d/%y %H:%M:%S:%3N %Z
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Why am I getting "Could not use strptime to parse timestamp from "[3/14/18 4:00:08:816 EDT]" &lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 15:26:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-break-events-based-on-timestamp-at-index-time/m-p/349110#M64096</guid>
      <dc:creator>patouellet</dc:creator>
      <dc:date>2018-03-14T15:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to break events based on timestamp at index-time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-break-events-based-on-timestamp-at-index-time/m-p/349111#M64097</link>
      <description>&lt;P&gt;You should read those manual  first :&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.2/Data/Configureeventlinebreaking"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.2/Data/Configureeventlinebreaking&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.2/Data/Configuretimestamprecognition"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.2/Data/Configuretimestamprecognition&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;then you can upload a sample to your search-head and use the wizard to create and test a sourcetype.&lt;BR /&gt;
then when working, export the sourcetype props.conf config and deploy it to your parsing layer (indexers, and heavy forwarders)&lt;/P&gt;

&lt;P&gt;I suspect that the sourcetype will look like :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[custom_sourcetype]
SHOULD_LINEMERGE=true
BREAK_ONLY_BEFORE=^\[
TIME_FORMAT=%m/%d/%y %H:%M:%S:%3N %Z
TIME_PREFIX=\[
MAX_TIMESTAMP_LOOKAHEAD=60
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Mar 2018 17:47:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-break-events-based-on-timestamp-at-index-time/m-p/349111#M64097</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2018-03-14T17:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to break events based on timestamp at index-time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-break-events-based-on-timestamp-at-index-time/m-p/349112#M64098</link>
      <description>&lt;P&gt;@yannK [Splunk], there is an extra percent after &lt;CODE&gt;%m&lt;/CODE&gt; it should be &lt;CODE&gt;TIME_FORMAT=%m/%d/%y %H:%M:%S:%3N %Z&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 18:12:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-break-events-based-on-timestamp-at-index-time/m-p/349112#M64098</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-03-14T18:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to break events based on timestamp at index-time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-break-events-based-on-timestamp-at-index-time/m-p/349113#M64099</link>
      <description>&lt;P&gt;oh yes, it's a typo, let me edit it&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 18:18:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-break-events-based-on-timestamp-at-index-time/m-p/349113#M64099</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2018-03-14T18:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to break events based on timestamp at index-time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-break-events-based-on-timestamp-at-index-time/m-p/349114#M64100</link>
      <description>&lt;P&gt;Thanks for the reply. Looks better now. Timestamps being properly recognised. But it's not breaking events like I want it. It's doing one event per line, but I want all lines with exact same timestamp to be one event. I'm playing in the Add Data interface and can't figure it out. Here's the props.conf settings I have.&lt;/P&gt;

&lt;P&gt;I tried BREAK_ONLY_BEFORE=^[ like you suggested but it was still not doing what I want it to do.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ &amp;lt;SOURCETYPE NAME&amp;gt; ]
SHOULD_LINEMERGE=true
NO_BINARY_CHECK=true
CHARSET=UTF-8
MAX_TIMESTAMP_LOOKAHEAD=60
disabled=false
TIME_FORMAT=%m/%d/%y %H:%M:%S:%3N %Z
TIME_PREFIX=\[
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Data example: I would like line 45, 46 and 47 to be 1 event. They all have the same timestamp. Line 48 would be the start of a new event.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;45      3/14/18
12:12:41.610 AM 
[3/14/18 0:12:41:610 EDT] 00000039 SystemErr     R  at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
46      3/14/18
12:12:41.610 AM 
[3/14/18 0:12:41:610 EDT] 00000039 SystemErr     R  at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
47      3/14/18
12:12:41.610 AM 
[3/14/18 0:12:41:610 EDT] 00000039 SystemErr     R  at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1662)
48      3/14/18
1:00:02.465 AM  
[3/14/18 1:00:02:465 EDT] 0000006b SystemErr     R com.ibm.wcc.service.intf.ProcessingException
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:27:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-break-events-based-on-timestamp-at-index-time/m-p/349114#M64100</guid>
      <dc:creator>patouellet</dc:creator>
      <dc:date>2020-09-29T18:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to break events based on timestamp at index-time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-break-events-based-on-timestamp-at-index-time/m-p/349115#M64101</link>
      <description>&lt;P&gt;Hi @patouellet &lt;/P&gt;

&lt;P&gt;Did you get your issue resolved as i am also facing the same issue of all events being indexed at he same time i.e. the file creation time of the log file which has the data and not the event time. &lt;/P&gt;

&lt;P&gt;Let me know if its working for you. &lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 09:12:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-break-events-based-on-timestamp-at-index-time/m-p/349115#M64101</guid>
      <dc:creator>surekhasplunk</dc:creator>
      <dc:date>2019-09-13T09:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to break events based on timestamp at index-time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-break-events-based-on-timestamp-at-index-time/m-p/349116#M64102</link>
      <description>&lt;P&gt;Hi, I see that was one year ago. I honestly don't remember. But I was able to find the settings I'm currently using. Here they are. Hopefully it helps you out.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your_sourcetype]
DATETIME_CONFIG =
MAX_TIMESTAMP_LOOKAHEAD = 60
NO_BINARY_CHECK = true
TIME_FORMAT = %m/%d/%y %H:%M:%S:%3N %Z
TIME_PREFIX = \[
category = Application
disabled = false
pulldown_type = true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Sep 2019 12:14:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-break-events-based-on-timestamp-at-index-time/m-p/349116#M64102</guid>
      <dc:creator>patouellet</dc:creator>
      <dc:date>2019-09-13T12:14:01Z</dc:date>
    </item>
  </channel>
</rss>

