Currently in Kibana the ranges for which the timestamp label is customised to fit the data are very few.
We display
cc @jakommo
Thanks @marius-dr . I think having YYYY-MM as default for 1m to 1y would be helpful, but giving users the option to customize the format would be even better. I.e. someone might just want to see the Month as number and someone prefers the name of the month etc.
I think could imagine this to be an option in the Date Histogram aggregation with 3 options:
I was looking in the advanced settings and I found this:
dateFormat:scaled
Values that define the format used in situations where timebased data is rendered in order, and formatted timestamps should adapt to the interval between measurements. Keys are ISO8601 intervals.
[
["", "HH:mm:ss.SSS"],
["PT1S", "HH:mm:ss"],
["PT1M", "HH:mm"],
["PT1H", "YYYY-MM-DD HH:mm"],
["P1DT", "YYYY-MM-DD"],
["P1YT", "YYYY"]
]
This looks like the place to set exactly what we were talking about in this issue. @timroes
@marius-dr but that's a global setting, correct?
I would imagine that one want's to set this only on a specific visualization, while keeping the other viz on the default date layout
You are right @jakommo, this just means that we have a nice starting point for this, with it already being exposed.
I want to set the date format to MMM-DD in a data table having aggregation type date histogram. Can someone help me how to do this, if this can be done.
Closing as a duplicate of https://github.com/elastic/kibana/issues/13784
Most helpful comment
@marius-dr but that's a global setting, correct?
I would imagine that one want's to set this only on a specific visualization, while keeping the other viz on the default date layout