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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...