-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Description
Kibana version:
8.15.0
Elasticsearch version:
8.15.0
Server OS version:
Amazon Linux 2.0.20240816.0
Browser version:
Chrome 128.0.6613.84 (Official Build) (arm64)
Browser OS version:
MacOS 14.5
Original install method (e.g. download page, yum, from source, etc.):
ECK 2.14
Describe the bug:
While plotting a histogram field using Lens, the Count function reverts to count records and the field becomes greyed-out. Also, the count()
formula spits a Field <field_name> is of the wrong type
warning when trying to use it on a histogram field.
Steps to reproduce:
- Create a new Lens visualization
- Drag and drop a histogram field onto the graph
- Change the function to Count
Or
- Create a new Lens visualization
- Add a vertical axis item
- Switch to formula
- Use the
count()
formula on a histogram field
Expected behavior:
Since Kibana supports the values_count
aggregation under the count()
formula and Elasticsearch supports histogram fields in the values_count
aggregation for a few years now - Kibana is also expected to support counting histogram fields using Lens.
Screenshots (if relevant):
Errors in browser console (if relevant):
Provide logs and/or server output (if relevant):
Any additional context:
It seems the histogram is just missing from this list but I'm not familiar with the code and there might be more to it.