<?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: Why are larger events are truncated (10000 bytes)? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-larger-events-are-truncated-10000-bytes/m-p/122892#M25405</link>
    <description>&lt;P&gt;A heavy forwarder is an indexer with an outputs.conf. It is parsing events--it needs the LINE_BREAKER and TRUNCATE settings.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Sep 2014 20:15:18 GMT</pubDate>
    <dc:creator>sowings</dc:creator>
    <dc:date>2014-09-12T20:15:18Z</dc:date>
    <item>
      <title>Why are larger events are truncated (10000 bytes)?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-larger-events-are-truncated-10000-bytes/m-p/122885#M25398</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;The data flow is  UFs--&amp;gt;HWF--&amp;gt;INDEXERs&lt;/P&gt;

&lt;P&gt;Some of the event lines sizes are 100K to 300K bytes. &lt;BR /&gt;
By default Splunk truncated the event at 10,000 bytes. &lt;BR /&gt;
As per the props.conf, I have put the below configuration in the Indexers&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;props.conf
[my-source-type]
TRUNCATE=500000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have restarted the indexers. But still, I see that the events are getting truncated at ~10000 characters.&lt;BR /&gt;&lt;BR /&gt;
 Do I need to put these properties in the HWF aswell?&lt;/P&gt;

&lt;P&gt;I have not made TRUNCATE=0 because as per the documentation, often garbage is seen when set to 0. Hence I have set this to 500000 as per the discussion with developers.&lt;/P&gt;

&lt;P&gt;props.conf...&lt;BR /&gt;
TRUNCATE = &lt;BR /&gt;
* Change the default maximum line length (in bytes).&lt;BR /&gt;
* Although this is in bytes, line length is rounded down when this would&lt;BR /&gt;
  otherwise land mid-character for multi-byte characters.&lt;BR /&gt;
* Set to 0 if you never want truncation (very long lines are, however, often a sign of&lt;BR /&gt;
  garbage data).&lt;BR /&gt;
* Defaults to 10000 bytes.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2014 15:14:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-larger-events-are-truncated-10000-bytes/m-p/122885#M25398</guid>
      <dc:creator>jayannah</dc:creator>
      <dc:date>2014-09-12T15:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why are larger events are truncated (10000 bytes)?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-larger-events-are-truncated-10000-bytes/m-p/122886#M25399</link>
      <description>&lt;P&gt;You should set your LINE_BREAKER right. That should be the first thing to check. Please post some lines on how the event starts and how it end. Try out the Preview mode in Data inputs. Check the LINE_BREAKER and see if that solves it.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:34:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-larger-events-are-truncated-10000-bytes/m-p/122886#M25399</guid>
      <dc:creator>theouhuios</dc:creator>
      <dc:date>2020-09-28T17:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why are larger events are truncated (10000 bytes)?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-larger-events-are-truncated-10000-bytes/m-p/122887#M25400</link>
      <description>&lt;P&gt;You have a heavy forwarder in the picture :&lt;BR /&gt;
UFs--&amp;gt;HWF--&amp;gt;INDEXERs&lt;/P&gt;

&lt;P&gt;therefore the events are not only parsed on the indexers, but on the heavy forwarder, please put a copy of the props.conf on the HWF, and restart to apply.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2014 16:05:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-larger-events-are-truncated-10000-bytes/m-p/122887#M25400</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2014-09-12T16:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why are larger events are truncated (10000 bytes)?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-larger-events-are-truncated-10000-bytes/m-p/122888#M25401</link>
      <description>&lt;P&gt;Yes, I have set the LINE_BREAKER with preview mode only. Some of the sample log lines.. Edited tjust he values!!&lt;/P&gt;

&lt;P&gt;2014/09/12 14:50:14 INFO  [Orol-672] [c.gFilter] [de7e9d7dc] [811bc250] [6118f] [k2b.one.com, t_pas_12] REST client request 1724 entity:&lt;BR /&gt;
{"sId":"4f393f7a57cbf9b6","authenticationTypeCode":"ELI","deviceFingerprintXml":"&lt;DEVICEFINGERPRINT&gt;&lt;ENVIRONMENT&gt;iPhone&lt;/ENVIRONMENT&gt;&lt;MOBILEEQUIPMENTIDENTITYNUMBER&gt;87-AC-A5BF&lt;/MOBILEEQUIPMENTIDENTITYNUMBER&gt;&lt;/DEVICEFINGERPRINT&gt;"}&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:34:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-larger-events-are-truncated-10000-bytes/m-p/122888#M25401</guid>
      <dc:creator>jayannah</dc:creator>
      <dc:date>2020-09-28T17:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why are larger events are truncated (10000 bytes)?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-larger-events-are-truncated-10000-bytes/m-p/122889#M25402</link>
      <description>&lt;P&gt;Thanks for the response. But, HWF is just blindly streams out the incoming data right? It shouldn't truncate the event as it doesn't store. I'm think both LINE_BREAKER and TRUNCATE shouldn't be required at HWF. Please confirm&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2014 19:02:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-larger-events-are-truncated-10000-bytes/m-p/122889#M25402</guid>
      <dc:creator>jayannah</dc:creator>
      <dc:date>2014-09-12T19:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why are larger events are truncated (10000 bytes)?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-larger-events-are-truncated-10000-bytes/m-p/122890#M25403</link>
      <description>&lt;P&gt;This props.conf&lt;BR /&gt;
