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

add support for source_hostname_key and source_address_key on umatched syslog messages #2553

Merged
merged 2 commits into from Aug 14, 2019

Conversation

aeber
Copy link
Contributor

@aeber aeber commented Aug 12, 2019

Which issue(s) this PR fixes:
Fixes #2552

What this PR does / why we need it:
Unmatched messages from the syslog input should contain source_hostname_key or
source_address_key if configured as this information is provided by the
underlying udp oder tcp server and is available even if the message
could not be parsed.

This PR will add support for the expected behaviour of honoring source_address_key and source_hostname_key on unmatched lines.

@aeber aeber changed the title add testcases for unmatched messages add support for source_hostname_key and source_address_key on umatched syslog messages Aug 12, 2019
Unmatched messages should contain source_hostname_key or
source_address_key if configured as this information is provided by the
underlying udp oder tcp server and is available even if the message
could not be parsed.

This commit adds testcases for these options in combination with
unmatched lines.

Signed-off-by: Anselm Eberhardt <aeberhardt@dg-i.net>
@aeber aeber force-pushed the feature_add_source_to_unmatched branch from ecd158d to db29777 Compare August 12, 2019 13:14
@aeber aeber marked this pull request as ready for review August 12, 2019 13:15
Include source_address_key or source_hostname_key on unmatched lines
when configured.

This fixes the test cases added in
e3b959b.

Signed-off-by: Anselm Eberhardt <aeberhardt@dg-i.net>
@aeber aeber force-pushed the feature_add_source_to_unmatched branch from db29777 to 22ebe9b Compare August 13, 2019 09:21
@repeatedly repeatedly merged commit f2b24f5 into fluent:master Aug 14, 2019
@repeatedly
Copy link
Member

Looks good. Thanks!

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.

"emit_unmatched_lines" ommits source_hostname_key or source_address_key
2 participants