Getting Data In

Line limit for scripted inputs?

rsigle
Explorer

I have a script that outputs between 300 and 800 lines. The output seems to be truncated after 138 lines. Is there a line limit for scripted inputs, and if so, are they configurable?

I have set MAX_EVENTS=1500 and still have an issue.

0 Karma
1 Solution

gkanapathy
Splunk Employee
Splunk Employee

Do you possibly have a custom LINE_BREAKER, and/or SHOULD_LINEMERGE = false set? If so, your script output may be treated as a single "line" in which case it would be truncated after 50,000 characters. You can raise this by setting TRUNCATE = 999999, for example.

Also, if you are running on a LWF, you should make sure that your output buffer doesn't cut off the middle of an event. It's not that likely to happen unless the output is generated slowly enough that the LWF switches in the middle of your event, but it could happen occasionally. I don't think this is your problem if it's consistent.

View solution in original post

gkanapathy
Splunk Employee
Splunk Employee

Do you possibly have a custom LINE_BREAKER, and/or SHOULD_LINEMERGE = false set? If so, your script output may be treated as a single "line" in which case it would be truncated after 50,000 characters. You can raise this by setting TRUNCATE = 999999, for example.

Also, if you are running on a LWF, you should make sure that your output buffer doesn't cut off the middle of an event. It's not that likely to happen unless the output is generated slowly enough that the LWF switches in the middle of your event, but it could happen occasionally. I don't think this is your problem if it's consistent.

rsigle
Explorer

Setting TRUNCATE = 999999 resolved the issue for me. Thanks again.

0 Karma

rsigle
Explorer

Thank you Gerald. I have SHOULD_LINEMERGE=false set in the props.conf. I will increase the the TRUNCATE option and report back with my results.

We are running LWF, so the output buffer could be an issue, however, the data is not generated slowly, so that will be the next thing I look at.

Rick

0 Karma
Get Updates on the Splunk Community!

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...