-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Always send _type to Monitoring Bulk API #11217
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.
Pinging @elastic/stack-monitoring |
LGTM (I think) I am not familiar with this code, but as long it continues to send the The description for the issue is correct such that |
jenkins, test this |
1 similar comment
jenkins, test this |
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)
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)
…11229) Cherry-pick of PR #11217 to 6.7 branch. Original message: 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.
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)
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 atype
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.