Date Histogram - Date Format Change

I am currently using a date histogram for my visualization. Unfortunately, the date format seems to default to "yyyy-MM-dd". I would like to Modify it to "MMM-yyyy". I've applied that change on the field but I think while using date histogram it doesn't pick up that change. How can I accomplish this?

I tried Change Kigana > Advanced Settings > General > Date format, but not worked in date histogram visualization.. And I couldn't find any settings in visualiations, sorry.

I would use a runtime field for this - we need to implement https://github.com/elastic/kibana/issues/67206 before we have the native support.

as an example runtime field you could do something like below but rather than e as your format you could select one from this list

ZonedDateTime input = doc['timestamp'].value;
String output = input.format(DateTimeFormatter.ofPattern('e')) ;

emit(output);

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.