Histogram query over calculated field

My case is the following:
doc1:
event.type (keyword): a
doc2:
event.type: aa
doc3:
event.type: aa
doc4:
event.type: aaaa

I want to create a query that gives me in the Y axis the count of event.type and in the X axis the length of event.type.
For the given example it would be:
X axis ---------------------------- Y axis
event_type_length: 1 event_type_count: 1
event_type_length: 2 event_type_count: 2
event_type_length: 3 event_type_count: 0
event_type_length: 4 event_type_count: 1

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