Skip to content

[ES|QL] Sort by timestamp by default #108305

Closed
@stratoula

Description

@stratoula

Description

Although the user can set in the es|ql query the | sort timestamp command we would like in specific applications in Kibana to sort by timestamp by default.

Kibana knows which timefiled is the one that user wants to sort by in Discover:

  • @timestamp if the field exists in the dataset
  • the time field that the user will have set with the named parameters WHERE @timestamp >= ${earliest} AND @timestamp < ${latest} see ES|QL: Named parameters #107029

so we could send it to the _query api as a query param such as ?sortfield=<timeField> or any other solution you feel is the best to achieve this. I remember also an idea of a ?kibana mode which could also make sense here.

This issue is mostly for initializing the discussions.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions