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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...