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 "replace" query param to Grok bulk import REST API endpoint. #1034

Merged
merged 1 commit into from Mar 5, 2015

Conversation

bernd
Copy link
Member

@bernd bernd commented Mar 5, 2015

Existing Grok patterns will be removed before adding the new ones if set
to true.

Fixes #937
Refs graylog-labs/graylog2-web-interface#1150

@@ -104,6 +107,9 @@ public Response bulkUpdatePatterns(@ApiParam(name = "patterns", required = true)
throw new ValidationException("Invalid pattern " + pattern + ". Did not save any patterns.");
}
}
if (replace) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This logic should be moved into GrokPatternService.

Copy link
Member Author

Choose a reason for hiding this comment

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

Then we have to move the pattern creation as well. Any suggestion for method names?

Existing Grok patterns will be removed before adding the new ones if set
to true.

Fixes #937
Refs graylog-labs/graylog2-web-interface#1150
joschi added a commit that referenced this pull request Mar 5, 2015
Add "replace" query param to Grok bulk import REST API endpoint
@joschi joschi merged commit 44a2487 into 1.0 Mar 5, 2015
@joschi joschi deleted the issue-937 branch March 5, 2015 15:22
@joschi joschi added this to the 1.0.1 milestone Mar 5, 2015
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.

None yet

2 participants