Skip to content

Resolving "data could not be added to batch" error #218

Answered by jshlbrd
nishaprabhakar asked this question in Q&A
Discussion options

You must be logged in to vote

@nishaprabhakar I think I see the problem, but you may want to delete that comment (in case you're concerned about the AWS resource listed).

The format to JSONL pattern has the default batch settings coded into it (seen here). That's limiting the total size of the batch to 1 MB, and since you increased the size on the S3 send to 20 MB, you probably have events larger than that; the S3 settings is accepting data larger than 1 MB, but the JSONL conversion isn't.

In this case the best thing to do is rewrite that pattern into your helpers function with a much larger size value (same as the send_s3 config). Alternatively, you could overwrite the default value in your local substation.libsonnet

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@nishaprabhakar
Comment options

@jshlbrd
Comment options

Answer selected by nishaprabhakar
@nishaprabhakar
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants