when the source_to_query_index_mapping field is upserted without the .opendistro-alerting-config index present, the mapping for it gets corrupted.
"source_to_query_index_mapping": {
"properties": {
"ocsf_api_activityXnRAfI0B9Qgmh2Pzq4q4": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
}
this pr ensures that the upsert doesn't happen if the index is not present.
CheckList:
[X] Commits are signed per the DCO using --signoff
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.
Issue #, if available:
Description of changes:
the correct mapping for the field is,
this pr ensures that the
upsert
doesn't happen if the index is not present.CheckList:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.