<?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: Multi Line Events &amp;quot;truncate&amp;quot; in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Multi-Line-Events-quot-truncate-quot/m-p/57682#M11286</link>
    <description>&lt;P&gt;I saw that as well. If that was from $SPLUNK_HOME/etc/system/local/props.conf, then that should be ok. &lt;/P&gt;

&lt;P&gt;However, I advise you to;&lt;BR /&gt;
a) create better sample events starting with at timestamp&lt;BR /&gt;
2012-09-12 13:14:15 bbbbbbbbbbbbb * 1 million if you like.&lt;/P&gt;

&lt;P&gt;b) use SHOULD_LINEMERGE = false if your events are single-line. This also means that you do not set BREAK_ONLY... and MAX_EVENTS stuff.&lt;/P&gt;

&lt;P&gt;c) set TRUNCATE to a sufficiently high value to accomodate your looooong events.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[your_sourcetype]&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
TRUNCATE = 1000000&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 12:25:34 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2020-09-28T12:25:34Z</dc:date>
    <item>
      <title>Multi Line Events "truncate"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multi-Line-Events-quot-truncate-quot/m-p/57676#M11280</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I am testing the log length with sending about two pages of data only 1 character. Lets say "b" so the data will look like "bbbbbbbbbb" for 3 pages long.&lt;/P&gt;

&lt;P&gt;The data with tcpdump to the indexer looks fine, but on the indexer the event gets split into 257 line events. I have change the etc/system/local/ props.conf and limits.conf, inserted MAX_EVENT = 1000, truncate = 100000 but it has no effect.&lt;/P&gt;

&lt;P&gt;any ideas?&lt;/P&gt;

&lt;P&gt;Here is the props.conf&lt;/P&gt;

&lt;P&gt;[default]&lt;BR /&gt;
CHARSET = UTF-8&lt;BR /&gt;
LINE_BREAKER_LOOKBEHIND = 1000&lt;BR /&gt;
TRUNCATE = 100000&lt;BR /&gt;
DATETIME_CONFIG = /etc/datetime.xml&lt;BR /&gt;
ANNOTATE_PUNCT = True&lt;BR /&gt;
HEADER_MODE =&lt;BR /&gt;
MAX_DAYS_HENCE=2&lt;BR /&gt;
MAX_DAYS_AGO=2000&lt;BR /&gt;
MAX_DIFF_SECS_AGO=3600&lt;BR /&gt;
MAX_DIFF_SECS_HENCE=604800&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 128&lt;BR /&gt;
SHOULD_LINEMERGE = True&lt;BR /&gt;
BREAK_ONLY_BEFORE =&lt;BR /&gt;
BREAK_ONLY_BEFORE_DATE = false&lt;BR /&gt;
MAX_EVENTS = 5000&lt;BR /&gt;
MUST_BREAK_AFTER =&lt;BR /&gt;
MUST_NOT_BREAK_AFTER =&lt;BR /&gt;
MUST_NOT_BREAK_BEFORE =&lt;BR /&gt;
TRANSFORMS =&lt;BR /&gt;
SEGMENTATION          = indexing&lt;BR /&gt;
SEGMENTATION-all      = full&lt;BR /&gt;
SEGMENTATION-inner    = inner&lt;BR /&gt;
SEGMENTATION-outer    = outer&lt;BR /&gt;
SEGMENTATION-raw      = none&lt;BR /&gt;
SEGMENTATION-standard = standard&lt;BR /&gt;
LEARN_SOURCETYPE      = true&lt;BR /&gt;
maxDist = 100&lt;/P&gt;

&lt;P&gt;[log4j]&lt;BR /&gt;
pulldown_type = true&lt;BR /&gt;
MAX_EVENTS = 7000&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=25&lt;BR /&gt;
SHOULD_LINEMERGE = true&lt;BR /&gt;
BREAK_ONLY_BEFORE_DATE = true&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:25:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multi-Line-Events-quot-truncate-quot/m-p/57676#M11280</guid>
      <dc:creator>vitki</dc:creator>
      <dc:date>2020-09-28T12:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Line Events "truncate"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multi-Line-Events-quot-truncate-quot/m-p/57677#M11281</link>
      <description>&lt;P&gt;Is that 257 one-line events, or several 257-line events?&lt;/P&gt;

&lt;P&gt;are there any line-breaks in the source data?&lt;/P&gt;

&lt;P&gt;What are your line-breaking rules (SHOULD_LINEMERGE, LINE_BREAKER, MUST_BREAK..., BREAK_ONLY.. etc)?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:25:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multi-Line-Events-quot-truncate-quot/m-p/57677#M11281</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2020-09-28T12:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Line Events "truncate"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multi-Line-Events-quot-truncate-quot/m-p/57678#M11282</link>
      <description>&lt;P&gt;well done. I was just about to edit your "answer" to make it part of the original question.&lt;/P&gt;

&lt;P&gt;Also, do you get one (or more) events, each 257 lines long, or did you get 257 one-line events?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2012 13:03:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multi-Line-Events-quot-truncate-quot/m-p/57678#M11282</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-09-12T13:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Line Events "truncate"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multi-Line-Events-quot-truncate-quot/m-p/57679#M11283</link>
      <description>&lt;P&gt;I get more than 1 event with each 257 lines till the last event with maybe 129 lines or so.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2012 13:09:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multi-Line-Events-quot-truncate-quot/m-p/57679#M11283</guid>
      <dc:creator>vitki</dc:creator>
      <dc:date>2012-09-12T13:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Line Events "truncate"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multi-Line-Events-quot-truncate-quot/m-p/57680#M11284</link>
      <description>&lt;P&gt;so you're probably hitting the MAX_EVENTS limit. I believe that it's set at 256 by default.&lt;/P&gt;

&lt;P&gt;I think that one of the problems is that you're sending bogus data, i.e. it does not have any timestamps. Generally, Splunk will not have trouble dealing with large events.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2012 13:12:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multi-Line-Events-quot-truncate-quot/m-p/57680#M11284</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-09-12T13:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Line Events "truncate"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multi-Line-Events-quot-truncate-quot/m-p/57681#M11285</link>
      <description>&lt;P&gt;MAX_EVENTS = 7000 in my conf file am i missing another place where this must go? well i have inserted a date at the start of my data and the end of it. now i get a 381 event and then 227 then a 226 event and last the date in a event.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2012 13:26:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multi-Line-Events-quot-truncate-quot/m-p/57681#M11285</guid>
      <dc:creator>vitki</dc:creator>
      <dc:date>2012-09-12T13:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Line Events "truncate"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multi-Line-Events-quot-truncate-quot/m-p/57682#M11286</link>
      <description>&lt;P&gt;I saw that as well. If that was from $SPLUNK_HOME/etc/system/local/props.conf, then that should be ok. &lt;/P&gt;

&lt;P&gt;However, I advise you to;&lt;BR /&gt;
a) create better sample events starting with at timestamp&lt;BR /&gt;
2012-09-12 13:14:15 bbbbbbbbbbbbb * 1 million if you like.&lt;/P&gt;

&lt;P&gt;b) use SHOULD_LINEMERGE = false if your events are single-line. This also means that you do not set BREAK_ONLY... and MAX_EVENTS stuff.&lt;/P&gt;

&lt;P&gt;c) set TRUNCATE to a sufficiently high value to accomodate your looooong events.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[your_sourcetype]&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
TRUNCATE = 1000000&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:25:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multi-Line-Events-quot-truncate-quot/m-p/57682#M11286</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2020-09-28T12:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Line Events "truncate"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multi-Line-Events-quot-truncate-quot/m-p/57683#M11287</link>
      <description>&lt;P&gt;Mmmm i have made the change as requested and BOOM!!! nothing &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I am still getting the same result = munti events... if i send the data via netcat to the splunkforwarder i get about 12 events with only limited bogus data in the events on the indexer. If i send it directly to the indexer i get the same results. if i netcat it to the forwarder with no dates i get the 381 events again.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2012 14:03:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multi-Line-Events-quot-truncate-quot/m-p/57683#M11287</guid>
      <dc:creator>vitki</dc:creator>
      <dc:date>2012-09-12T14:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Line Events "truncate"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multi-Line-Events-quot-truncate-quot/m-p/57684#M11288</link>
      <description>&lt;P&gt;Hay i just saw that all the mulit events is 1024 characters long.... and the show source data is fine with no multi events.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2012 14:53:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multi-Line-Events-quot-truncate-quot/m-p/57684#M11288</guid>
      <dc:creator>vitki</dc:creator>
      <dc:date>2012-09-12T14:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Line Events "truncate"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multi-Line-Events-quot-truncate-quot/m-p/57685#M11289</link>
      <description>&lt;P&gt;My Solution is the following, there might be some bad suggestions here but it worked for me.&lt;/P&gt;

&lt;P&gt;mv limits.conf to $SPLUNK_HOME/etc/system/local &lt;BR /&gt;
backup and remove following conf files in&lt;BR /&gt;
$SPLUNK_HOME/etc/system/default&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;outputs.conf  pdf_server.conf  prefs.conf  props.conf
viewstates.conf
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;only the following conf files in $SPLUNK_HOME/etc/system/local &lt;BR /&gt;
remove any other.&lt;/P&gt;

&lt;P&gt;inputs.conf  props.conf  README  server.conf  tenants.conf&lt;/P&gt;

&lt;P&gt;props.conf must look like this (clear file then copy info in)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
CHARSET = UTF-8
LINE_BREAKER_LOOKBEHIND = 1000
TRUNCATE = 100000
DATETIME_CONFIG = /etc/datetime.xml
ANNOTATE_PUNCT = True
HEADER_MODE =
MAX_DAYS_HENCE=2
MAX_DAYS_AGO=2000
MAX_DIFF_SECS_AGO=3600
MAX_DIFF_SECS_HENCE=604800
MAX_TIMESTAMP_LOOKAHEAD = 128
SHOULD_LINEMERGE = false
BREAK_ONLY_BEFORE =
BREAK_ONLY_BEFORE_DATE = true
MAX_EVENTS = 5000
MUST_BREAK_AFTER =
MUST_NOT_BREAK_AFTER =
MUST_NOT_BREAK_BEFORE =
TRANSFORMS =
SEGMENTATION          = indexing
SEGMENTATION-all      = full
SEGMENTATION-inner    = inner
SEGMENTATION-outer    = outer
SEGMENTATION-raw      = none
SEGMENTATION-standard = standard
LEARN_SOURCETYPE      = false
maxDist = 100

[log4j]
#pulldown_type = true
MAX_EVENTS = 7000
#MAX_TIMESTAMP_LOOKAHEAD=25
SHOULD_LINEMERGE = true
TRUNCATE = 1000000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;restart splunk&lt;/P&gt;

&lt;P&gt;Like i said there might be some bad advice in the answer. I am still trying to find out what i did wrong in the first place... but this is working for me for now. thanks kristian.kolb&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:26:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multi-Line-Events-quot-truncate-quot/m-p/57685#M11289</guid>
      <dc:creator>vitki</dc:creator>
      <dc:date>2020-09-28T12:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Line Events "truncate"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multi-Line-Events-quot-truncate-quot/m-p/57686#M11290</link>
      <description>&lt;P&gt;Yes, unfortunately there are some aspects of your solution that are less than perfect. &lt;/P&gt;

&lt;P&gt;Never add/remove/edit files in a 'default' directory. That's what the 'local' directories are there for. Any setting in a .conf file in a 'local' directory will override the corresponding 'default'.&lt;/P&gt;

&lt;P&gt;Your solution will perhaps work for now, but you &lt;EM&gt;will&lt;/EM&gt; run into trouble when you upgrade to the next version (all default .conf files will be restored) or whenever Splunk needs to know a setting - and it's just not there anymore. &lt;/P&gt;

&lt;P&gt;Proceed with caution,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2012 07:50:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multi-Line-Events-quot-truncate-quot/m-p/57686#M11290</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-09-13T07:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Line Events "truncate"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multi-Line-Events-quot-truncate-quot/m-p/57687#M11291</link>
      <description>&lt;P&gt;Yip, i am trying to figure out what went wrong, if i do not delete the files in the default directory i am back to where i started.&lt;/P&gt;

&lt;P&gt;I have now setup a new instillation and i am testing it with that now. I agree 100% the default did needs to stay as is. will post my new answer.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2012 08:06:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multi-Line-Events-quot-truncate-quot/m-p/57687#M11291</guid>
      <dc:creator>vitki</dc:creator>
      <dc:date>2012-09-13T08:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Line Events "truncate"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multi-Line-Events-quot-truncate-quot/m-p/57688#M11292</link>
      <description>&lt;P&gt;It was me It was me It was me.... my problem was that my access permissions on the local directory where my *.conf files was NOT accessable to the splunk user... so it could not read the files...&lt;/P&gt;

&lt;P&gt;Just goes to show ... Don't assume - Make sure !!!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2012 14:57:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multi-Line-Events-quot-truncate-quot/m-p/57688#M11292</guid>
      <dc:creator>vitki</dc:creator>
      <dc:date>2012-09-28T14:57:48Z</dc:date>
    </item>
  </channel>
</rss>

