0

kibana has filtered out the following data records as shown below

message:"I wish to go to"

Filter Results:

message:I wish to go to India
message:I wish to go to Australia
message:I wish to go to China
message:I wish to go to Japan
message:I wish to go to India
message:I wish to go to Australia
message:I wish to go to India
message:I wish to go to Australia
message:I wish to go to India
message:I wish to go to India
message:I wish to go to Australia

I need to draw a visualization pie-chart with the count of sub-string data in * here

( I wish to go to *)

I need the visualization like this:

enter image description here

How to do this?

James Z
  • 12,209
  • 10
  • 24
  • 44
Anish
  • 43
  • 8
  • I need the visualization of counts of the values ( marked as * above). Also, I wanted the chart dynamically change as the new data arrives with different values. – Anish Feb 28 '18 at 16:33

1 Answers1

0

Create a scripted field, (say) destination, in kibana with script like "params['_source']['message'].substring(13)"

In the pie-chart visualization, use "Count" as Metric and split the slices on "destination".

sammy
  • 524
  • 4
  • 11