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

[logs_processors] Add support for lookup processors #287

Merged
merged 2 commits into from
Nov 22, 2019

Conversation

blemale
Copy link
Contributor

@blemale blemale commented Nov 20, 2019

@blemale blemale force-pushed the logs_processors_add_lookup_processor branch from 44bf87a to c0c23af Compare November 20, 2019 17:11
@blemale
Copy link
Contributor Author

blemale commented Nov 21, 2019

Hi @bkabrda ! Could you have your 👀 on this PR?
Thanks in advance for your time :)

Copy link
Collaborator

@bkabrda bkabrda left a comment

Choose a reason for hiding this comment

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

Hey, this looks great, I just left one minor comment inline to address.

@@ -93,6 +94,14 @@ type GrokRule struct {
MatchRules *string `json:"match_rules"`
}

// LookupProcessor represents the lookup processor from config API.
type LookupProcessor struct {
Source *string `json:"source"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

The fields that are not required should be marked as omitempty (IIUC that's default_lookup)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right! I have made the change 👌

Copy link
Collaborator

@bkabrda bkabrda left a comment

Choose a reason for hiding this comment

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

Perfect, LGTM now. Merging, thanks!

@bkabrda bkabrda merged commit 04df0d6 into zorkian:master Nov 22, 2019
kazz187 pushed a commit to kazz187/go-datadog-api that referenced this pull request Nov 28, 2019
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