Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.

Commit 99d1c06

Browse files
author
Chris Wiechmann
committed
Make sure, ES result is sorted based on the timestamp
1 parent 0edcd73 commit 99d1c06

File tree

3 files changed

+178
-181
lines changed

3 files changed

+178
-181
lines changed

elk-traffic-monitor-api/flows/trafficMonitorApi-search.json

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -74,25 +74,18 @@
7474
"metaDescription": "Defines the search definition using the Query DSL. Learn more: https://www.elastic.co/guide/en/elasticsearch/reference/7.x/query-dsl.html"
7575
},
7676
{
77-
"name": "size",
77+
"name": "index",
7878
"type": "jsonpath",
79-
"value": "$.params.count",
80-
"metaName": "size",
81-
"metaDescription": "Defines the number of hits to return. Defaults to 10."
79+
"value": "$.index",
80+
"metaName": "index",
81+
"metaDescription": "Comma-separated list or wildcard expression of index names used to limit the request."
8282
},
8383
{
8484
"name": "sort",
8585
"type": "string",
86-
"value": "\"\"",
86+
"value": "\"timestampOriginal:desc\"",
8787
"metaName": "sort",
8888
"metaDescription": "A comma-separated list of <field>:<direction> pairs."
89-
},
90-
{
91-
"name": "index",
92-
"type": "jsonpath",
93-
"value": "$.index",
94-
"metaName": "index",
95-
"metaDescription": "Comma-separated list or wildcard expression of index names used to limit the request."
9689
}
9790
],
9891
"outputs": {

0 commit comments

Comments
 (0)