<?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: Truncate in props.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Truncate-in-props-conf/m-p/457156#M78982</link>
    <description>&lt;P&gt;I would push VERY HARD for migrating away from syslog-direct-to-Indexer by adding a syslog-ng node and either doing either this:&lt;BR /&gt;
&lt;A href="http://www.georgestarcher.com/splunk-success-with-syslog/"&gt;http://www.georgestarcher.com/splunk-success-with-syslog/&lt;/A&gt;&lt;BR /&gt;
Or this:&lt;BR /&gt;
&lt;A href="https://www.splunk.com/blog/2017/03/30/syslog-ng-and-hec-scalable-aggregated-data-collection-in-splunk.html"&gt;https://www.splunk.com/blog/2017/03/30/syslog-ng-and-hec-scalable-aggregated-data-collection-in-splunk.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If you get your RegEx wrong and you have huge volume, then you can crash your Indexers using &lt;CODE&gt;TRUNCATE=0&lt;/CODE&gt; which is why we just keep adding &lt;CODE&gt;9&lt;/CODE&gt;s to the order of magintude that we expect (e.g. &lt;CODE&gt;TRUNCATE = 999999&lt;/CODE&gt;).&lt;/P&gt;

&lt;P&gt;To look for truncated events, look for the "leftover" pieces with a search like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=&amp;lt;You Should Always Specify Your index&amp;gt; AND sourcetype=&amp;lt;And Your sourcetype Too&amp;gt;
| where _time == _indextime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or you can do&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | regex punct!="^&amp;lt;Your Normal Punct beginning here&amp;gt;"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 08 Jul 2019 16:47:01 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-07-08T16:47:01Z</dc:date>
    <item>
      <title>Truncate in props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Truncate-in-props-conf/m-p/457154#M78980</link>
      <description>&lt;P&gt;what is the expected impact of increasing the value for TRUNCATE, the log reception upper limit setting value that can be defined in the indexer props.conf.&lt;BR /&gt;
Also, is there any problem cases with TRUNCATE increased or 0 (unlimited).&lt;BR /&gt;
　　&lt;/P&gt;

&lt;P&gt;Further, in the customer environment, with index server directly receiving proxy log by syslog transfer, we plan to change the value to TRUNCATE = 64,000.&lt;BR /&gt;
　 &lt;BR /&gt;
Is there a way to verify that a log (truncated log) that exceeds the TRUNCATE value has occurred?&lt;/P&gt;

&lt;P&gt;Can I assume that the log of the truncated part cannot be recovered? &lt;/P&gt;</description>
      <pubDate>Sun, 07 Jul 2019 19:53:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Truncate-in-props-conf/m-p/457154#M78980</guid>
      <dc:creator>simon21</dc:creator>
      <dc:date>2019-07-07T19:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Truncate in props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Truncate-in-props-conf/m-p/457155#M78981</link>
      <description>&lt;P&gt;If you are seeing events being truncated (regularly seeing "truncating" in splunkd.log) then increasing the value of TRUNCATE for that sourcetype should help eliminate the truncations.&lt;BR /&gt;
Increasing the value for TRUNCATE increases indexer memory use.  Likewise, for setting the value to zero.&lt;/P&gt;

&lt;P&gt;It's not Best Practice for an indexer to receive syslog events directly.  It's preferred to have a dedicated syslog server and use a forwarder to send the events to Splunk.&lt;/P&gt;

&lt;P&gt;The new value for TRUNCATE should be a little higher than the longest message you've seen truncated in splunkd.log. &lt;/P&gt;

&lt;P&gt;Truncated data is lost and cannot be recovered unless it is re-indexed.  Of course, re-indexing probably is not possible when receiving syslog directly (which is another reason to not do it).&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jul 2019 20:46:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Truncate-in-props-conf/m-p/457155#M78981</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-07-07T20:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Truncate in props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Truncate-in-props-conf/m-p/457156#M78982</link>
      <description>&lt;P&gt;I would push VERY HARD for migrating away from syslog-direct-to-Indexer by adding a syslog-ng node and either doing either this:&lt;BR /&gt;
&lt;A href="http://www.georgestarcher.com/splunk-success-with-syslog/"&gt;http://www.georgestarcher.com/splunk-success-with-syslog/&lt;/A&gt;&lt;BR /&gt;
Or this:&lt;BR /&gt;
&lt;A href="https://www.splunk.com/blog/2017/03/30/syslog-ng-and-hec-scalable-aggregated-data-collection-in-splunk.html"&gt;https://www.splunk.com/blog/2017/03/30/syslog-ng-and-hec-scalable-aggregated-data-collection-in-splunk.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If you get your RegEx wrong and you have huge volume, then you can crash your Indexers using &lt;CODE&gt;TRUNCATE=0&lt;/CODE&gt; which is why we just keep adding &lt;CODE&gt;9&lt;/CODE&gt;s to the order of magintude that we expect (e.g. &lt;CODE&gt;TRUNCATE = 999999&lt;/CODE&gt;).&lt;/P&gt;

&lt;P&gt;To look for truncated events, look for the "leftover" pieces with a search like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=&amp;lt;You Should Always Specify Your index&amp;gt; AND sourcetype=&amp;lt;And Your sourcetype Too&amp;gt;
| where _time == _indextime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or you can do&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | regex punct!="^&amp;lt;Your Normal Punct beginning here&amp;gt;"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Jul 2019 16:47:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Truncate-in-props-conf/m-p/457156#M78982</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-07-08T16:47:01Z</dc:date>
    </item>
  </channel>
</rss>

