Filter on percentile range of a bar graph instead of time span?


(red der) #1

I have a percentile bar chart that looks like this:

Now I can click on a bar of the chart in my dashboard and it filters on that span of time.

What I would prefer is a way to filter on the percentile range by clicking on it in the bar chart visualization. Is this possible? So what I want is to click on the "95th" percentile range in the bar charge and then have kibana filter the data matching the events in that percentile.

here is my query for the visualization:
{
"query": {
"bool": {
"must": [
{
"query_string": {
"query": "",
"analyze_wildcard": true
}
},
{
"match": {
"serverName.keyword": {
"query": "MYSERVER",
"type": "phrase"
}
}
},
{
"query_string": {
"analyze_wildcard": true,
"query": "
"
}
},
{
"range": {
"@timestamp": {
"gte": 1495574599798,
"lte": 1495660999798,
"format": "epoch_millis"
}
}
}
],
"must_not": []
}
},
"size": 0,
"_source": {
"excludes": []
},
"aggs": {
"2": {
"date_histogram": {
"field": "@timestamp",
"interval": "10m",
"time_zone": "America/New_York",
"min_doc_count": 1
},
"aggs": {
"1": {
"percentiles": {
"field": "timetaken",
"percents": [
25,
50,
75,
95,
99
],
"keyed": false
}
}
}
}
}
}


(system) #2

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