Remove_newline default must be false not true as in a first place it does not make much sense to remove anything in in_udp.
it breaks existing behaviour so it is hard.
Existing behaviour is bad as UDP does not know anything about strings. It is all about bytes and you cannot just remove valid bytes.
If try to change the default value, we need several months for users.
Imho it is also NOT an enhancement request but bug. Well, then it takes what it takes. If it would be me I would just remove it all together (no options). If you go with option it has to be false as a default.
If you go with option it has to be false as a default.
Yes with several month transitional period.
Again, some users already use in_udp plugin with text transfer and they assume text doesn't have new line of the end in fluentd pipeline.
So don't break this behaviour without transitional period.
Just to close this one :). Sure you can go with transition period. My point is rather following:
1) UDP plugin should never ever interpret bytes as string. That is why having an option does not make sense
2) If any users of that plugin rely on removed new line then they definitely do something wrong
3) Current behaviour is not acceptable at all (as valid byte is just removed) and should be fixed asap (and I am wondering how it is possible that nobody hit this issue before to be honest)
Most helpful comment
Just to close this one :). Sure you can go with transition period. My point is rather following:
1) UDP plugin should never ever interpret bytes as string. That is why having an option does not make sense
2) If any users of that plugin rely on removed new line then they definitely do something wrong
3) Current behaviour is not acceptable at all (as valid byte is just removed) and should be fixed asap (and I am wondering how it is possible that nobody hit this issue before to be honest)