Getting Data In

Do I need to create a transforms.conf file in addition to props.conf to disable truncate for a specific sourcetype?

briandickinson
New Member

I have created a props.conf file to allow for logging an event of 16,000 characters. If I am reading the documentation correctly I can tie it to a specific source type and add it to the application I have deployed.

So, I added this props file to my app:

Increase the default line length

sourcetype = bluestripe
TRUNCATE = 0

But the line break is still happening. Do, I need to create a transforms.conf file to go with this that has a stanza name that I replicate in the props file for it to work? Or am I doing something else wrong?

0 Karma

bmacias84
Champion

hello,

their are two settings in props.conf one for truncation and event breaking. TRUNCATE applies to maximum line length of a line in bytes and the other is MAX_EVENTS which specifies the maximum number of input lines to add to any event. If you event is over 16,000 chars long and multi line you will have to set both. By default MAX_EVENTS breaks an event after 256.

Modifying these setting may cause performance issues.


[bluestripe]
TRUNCATE = 0
MAX_EVENTS = 1000

strive
Influencer

Can you post the proper snippet of your props.conf file

0 Karma

strive
Influencer

It Should be like this in props.conf

[bluestripe]
TRUNCATE = 0
0 Karma

strive
Influencer

transforms.conf is not needed

0 Karma

briandickinson
New Member

No transforms.conf needed?

0 Karma
Get Updates on the Splunk Community!

App Building 101 - Build Your First App!

WATCH RECORDING NOW   Tech Talk: App Dev Edition Splunk has tons of out-of-the-box functionality, and you’ve ...

Introducing support for Amazon Data Firehose in Splunk Edge Processor

We’re excited to announce a powerful update to Splunk Data Management with added support for Amazon Data ...

The Observability Round-Up: September 2024

What’s up Splunk Community! Welcome to the latest edition of the Observability Round-Up, a monthly series in ...