Cherry-pick #11217 to 7.0: Always send _type to Monitoring Bulk API#11227
Merged
ruflin merged 1 commit intoelastic:7.0from Mar 19, 2019
Merged
Cherry-pick #11217 to 7.0: Always send _type to Monitoring Bulk API#11227ruflin merged 1 commit intoelastic:7.0from
ruflin merged 1 commit intoelastic:7.0from
Conversation
The Monitoring Bulk API (`POST _xpack/monitoring/_bulk`) does not interpret `_type` in the bulk metadata the same was as the regular Bulk API (`POST _bulk`). In the case of the Monitoring Bulk API, `_type` has a special meaning. It does not correspond to the Elasticsearch document `_type` but rather a `type` field within monitoring documents. The `_type` of those monitoring documents gets automatically set to `_doc` by the Monitoring Bulk API. Therefore, the Beats monitoring code should always send `_type` to the Monitoring Bulk API. (cherry picked from commit ac72b5c)
kaiyan-sheng
approved these changes
Mar 14, 2019
Contributor
|
jenkins, test this |
1 similar comment
Contributor
|
jenkins, test this |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cherry-pick of PR #11217 to 7.0 branch. Original message:
The Monitoring Bulk API (
POST _xpack/monitoring/_bulk) does not interpret_typein the bulk metadata the same was as the regular Bulk API (POST _bulk). In the case of the Monitoring Bulk API,_typehas a special meaning. It does not correspond to the Elasticsearch document_typebut rather atypefield within monitoring documents. The_typeof those monitoring documents gets automatically set to_docby the Monitoring Bulk API.Therefore, the Beats monitoring code should always send
_typeto the Monitoring Bulk API.