Skip to content

Fixes to address 2K message size limit when using SyslogUDPSource. #45

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

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

ryanpersaud
Copy link

Please see https://issues.apache.org/jira/browse/FLUME-2885. Currently, the SyslogUDPSource truncates messages > 2K. With this fix, the default behavior remains the same (2K is used for the buffer size), but if a user specifies a value for datagramSize in the flume configuration, then that size is used instead. If we want to use AdaptiveReceiveBufferSizePredictor to avoid allocating buffers that are larger than necessary, 'someone' is going to have to develop a more comprehensive fix. This at least allows for udp syslog users with messages larger than 2K to process their messages without truncation.

I have deployed this fix in two environments where syslog messages can be larger than 2K, and it works as expected.

@ryanpersaud
Copy link
Author

Hmm, it occurs to me that I should probably set datagramSize to the min of datagramSize and maxsize.

@asfgit
Copy link

asfgit commented Aug 17, 2018

Can one of the admins verify this patch?

@maralla
Copy link

maralla commented Apr 29, 2019

Is this project still alive?

@szaboferee
Copy link
Contributor

Yes

waidr pushed a commit to waidr/flume that referenced this pull request Jul 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants