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

Allowing provider to be changed for kentik flow #675

Merged
merged 1 commit into from
Mar 4, 2024

Conversation

i3149
Copy link
Contributor

@i3149 i3149 commented Mar 1, 2024

Allow the override of the provider string for flow coming from Kentik.

To use, set env var KENTIK_DEFAULT_PROVIDER_TYPE=my-custom-provider And then you will getprovider: my-custom-provider.

Tested with:

./bin/ktranslate -listen 127.0.0.1:4040 -format splunk...

And you get {"host":"ksynth","sourcetype":"kentik-flow-device"

Then, KENTIK_DEFAULT_PROVIDER_TYPE=fooooooo ./bin/ktranslate -listen 127.0.0.1:4040 -format splunk...

And you get {"host":"ksynth","sourcetype":"fooooooo"...

Also removed a .DSStore file which really shouldn't have been in git in the first place.

@i3149 i3149 requested a review from briandav22 March 1, 2024 06:28
Copy link
Collaborator

@briandav22 briandav22 left a comment

Choose a reason for hiding this comment

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

Looks good!

@i3149 i3149 merged commit 3a2e7c0 into main Mar 4, 2024
1 check passed
@i3149 i3149 deleted the allow-provider-override branch March 4, 2024 20:11
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.

2 participants