[my_test_app]&lt;BR /&gt;
BREAK_ONLY_BEFORE=\d+/\d+/\d+\s+\d+:\d+:\d+\s+\w+\s+[&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=150&lt;BR /&gt;
NO_BINARY_CHECK=1&lt;BR /&gt;
SHOULD_LINEMERGE=true&lt;BR /&gt;
TRUNCATE = 500000&lt;/P&gt;

&lt;P&gt;Actual props.conf from splunk web data preview:&lt;BR /&gt;
BREAK_ONLY_BEFORE=^\d+/\d+/\d+\s+\d+:\d+:\d+&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=150&lt;BR /&gt;
NO_BINARY_CHECK=1&lt;BR /&gt;
SHOULD_LINEMERGE=true &lt;BR /&gt;
TRUNCATE = 500000&lt;/P&gt;

&lt;P&gt;Both are not working&lt;/P&gt;

&lt;P&gt;I tried with TRUNCATE =0 aswell, that is also not working. Still the events are truncated.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:34:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-larger-events-are-truncated-10000-bytes/m-p/122890#M25403</guid>
      <dc:creator>jayannah</dc:creator>
      <dc:date>2020-09-28T17:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why are larger events are truncated (10000 bytes)?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-larger-events-are-truncated-10000-bytes/m-p/122891#M25404</link>
      <description>&lt;P&gt;Event with both above said props.conf, the events not breaking correctly. I though event breaking and truncation are not related. THe events breaking at (which is incorrect) at :&lt;BR /&gt;
&amp;lt;- Date: Fri, 12 Sep 2014 19:08:42 GMT&lt;BR /&gt;
&amp;lt;- Access-Control-Allow-Origin: *&lt;BR /&gt;
&amp;lt;- Content-Length: 295&lt;BR /&gt;
&amp;lt;- Echo: bf4-bdd15&lt;BR /&gt;
&amp;lt;- Access-Control-Max-Age: 3600&lt;/P&gt;

&lt;P&gt;and also at &lt;BR /&gt;
-&amp;gt; Signature: nonce="VViIjHdshDRRZake1qrL57vWMC7ynq", timestamp="1410548920", method="HMAC-SHA256", signature="FFB91*******&lt;STRONG&gt;&lt;EM&gt;58C7BDE7"&lt;BR /&gt;
-&amp;gt; Session-Id: e97&lt;/EM&gt;&lt;/STRONG&gt;***08cd6f5&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2014 19:18:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-larger-events-are-truncated-10000-bytes/m-p/122891#M25404</guid>
      <dc:creator>jayannah</dc:creator>
      <dc:date>2014-09-12T19:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Why are larger events are truncated (10000 bytes)?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-larger-events-are-truncated-10000-bytes/m-p/122892#M25405</link>
      <description>&lt;P&gt;A heavy forwarder is an indexer with an outputs.conf. It is parsing events--it needs the LINE_BREAKER and TRUNCATE settings.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2014 20:15:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-larger-events-are-truncated-10000-bytes/m-p/122892#M25405</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2014-09-12T20:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Why are larger events are truncated (10000 bytes)?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-larger-events-are-truncated-10000-bytes/m-p/122893#M25406</link>
      <description>&lt;P&gt;Thanks Yannk and sowings... It worked after placing props.conf file at Indexers and HWFs. &lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2014 20:40:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-larger-events-are-truncated-10000-bytes/m-p/122893#M25406</guid>
      <dc:creator>jayannah</dc:creator>
      <dc:date>2014-09-17T20:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Why are larger events are truncated (10000 bytes)?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-larger-events-are-truncated-10000-bytes/m-p/122894#M25407</link>
      <description>&lt;P&gt;I've same problem. But I've the props.conf setting only on heavy forwarders and search heads. Do I need these settings on indexers too ?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[xml]
KV_MODE = xml
DATETIME_CONFIG = NONE
BREAK_ONLY_BEFORE = ^\&amp;lt;?xml
MAX_EVENTS = 500
TRUNCATE = 25000
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Oct 2015 09:34:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-larger-events-are-truncated-10000-bytes/m-p/122894#M25407</guid>
      <dc:creator>i2sheri</dc:creator>
      <dc:date>2015-10-02T09:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why are larger events are truncated (10000 bytes)?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-larger-events-are-truncated-10000-bytes/m-p/122895#M25408</link>
      <description>&lt;P&gt;jayannah, Can you please send me the steps for adding props.conf to Indexers and HWF.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 18:22:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-larger-events-are-truncated-10000-bytes/m-p/122895#M25408</guid>
      <dc:creator>srramu46</dc:creator>
      <dc:date>2016-08-15T18:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why are larger events are truncated (10000 bytes)?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-larger-events-are-truncated-10000-bytes/m-p/122896#M25409</link>
      <description>&lt;P&gt;Splunk query to find truncation issues and also recommend a TRUNCATE parameter for props.conf.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="_internal" sourcetype=splunkd source="*splunkd.log" log_level="WARN" "Truncating" 
| rex "line length &amp;gt;= (?&amp;lt;line_length&amp;gt;\d+)" 
| stats values(host) as host values(data_host) as data_host count last(_raw) as common_events last(_time) as _time max(line_length) as max_line_length by data_sourcetype log_level 
| table _time host data_host data_sourcetype log_level max_line_length count common_events 
| rename data_sourcetype as sourcetype 
| eval number=max_line_length 
| eval recommeneded_truncate=max_line_length+100000 
| eval recommeneded_truncate=recommeneded_truncate-(recommeneded_truncate%100000) 
| eval recommended_config="# props.conf
 ["+sourcetype+"]
 TRUNCATE = "+recommeneded_truncate 
| table _time host data_host sourcetype log_level max_line_length recommeneded_truncate recommended_config count common_events 
| sort -count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 May 2019 15:48:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-larger-events-are-truncated-10000-bytes/m-p/122896#M25409</guid>
      <dc:creator>bandit</dc:creator>
      <dc:date>2019-05-17T15:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why are larger events are truncated (10000 bytes)?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-larger-events-are-truncated-10000-bytes/m-p/122897#M25410</link>
      <description>&lt;P&gt;works for me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 16:52:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-larger-events-are-truncated-10000-bytes/m-p/122897#M25410</guid>
      <dc:creator>erez10121012</dc:creator>
      <dc:date>2019-08-22T16:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why are larger events are truncated (10000 bytes)?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-larger-events-are-truncated-10000-bytes/m-p/122898#M25411</link>
      <description>&lt;P&gt;hi @yannK , &lt;BR /&gt;
 I already updated the props.conf in my indexer and forwarder but my data still get truncated to 100 KB.&lt;BR /&gt;
Do you know how to find out if my data flows thru the HWF before getting into the indexer?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 23:21:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-larger-events-are-truncated-10000-bytes/m-p/122898#M25411</guid>
      <dc:creator>mufthmu</dc:creator>
      <dc:date>2019-12-12T23:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Why are larger events are truncated (10000 bytes)?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-larger-events-are-truncated-10000-bytes/m-p/122899#M25412</link>
      <description>&lt;P&gt;Hi, @mufthmu, you can look at outputs.conf on each instance to see where it's routing to. Typically, you'll need to have these line breaking rules configured on the first touch point of a full Splunk instance, whether that's a heavy forwarder or indexer.&lt;/P&gt;

&lt;P&gt;i.e.&lt;BR /&gt;
Universal Forwarder ---&amp;gt; Indexers (props.conf here)&lt;BR /&gt;
OR&lt;BR /&gt;
Universal Forwarder --&amp;gt; Heavy Forwarder(props.conf here) --&amp;gt; Indexers&lt;BR /&gt;
OR&lt;BR /&gt;
Heavy Forwarder(props.conf here) --&amp;gt; Indexers&lt;/P&gt;

&lt;P&gt;I suppose you could also install in both locations (Heavy Forwarder and Indexer) if that's simpler for you.&lt;/P&gt;

&lt;P&gt;In the outputs.conf for your Splunk instances you'll see something like the following (often port 9997) &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;server=&amp;lt;receiving_server1&amp;gt;, &amp;lt;receiving_server2&amp;gt;
or tcpout-server://&amp;lt;ipaddress_or_hostname&amp;gt;:&amp;lt;port&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;if you have command line access on a Linux server you can run btool debug (your path for splunk may vary) to list out the merged configuration splunk is using for outputs.conf&lt;/P&gt;

&lt;P&gt;example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  /opt/splunk/bin/splunk btool --debug outputs list |egrep "server|tcpout-server"
  /opt/splunkforwarder/bin/splunk btool --debug outputs list |egrep "server|tcpout-server"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Dec 2019 04:00:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-larger-events-are-truncated-10000-bytes/m-p/122899#M25412</guid>
      <dc:creator>bandit</dc:creator>
      <dc:date>2019-12-13T04:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Why are larger events are truncated (10000 bytes)?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-larger-events-are-truncated-10000-bytes/m-p/588789#M103308</link>
      <description>&lt;P&gt;I have the same problem. Where do I find the config files to make the suggested changes on a windows machine?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 18:26:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-larger-events-are-truncated-10000-bytes/m-p/588789#M103308</guid>
      <dc:creator>davedoucette</dc:creator>
      <dc:date>2022-03-11T18:26:10Z</dc:date>
    </item>
  </channel>
</rss>

