Skip to content

Commit

Permalink
Try using timestamp instead of event.ingested
Browse files Browse the repository at this point in the history
  • Loading branch information
kpollich committed Jul 13, 2022
1 parent dfefbbf commit ce09f35
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@ export async function getDataStreamsQueryMetadata({
esClient.search({
size: 1,
index: dataStreamName,
// @ts-expect-error
sort: [{ 'event.ingested': { order: 'desc', unmapped_type: 'long' } }],
sort: '@timestamp:desc',
_source: false,
fields: ['event.ingested'],
fields: ['@timestamp'],
}),
esClient.termsEnum({
index: dataStreamName,
Expand Down

0 comments on commit ce09f35

Please sign in to comment.