Skip to content

Is there any "length limitation" in parse_json function? #8306

Answered by StephenWakely
iamdobi asked this question in Q&A
Discussion options

You must be logged in to vote

So the limit here is actually in the terminal. When you paste a line with a length > 4096 the tty will truncate the string, so Vector never actually gets the full string.

There is no limit, beyond available RAM, to the length of string that parse_json can parse.

You should find the transform parses correctly if you save the json to a file and pipe that to Vector:

./bin/vector -c conf.toml  < input.txt

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@iamdobi
Comment options

@StephenWakely
Comment options

Answer selected by iamdobi
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