<?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: Problem with Line breaking between Splunk 6.2.3 vs 6.3.0 in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Problem-with-Line-breaking-between-Splunk-6-2-3-vs-6-3-0/m-p/240350#M46710</link>
    <description>&lt;P&gt;I have noticed several other similar questions, so the answer may be "yes."&lt;/P&gt;

&lt;P&gt;Where did you create the &lt;STRONG&gt;props.conf&lt;/STRONG&gt; file? It should be on the indexer - or on the heavy forwarder if you are using one.&lt;/P&gt;

&lt;P&gt;Are you sure that the name of the stanza matches the sourcetype of the incoming data?&lt;/P&gt;

&lt;P&gt;It should not matter which type of input (oneshot, monitor, etc) you choose, as the line-breaking is done at parsing time, not input time.&lt;/P&gt;

&lt;P&gt;Finally, if you are going to supply the props.conf anyway, I suggest that you add the following line to speed processing:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD = 20
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 26 Sep 2015 17:32:47 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2015-09-26T17:32:47Z</dc:date>
    <item>
      <title>Problem with Line breaking between Splunk 6.2.3 vs 6.3.0</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Problem-with-Line-breaking-between-Splunk-6-2-3-vs-6-3-0/m-p/240349#M46709</link>
      <description>&lt;P&gt;We have a development environment (replica of prod) running Splunk 6.2.3 (upgraded from 6.1.5).  I am testing monitoring of a file which has snmp traps received using net-snmp snmptrapd on *nix platform. &lt;/P&gt;

&lt;P&gt;Earlier this week I upgraded Splunk from 6.1.5 to 6.3.0 on a &lt;STRONG&gt;new&lt;/STRONG&gt; standalone instance of test environment to validate new feature set. And import of snmp trap file was one of them. &lt;/P&gt;

&lt;P&gt;I am noticing that line breaking dosent seems to work on upgraded 6.3.0 release. Is anyone else facing this situation?&lt;/P&gt;

&lt;P&gt;In 6.2.3 release, only the first event  breaks incorrectly, all other events are breaking with or without TA.&lt;/P&gt;

&lt;P&gt;In 6.3.0 release, the events are getting merged.&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&lt;/EM&gt; I added the events using oneshot method.&lt;/P&gt;

&lt;P&gt;To force line breaking on both releases I created props.conf with default values as below, still the same behavior:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[snmptrap:generic]
TIME_FORMAT = %Y-%m-%d %H:%M:%S
SHOULD_LINEMERGE = true
BREAK_ONLY_BEFORE_DATE = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;H1&gt;Sample Traps logged as below:&lt;/H1&gt;

&lt;P&gt;`2015-09-25 11:30:13 10.11.12.13(via UDP: [trapforwarder]:162-&amp;gt;[traprec] TRAP, SNMP v1, community testing&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    .1.3.6.1.4.1.6827.10.17.7.1 Enterprise Specific Trap (1035) Uptime: 22 days, 19:41:52.45

    .1.3.6.1.4.1.6827.10.17.3.1.1.1.1 = INTEGER: 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;2015-09-25 11:30:13 10.11.12.13(via UDP: [trapforwarder]:162-&amp;gt;[traprec]) TRAP, SNMP v1, community testing&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    .1.3.6.1.4.1.6827.10.17.7.1 Enterprise Specific Trap (1034) Uptime: 22 days, 19:41:53.07

    .1.3.6.1.4.1.6827.10.17.3.1.1.1.1 = INTEGER: 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;2015-09-25 11:30:14 10.11.12.13(via UDP: [trapforwarder]:162-&amp;gt;[traprec]) TRAP, SNMP v1, community testing&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    .1.3.6.1.4.1.6827.10.17.7.1 Enterprise Specific Trap (1035) Uptime: 22 days, 19:41:53.71

    .1.3.6.1.4.1.6827.10.17.3.1.1.1.1 = INTEGER: 1`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;alt text&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2015 16:43:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Problem-with-Line-breaking-between-Splunk-6-2-3-vs-6-3-0/m-p/240349#M46709</guid>
      <dc:creator>bohrasaurabh</dc:creator>
      <dc:date>2015-09-25T16:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Line breaking between Splunk 6.2.3 vs 6.3.0</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Problem-with-Line-breaking-between-Splunk-6-2-3-vs-6-3-0/m-p/240350#M46710</link>
      <description>&lt;P&gt;I have noticed several other similar questions, so the answer may be "yes."&lt;/P&gt;

&lt;P&gt;Where did you create the &lt;STRONG&gt;props.conf&lt;/STRONG&gt; file? It should be on the indexer - or on the heavy forwarder if you are using one.&lt;/P&gt;

&lt;P&gt;Are you sure that the name of the stanza matches the sourcetype of the incoming data?&lt;/P&gt;

&lt;P&gt;It should not matter which type of input (oneshot, monitor, etc) you choose, as the line-breaking is done at parsing time, not input time.&lt;/P&gt;

&lt;P&gt;Finally, if you are going to supply the props.conf anyway, I suggest that you add the following line to speed processing:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD = 20
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 26 Sep 2015 17:32:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Problem-with-Line-breaking-between-Splunk-6-2-3-vs-6-3-0/m-p/240350#M46710</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2015-09-26T17:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Line breaking between Splunk 6.2.3 vs 6.3.0</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Problem-with-Line-breaking-between-Splunk-6-2-3-vs-6-3-0/m-p/240351#M46711</link>
      <description>&lt;P&gt;Lisa,&lt;/P&gt;

&lt;P&gt;My upgraded test system is all in one server and props.conf is created at $SPLUNK_HOME/etc/apps/TA-snmptrap/local directory.&lt;/P&gt;

&lt;P&gt;I can confidently say my configs are correct as I copied/rsynced them to 6.2.3 release and they work. Moreover based on the sample traps/events, my experience is Splunk should have auto extracted the Date and Time and also break events, as based on documentation SHOULD_LINEMERGE and BREAK_ONLY_BEFORE_DATE are by default true. &lt;/P&gt;

&lt;P&gt;I had MAX_TIMESTAMP_LOOKAHEAD = 20, in my props, however I removed it, as I read it was best used if I am using TIME_PREFIX and in my events Time Stamp starts at the beginning of the line. &lt;/P&gt;

&lt;P&gt;Anyways, I will continue to test the config this morning.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:23:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Problem-with-Line-breaking-between-Splunk-6-2-3-vs-6-3-0/m-p/240351#M46711</guid>
      <dc:creator>bohrasaurabh</dc:creator>
      <dc:date>2020-09-29T07:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Line breaking between Splunk 6.2.3 vs 6.3.0</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Problem-with-Line-breaking-between-Splunk-6-2-3-vs-6-3-0/m-p/240352#M46712</link>
      <description>&lt;P&gt;I'd recommend moving to "SHOULD_LINEMERGE = FALSE" and using a "LINE_BREAKER". Something like this should be much more consistent:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[snmptrap:generic]
TIME_FORMAT = %Y-%m-%d %H:%M:%S
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}
MAX_TIMESTAMP_LOOKAHEAD = 20
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will look for one or more new like characters, followed by your timestamp. It will then linebreak on the newline characters. I find this to be significantly more consistent and more performant.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:23:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Problem-with-Line-breaking-between-Splunk-6-2-3-vs-6-3-0/m-p/240352#M46712</guid>
      <dc:creator>beatus</dc:creator>
      <dc:date>2020-09-29T07:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Line breaking between Splunk 6.2.3 vs 6.3.0</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Problem-with-Line-breaking-between-Splunk-6-2-3-vs-6-3-0/m-p/240353#M46713</link>
      <description>&lt;P&gt;I agree, and it should be the fastest mechanism as well.&lt;/P&gt;

&lt;P&gt;But I don't often suggest it because of the complexity of the regex in the LINE_BREAKER. If there is &lt;EM&gt;any&lt;/EM&gt; variability in the format, the regex can be fragile and hard to debug.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2015 20:29:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Problem-with-Line-breaking-between-Splunk-6-2-3-vs-6-3-0/m-p/240353#M46713</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2015-09-28T20:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Line breaking between Splunk 6.2.3 vs 6.3.0</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Problem-with-Line-breaking-between-Splunk-6-2-3-vs-6-3-0/m-p/240354#M46714</link>
      <description>&lt;P&gt;You do not need to have a TIME_PREFIX for the MAX_TIMESTAMP_LOOKAHEAD to work, although they are often used together. TIME_PREFIX merely establishes the starting point for timestamp extraction; without it, the starting point is the beginning of the line.&lt;/P&gt;

&lt;P&gt;MAX_TIMESTAMP_LOOKAHEAD will prevent Splunk from scanning further into the event for a "better" timestamp. While generally not required, it will always make processing faster, as by default Splunk  always examines the first 150 characters of each event.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:24:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Problem-with-Line-breaking-between-Splunk-6-2-3-vs-6-3-0/m-p/240354#M46714</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2020-09-29T07:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Line breaking between Splunk 6.2.3 vs 6.3.0</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Problem-with-Line-breaking-between-Splunk-6-2-3-vs-6-3-0/m-p/240355#M46715</link>
      <description>&lt;P&gt;Several re-start of Splunk Enterprise 6.3.0 and just having TIME_FORMAT in my props.conf seems to have resolved the issue. Based on above suggestions I added back MAX_TIMESTAMP_LOOKAHEAD in props.conf.&lt;/P&gt;

&lt;P&gt;However I still haven't figured out why events were getting merged together just after upgrade with  props.conf.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:25:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Problem-with-Line-breaking-between-Splunk-6-2-3-vs-6-3-0/m-p/240355#M46715</guid>
      <dc:creator>bohrasaurabh</dc:creator>
      <dc:date>2020-09-29T07:25:10Z</dc:date>
    </item>
  </channel>
</rss>

