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!

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

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

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...