Files
grafana/pkg/tsdb/elasticsearch/testdata_request/logs.request.line1.json
T
Grot (@grafanabot) 9153c38519 [v10.0.x] Elasticsearch: Fix processing of logs with not-recognized time format (#67866)
Elasticsearch: Fix processing of logs with not-recognized time format (#67767)

* Elasticsearch: Fix parsing of invalid time

* Fix lint

* Add more test data to data.js

* Add tests

* Fix lint

* Update pkg/tsdb/elasticsearch/client/search_request.go

(cherry picked from commit 95cf598423)

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2023-05-05 10:38:12 +02:00

66 lines
1.2 KiB
JSON

{
"docvalue_fields": [
"testtime"
],
"query": {
"bool": {
"filter": {
"range": {
"testtime": {
"format": "epoch_millis",
"gte": 1668422437218,
"lte": 1668422625668
}
}
}
}
},
"script_fields": {},
"size": 500,
"sort":
{
"testtime": {
"order": "desc",
"unmapped_type": "boolean"
},
"_doc": {
"order": "desc"
}
},
"aggs":
{
"1": {
"date_histogram": {
"field": "testtime",
"fixed_interval": "1000ms",
"format": "epoch_millis",
"min_doc_count": 0,
"extended_bounds": {
"min": 1668422437218,
"max": 1668422625668
}
}
}
},
"highlight":
{
"pre_tags": [
"@HIGHLIGHT@"
],
"post_tags": [
"@/HIGHLIGHT@"
],
"fragment_size": 2147483647,
"fields": {
"*": {}
}
},
"fields":
[
{
"field": "testtime",
"format": "strict_date_optional_time_nanos"
}
]
}