Elasticsearch: Fix processing of raw_data with not-recognized time format (#78262)

* Elasticsearch: Fix non-standard time field in raw data queries

* Update snapshot tests

* Refactor
This commit is contained in:
Ivana Huckova
2023-11-20 12:01:41 +01:00
committed by GitHub
parent cfc67a9e2d
commit 28f4c3ed44
4 changed files with 108 additions and 1 deletions

View File

@@ -231,6 +231,15 @@ func processRawDataResponse(res *es.SearchResponse, target *Query, configuredFie
doc[k] = v
}
if hit["fields"] != nil {
source, ok := hit["fields"].(map[string]interface{})
if ok {
for k, v := range source {
doc[k] = v
}
}
}
for key := range doc {
propNames[key] = true
}