Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

detect streaming inputs and terminate if a delimiter isn't set #90

Open
jsvd opened this issue Jun 23, 2021 · 0 comments
Open

detect streaming inputs and terminate if a delimiter isn't set #90

jsvd opened this issue Jun 23, 2021 · 0 comments

Comments

@jsvd
Copy link
Member

jsvd commented Jun 23, 2021

The delimiter setting was introduced to make cef decoding possible on byte stream inputs like the TCP input.

Without a delimiter it's impossible to guarantee that each write containing a single cef message won't be concatenated together in the multiple buffers along the way.

Therefore, a configuration like input { tcp { port => 3333 codec => cef } } should throw an error letting the user know that no delimiter has been set, requiring the user to do something like input { tcp { port => 3333 codec => cef { delimiter => "\n" } } }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant