<?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: Does TRUNCATE specify the ultimate size of an event? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Does-TRUNCATE-specify-the-ultimate-size-of-an-event/m-p/476574#M81814</link>
    <description>&lt;P&gt;We are fine with &lt;CODE&gt;TRUNCATE&lt;/CODE&gt; for the max line's length and &lt;CODE&gt;MAX_EVENTS&lt;/CODE&gt; for max number of lines.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Feb 2020 17:36:32 GMT</pubDate>
    <dc:creator>danielbb</dc:creator>
    <dc:date>2020-02-27T17:36:32Z</dc:date>
    <item>
      <title>Does TRUNCATE specify the ultimate size of an event?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Does-TRUNCATE-specify-the-ultimate-size-of-an-event/m-p/476569#M81809</link>
      <description>&lt;P&gt;We are not clear whether setting TRUNCATE to a certain value guarantees that the event won't exceed this size in bytes. If not, can we specify the maximum length of an event somewhere?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 17:06:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Does-TRUNCATE-specify-the-ultimate-size-of-an-event/m-p/476569#M81809</guid>
      <dc:creator>danielbb</dc:creator>
      <dc:date>2020-02-19T17:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Does TRUNCATE specify the ultimate size of an event?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Does-TRUNCATE-specify-the-ultimate-size-of-an-event/m-p/476570#M81810</link>
      <description>&lt;P&gt;Splunk truncates events in bytes, from Splunk documentation on props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TRUNCATE = &amp;lt;non-negative integer&amp;gt;
* The default maximum line length, in bytes.
* Although this is in bytes, line length is rounded down when this would
  otherwise land mid-character for multi-byte characters.
* Set to 0 if you never want truncation (very long lines are, however, often
  a sign of garbage data).
* Default: 10000
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Feb 2020 17:18:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Does-TRUNCATE-specify-the-ultimate-size-of-an-event/m-p/476570#M81810</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-02-19T17:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Does TRUNCATE specify the ultimate size of an event?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Does-TRUNCATE-specify-the-ultimate-size-of-an-event/m-p/476571#M81811</link>
      <description>&lt;P&gt;Ok, according to this documentation, &lt;CODE&gt;TRUNCATE&lt;/CODE&gt; specifies the length of a &lt;STRONG&gt;line&lt;/STRONG&gt;. Then we can merge lines, right? I wonder if or where we can specify the max length of an event?&lt;/P&gt;

&lt;P&gt;Beacuae I run -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=&amp;lt;index name&amp;gt;
| eval len = len(_raw)
| stats max(len)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And it returns &lt;STRONG&gt;3,461,805&lt;/STRONG&gt;. I would like to have a concrete limit for the length of an event. &lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 18:22:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Does-TRUNCATE-specify-the-ultimate-size-of-an-event/m-p/476571#M81811</guid>
      <dc:creator>danielbb</dc:creator>
      <dc:date>2020-02-19T18:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Does TRUNCATE specify the ultimate size of an event?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Does-TRUNCATE-specify-the-ultimate-size-of-an-event/m-p/476572#M81812</link>
      <description>&lt;P&gt;You can try applying regex to truncate the _raw field. Below regex gets first 3000 characters.&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype]
TRUNCATE = 10000
TRANSFORMS-truncate_raw = truncate_raw
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[truncate_raw]
SOURCE_KEY  = _raw
REGEX = ^.{0,3000}
DEST_KEY = _raw
FORMAT = $1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Feb 2020 18:54:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Does-TRUNCATE-specify-the-ultimate-size-of-an-event/m-p/476572#M81812</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-02-19T18:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Does TRUNCATE specify the ultimate size of an event?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Does-TRUNCATE-specify-the-ultimate-size-of-an-event/m-p/476573#M81813</link>
      <description>&lt;P&gt;Nice @manjunathmeti - are there any combinations where TRUNCATE does specify the length of the event? &lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 19:24:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Does-TRUNCATE-specify-the-ultimate-size-of-an-event/m-p/476573#M81813</guid>
      <dc:creator>danielbb</dc:creator>
      <dc:date>2020-02-20T19:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Does TRUNCATE specify the ultimate size of an event?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Does-TRUNCATE-specify-the-ultimate-size-of-an-event/m-p/476574#M81814</link>
      <description>&lt;P&gt;We are fine with &lt;CODE&gt;TRUNCATE&lt;/CODE&gt; for the max line's length and &lt;CODE&gt;MAX_EVENTS&lt;/CODE&gt; for max number of lines.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 17:36:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Does-TRUNCATE-specify-the-ultimate-size-of-an-event/m-p/476574#M81814</guid>
      <dc:creator>danielbb</dc:creator>
      <dc:date>2020-02-27T17:36:32Z</dc:date>
    </item>
  </channel>
</rss>

