<?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 the events by timestamp if there are two timestamps in every event? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-break-the-events-by-timestamp-if-there-are-two-timestamps/m-p/439104#M170619</link>
    <description>&lt;P&gt;Try this in props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[&amp;lt;YourSourcetypeHere&amp;gt;]
SHOULD_LINEMERGE=false
LINE_BREAKER = ([\r\n]+)\[\d{2}/\d{2}/\d{2} \d{2}:\d{2}:\d{2}
TIME_PREFIX = ^\[
TIME_FORMAT = %m/%d/%y %H:%M:%S:%3N %Z
MAX_TIMESTAMP_LOOKAHEAD  = 26
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you are doing a sourcetype override/overwrite, you must use the ORIGINAL values NOT the new value, then you must deploy this to the first full instance(s) of Splunk that handles the events (usually either the HF-tier, if you use this, or your Indexer tier), restart all Splunk instances there, send in new events (old events will stay broken), then test using &lt;CODE&gt;_index_earliest=-5m&lt;/CODE&gt; to be absolutely certain that you are only examining the newly indexed events.&lt;/P&gt;</description>
    <pubDate>Sat, 22 Jun 2019 20:11:46 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-06-22T20:11:46Z</dc:date>
    <item>
      <title>How to break the events by timestamp if there are two timestamps in every event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-break-the-events-by-timestamp-if-there-are-two-timestamps/m-p/439101#M170616</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
I'm trying to break the events by time stamps but it is networking, can anyone help me on this?&lt;BR /&gt;
Here is the raw data:&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 15:39:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-break-the-events-by-timestamp-if-there-are-two-timestamps/m-p/439101#M170616</guid>
      <dc:creator>nareshchenchati</dc:creator>
      <dc:date>2019-06-21T15:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to break the events by timestamp if there are two timestamps in every event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-break-the-events-by-timestamp-if-there-are-two-timestamps/m-p/439102#M170617</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;[yoursourcetype]
SHOULD_LINEMERGE = 0
LINE_BREAKER     = ([\r\n]+\s*)\[
TIME_PREFIX      = \[
TIME_FORMAT      = %m/%d/%y %T:%3N
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;EDIT: fixed year from 4 digit (%Y) to 2 digit (%y)&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 16:40:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-break-the-events-by-timestamp-if-there-are-two-timestamps/m-p/439102#M170617</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2019-06-21T16:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to break the events by timestamp if there are two timestamps in every event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-break-the-events-by-timestamp-if-there-are-two-timestamps/m-p/439103#M170618</link>
      <description>&lt;P&gt;Hi nareshchenchati,&lt;BR /&gt;
sorry but I don't see your row data and it's difficoult to write the correct regex.&lt;/P&gt;

&lt;P&gt;Anyway you have to insert the correct regexes for both the parameters&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; TIME_PREFIX
 TIME_FORMAT
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.0/Admin/Propsconf"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.0/Admin/Propsconf&lt;/A&gt; for other details.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jun 2019 07:52:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-break-the-events-by-timestamp-if-there-are-two-timestamps/m-p/439103#M170618</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-06-22T07:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to break the events by timestamp if there are two timestamps in every event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-break-the-events-by-timestamp-if-there-are-two-timestamps/m-p/439104#M170619</link>
      <description>&lt;P&gt;Try this in props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[&amp;lt;YourSourcetypeHere&amp;gt;]
SHOULD_LINEMERGE=false
LINE_BREAKER = ([\r\n]+)\[\d{2}/\d{2}/\d{2} \d{2}:\d{2}:\d{2}
TIME_PREFIX = ^\[
TIME_FORMAT = %m/%d/%y %H:%M:%S:%3N %Z
MAX_TIMESTAMP_LOOKAHEAD  = 26
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you are doing a sourcetype override/overwrite, you must use the ORIGINAL values NOT the new value, then you must deploy this to the first full instance(s) of Splunk that handles the events (usually either the HF-tier, if you use this, or your Indexer tier), restart all Splunk instances there, send in new events (old events will stay broken), then test using &lt;CODE&gt;_index_earliest=-5m&lt;/CODE&gt; to be absolutely certain that you are only examining the newly indexed events.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jun 2019 20:11:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-break-the-events-by-timestamp-if-there-are-two-timestamps/m-p/439104#M170619</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-06-22T20:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to break the events by timestamp if there are two timestamps in every event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-break-the-events-by-timestamp-if-there-are-two-timestamps/m-p/439106#M170621</link>
      <description>&lt;P&gt;This is working fine..&lt;BR /&gt;
LINE_BREAKER=()[\d{1,}\/\d{2}\/\d{2}\s\d{2}:\d{2}:\d{2}:\d{1,}\sCEST]&lt;BR /&gt;
NO_BINARY_CHECK=true&lt;BR /&gt;
TIME_FORMAT=%m/%d/%y %H:%M:%S:%3N&lt;BR /&gt;
TIME_PREFIX=[&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=128&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:02:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-break-the-events-by-timestamp-if-there-are-two-timestamps/m-p/439106#M170621</guid>
      <dc:creator>nareshchenchati</dc:creator>
      <dc:date>2020-09-30T01:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to break the events by timestamp if there are two timestamps in every event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-break-the-events-by-timestamp-if-there-are-two-timestamps/m-p/439107#M170622</link>
      <description>&lt;P&gt;Be sure to &lt;CODE&gt;UpVote&lt;/CODE&gt; anybody that helped you get there.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 14:16:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-break-the-events-by-timestamp-if-there-are-two-timestamps/m-p/439107#M170622</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-06-24T14:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to break the events by timestamp if there are two timestamps in every event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-break-the-events-by-timestamp-if-there-are-two-timestamps/m-p/439108#M170623</link>
      <description>&lt;P&gt;Your &lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD&lt;/CODE&gt; is way too big and inefficient; it should be &lt;CODE&gt;26&lt;/CODE&gt;.  Also, your &lt;CODE&gt;LINE_BREAKER&lt;/CODE&gt; should not include the timezone because that is likely to change and that will break everything.  See my answer for a fully correct/optimal configuration set (except for possibly your change from some &lt;CODE&gt;\d{2}&lt;/CODE&gt; to &lt;CODE&gt;\d{1,}&lt;/CODE&gt;, which I would actually make &lt;CODE&gt;\d{1,2}&lt;/CODE&gt; if it is truly necessary.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 14:48:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-break-the-events-by-timestamp-if-there-are-two-timestamps/m-p/439108#M170623</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-06-24T14:48:15Z</dc:date>
    </item>
  </channel>
</rss>

