-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
in_syslog: Support octet counting frame. fix #1679 #2147
Conversation
Signed-off-by: Masahiro Nakagawa <[email protected]>
lib/fluent/plugin/in_syslog.rb
Outdated
@@ -75,6 +75,8 @@ class SyslogInput < Input | |||
config_param :tag, :string | |||
desc 'The transport protocol used to receive logs.(udp, tcp)' | |||
config_param :protocol_type, :enum, list: [:tcp, :udp], default: :udp | |||
desc 'The message frame type.(normal, octet_count)' | |||
config_param :frame_type, :enum, list: [:normal, :octet_count], default: :normal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want better name for normal
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so, too.
How about older
or traditional
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
traditional
seems good. Will change soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good to me except for frame_type
naming.
Signed-off-by: Masahiro Nakagawa <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Add
frame_type
parameter to accept octet counting.If set
frame_type octet_count
in the configuration,in_syslog
can accept octet counting messag from senders.Signed-off-by: Masahiro Nakagawa [email protected]