<?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: Can I change TRUNCATE and MAX_EVENTS to unlimited ? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-change-TRUNCATE-and-MAX-EVENTS-to-unlimited/m-p/56680#M11031</link>
    <description>&lt;P&gt;An how about the second part after props: the transform part ?&lt;/P&gt;

&lt;P&gt;There i´m using SEDCMD or a transformation that is truncating very large messages.&lt;BR /&gt;
Tried lookahead = 1024000 but it´s still trunkating ...&lt;/P&gt;

&lt;P&gt;How can i set this to unlimited ?&lt;/P&gt;</description>
    <pubDate>Fri, 19 Sep 2014 12:59:18 GMT</pubDate>
    <dc:creator>theunf</dc:creator>
    <dc:date>2014-09-19T12:59:18Z</dc:date>
    <item>
      <title>Can I change TRUNCATE and MAX_EVENTS to unlimited ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-change-TRUNCATE-and-MAX-EVENTS-to-unlimited/m-p/56678#M11029</link>
      <description>&lt;P&gt;I have large logs, with more than 10000 chars per line, and multiline events as large as whole XML file.&lt;BR /&gt;
They are always truncated or cut in multiple events because too long.&lt;/P&gt;

&lt;P&gt;It seems that the default is&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;MAX_EVENTS=250&lt;BR /&gt;
TRUNCATE=10000&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Can I push them to unlimited (i.e. 0)?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2013 00:23:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-change-TRUNCATE-and-MAX-EVENTS-to-unlimited/m-p/56678#M11029</guid>
      <dc:creator>mataharry</dc:creator>
      <dc:date>2013-06-06T00:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can I change TRUNCATE and MAX_EVENTS to unlimited ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-change-TRUNCATE-and-MAX-EVENTS-to-unlimited/m-p/56679#M11030</link>
      <description>&lt;P&gt;First of all, the TRUNCATE and MAX_EVENTS exists to avoid memory leak, indexing slowdown and search slowdown. Please &lt;STRONG&gt;never to use unlimited values&lt;/STRONG&gt; (TRUNCATE=0 or MAX_EVENTS=0), they can potentially cause a nasty event to blow up your Splunk.&lt;/P&gt;

&lt;P&gt;That said  :&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;TRUNCATE defines the number of characters per line, once reached exceed characters are dropped.&lt;/LI&gt;
&lt;LI&gt;MAX_EVENTS defines the maximum number of lines per multi-line events. Once reached the event is broken, and exceeding lines are interpreted as a new events (sometimes causing a new timestamp detection)&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;You can increase those values increased accordingly to your needs for &lt;STRONG&gt;specific sourcetypes.&lt;/STRONG&gt;&lt;BR /&gt;
A good method to monitor the result is to use searches like :&lt;BR /&gt;
&lt;CODE&gt;sourcetype=mysourcetype | eval length=len(_raw) | stats max(length) perc95(length) max(linecount) perc95(linecount)&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2013 00:25:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-change-TRUNCATE-and-MAX-EVENTS-to-unlimited/m-p/56679#M11030</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-06-06T00:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Can I change TRUNCATE and MAX_EVENTS to unlimited ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-change-TRUNCATE-and-MAX-EVENTS-to-unlimited/m-p/56680#M11031</link>
      <description>&lt;P&gt;An how about the second part after props: the transform part ?&lt;/P&gt;

&lt;P&gt;There i´m using SEDCMD or a transformation that is truncating very large messages.&lt;BR /&gt;
Tried lookahead = 1024000 but it´s still trunkating ...&lt;/P&gt;

&lt;P&gt;How can i set this to unlimited ?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2014 12:59:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-change-TRUNCATE-and-MAX-EVENTS-to-unlimited/m-p/56680#M11031</guid>
      <dc:creator>theunf</dc:creator>
      <dc:date>2014-09-19T12:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can I change TRUNCATE and MAX_EVENTS to unlimited ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-change-TRUNCATE-and-MAX-EVENTS-to-unlimited/m-p/56681#M11032</link>
      <description>&lt;P&gt;Try using the following in your props.conf file for the sourcetype you want to do this to:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SEDCMD-truncate = s/\(.\{1,10000\}\).*/\\1/
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I could be wrong on some of the backslashes for the Splunk SEDCMD, and it may not work exactly with the multi-line events that you have, but in actual sed, this will truncate lines (remember, sed is a line-based stream editor) to a max of 10000 characters. I don't have any of your data to see if it will work either, so your mileage may vary. At least it is a place to start.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2014 16:41:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-change-TRUNCATE-and-MAX-EVENTS-to-unlimited/m-p/56681#M11032</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2014-11-20T16:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can I change TRUNCATE and MAX_EVENTS to unlimited ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-change-TRUNCATE-and-MAX-EVENTS-to-unlimited/m-p/56682#M11033</link>
      <description>&lt;P&gt;its been 4 years, and yes you can do that but it not preferable &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 19:13:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-change-TRUNCATE-and-MAX-EVENTS-to-unlimited/m-p/56682#M11033</guid>
      <dc:creator>Tejkumar451</dc:creator>
      <dc:date>2017-05-11T19:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can I change TRUNCATE and MAX_EVENTS to unlimited ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-change-TRUNCATE-and-MAX-EVENTS-to-unlimited/m-p/56683#M11034</link>
      <description>&lt;P&gt;I had about 2 million characters in a single line, As I can't use TRUNCATE=0. What should I do in this case?&lt;BR /&gt;
Is there any way I can get all those 2million characters into Splunk.&lt;BR /&gt;
Currently my props are: &lt;BR /&gt;
[source::truncate_value/source/with_large_character_in_single_line]&lt;BR /&gt;
TRUNCATE=100000&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:50:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-change-TRUNCATE-and-MAX-EVENTS-to-unlimited/m-p/56683#M11034</guid>
      <dc:creator>sandeepreddy947</dc:creator>
      <dc:date>2020-09-29T23:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can I change TRUNCATE and MAX_EVENTS to unlimited ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-change-TRUNCATE-and-MAX-EVENTS-to-unlimited/m-p/56684#M11035</link>
      <description>&lt;P&gt;hi sandeep, did u get an answer to this? &lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 21:19:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-change-TRUNCATE-and-MAX-EVENTS-to-unlimited/m-p/56684#M11035</guid>
      <dc:creator>mufthmu</dc:creator>
      <dc:date>2019-12-12T21:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can I change TRUNCATE and MAX_EVENTS to unlimited ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-change-TRUNCATE-and-MAX-EVENTS-to-unlimited/m-p/577532#M102015</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/169971"&gt;@sandeepreddy947&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;How did you overcome your problem? I have a similar issue where particular events are more than 1 million bytes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 01:56:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-change-TRUNCATE-and-MAX-EVENTS-to-unlimited/m-p/577532#M102015</guid>
      <dc:creator>Roy_9</dc:creator>
      <dc:date>2021-12-07T01:56:45Z</dc:date>
    </item>
  </channel>
</rss>

