Splunk Search

TRUCANTE Logs

andgarciaa
Explorer

Hello,

I am using Splunk Cloud, for some our sourcetypes we have defined specific TRUNCATE values. I have a couple of questions.

If `TRUNCATE` value is not defined for a sourcetype, what is the default limit of chars?

Is there any guideline document or rules on how to define TRUNCATE? Especially if it is recommended to set something higher than 50k or 80k chars as a limit.

0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @andgarciaa ,

you can find more infos at https://docs.splunk.com/Documentation/Splunk/9.2.1/Admin/Propsconf

and answering to your question:

TRUNCATE = <non-negative integer>
* 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

There isn't a general guideline: usually the TRUNCATE value is defined by the specific Add-On you're using and it's related to the technology you're using.

If you are ingesting a custom log, you have to choose the correct one by yourself.

Ciao.

Giuseppe

View solution in original post

gcusello
SplunkTrust
SplunkTrust

Hi @andgarciaa ,

you can find more infos at https://docs.splunk.com/Documentation/Splunk/9.2.1/Admin/Propsconf

and answering to your question:

TRUNCATE = <non-negative integer>
* 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

There isn't a general guideline: usually the TRUNCATE value is defined by the specific Add-On you're using and it's related to the technology you're using.

If you are ingesting a custom log, you have to choose the correct one by yourself.

Ciao.

Giuseppe

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...