kagarlickij
kagarlickij

Reputation: 8107

Kibana pie chart for text data

I have text data in Elastic, field name is buildResult , type is text and value can be either Success or Failure:

enter image description here enter image description here

I want to have Pie chart to illustrate Success vs Failure

Could you please advice on chart setup or share some example for text type?

Upvotes: 2

Views: 1509

Answers (2)

Gal S
Gal S

Reputation: 1030

Split the piechart using text filters to get the result you want.

The picture below is taken from the data configuration of the piechart visualization in Kibana.

This works for string fields - I guess it would work for text fields also.

enter image description here

Upvotes: 3

tomas
tomas

Reputation: 329

From what i know the best way is to use keyword data type in these cases

elasticsearch keyword

when the field is keyword you can use simple terms aggregation to split the pie between the deferent keywords

Upvotes: 1

Related Questions