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

fix(humio_logs sink): Set host key correctly #4229

Merged
merged 2 commits into from
Oct 2, 2020
Merged

Conversation

jszwedko
Copy link
Member

This sink was previously not setting the host key of the Splunk HEC
format
(https://docs.humio.com/integrations/ingest-logs-with-a-data-shipper/hec/)
as the host_key field on the SinkHecConfig was defaulting host_key
to ''.

I opted to expose the host_key as a config option on the Humio sink to
parallel its existence on the Splunk HEC sink.

Fixes #4228

Signed-off-by: Jesse Szwedko jesse@szwedko.me

This sink was previously not setting the `host` key of the Splunk HEC
format
(https://docs.humio.com/integrations/ingest-logs-with-a-data-shipper/hec/)
as the `host_key` field on the `SinkHecConfig` was defaulting `host_key`
to `''`.

I opted to expose the `host_key` as a config option on the Humio sink to
parallel its existence on the Splunk HEC sink.

Fixes #4228

Signed-off-by: Jesse Szwedko <jesse@szwedko.me>
required = false
description = """\
The name of the log field to be used as the hostname sent to Humio. This \
overrides the \ [global `host_key` \
Copy link
Contributor

Choose a reason for hiding this comment

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

Extra \ here perhaps? I see the check-meta failing.

Copy link
Member Author

Choose a reason for hiding this comment

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

Oops, thanks! I line wrapped and miss that \.

Signed-off-by: Jesse Szwedko <jesse@szwedko.me>
@jszwedko
Copy link
Member Author

jszwedko commented Oct 2, 2020

Failing tests are #4196 and an issue pulling from dockerhub that I think is not worth redoing given the scope of this change

@jszwedko jszwedko merged commit f7a9b67 into master Oct 2, 2020
@jszwedko jszwedko deleted the set-host-for-humio branch October 2, 2020 17:23
mengesb pushed a commit to jacobbraaten/vector that referenced this pull request Dec 9, 2020
* fix(humio_logs sink): Set host key correctly

This sink was previously not setting the `host` key of the Splunk HEC
format
(https://docs.humio.com/integrations/ingest-logs-with-a-data-shipper/hec/)
as the `host_key` field on the `SinkHecConfig` was defaulting `host_key`
to `''`.

I opted to expose the `host_key` as a config option on the Humio sink to
parallel its existence on the Splunk HEC sink.

Fixes vectordotdev#4228

Signed-off-by: Brian Menges <brian.menges@anaplan.com>
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.

Hostname not supported by Humio sink
3 participants