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

in_syslog: Support octet counting frame. fix #1679 #2147

Merged
merged 2 commits into from
Nov 8, 2018

Conversation

repeatedly
Copy link
Member

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]

@repeatedly repeatedly added v1 enhancement Feature request or improve operations labels Oct 15, 2018
@@ -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
Copy link
Member Author

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.

Copy link
Contributor

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?

Copy link
Member Author

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.

Copy link
Contributor

@cosmo0920 cosmo0920 left a 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.

Copy link
Contributor

@cosmo0920 cosmo0920 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@repeatedly repeatedly merged commit 1a26878 into master Nov 8, 2018
@repeatedly repeatedly deleted the syslog-octet-counting branch November 8, 2018 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature request or improve operations v1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants