# Need assistance with visualizing multiple queries in Kibana

**URL:** https://discuss.elastic.co/t/need-assistance-with-visualizing-multiple-queries-in-kibana/213972
**Category:** Elasticsearch
**Created:** [January 7, 2020, 4:17am UTC](https://discuss.elastic.co/t/need-assistance-with-visualizing-multiple-queries-in-kibana/213972 "2020-01-07T04:17:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![kibana\_user\_2020](https://avatars.discourse-cdn.com/v4/letter/k/85e7bf/32.png) [@kibana\_user\_2020](https://discuss.elastic.co/u/kibana_user_2020)
#### Post date: [January 7, 2020, 4:17am UTC](https://discuss.elastic.co/t/need-assistance-with-visualizing-multiple-queries-in-kibana/213972/1 "2020-01-07T04:17:22Z")

</div>

Hi all. I am new to Kibana and still trying to get my head around the documentation. This is what I want to achieve - I have a query for successful requests and another for all the requests, I am looking to visualize a histogram of sorts, that will display the count of successful requests in a vertical bar (in one color) and the count of all requests in an adjacent vertical bar(in another color) - this plotted per day. Below is what I tried on DEV Tools. But I am not sure how to transform this to the Visualize tab? If I were to use the Discover tab, am essentially looking at 2 filters (one for success, and another for all requests), so not sure how to combine them to display in a single graph ? Been breaking my head around this, greatly appreciate any help from experts/seniors here! Thanks in advance!  
{  
"aggs": {  
"group\_by\_requests": {  
"filters": {  
"filters": {  
"success\_requests": {  
"bool": {  
"must": [  
{"match\_phrase":{"status":"200 OK"}},  
{"match\_phrase": {  
"field1":"value1"}},  
{"match\_phrase": {  
"field2":"value2"}},  
{"match\_phrase": {  
"field3":"value3"}},  
{"wildcard": {  
"field4": {  
"value": "\*value4"  
}  
}},  
{"range" : { "app.@timestamp": {  
"gte" : "now-30d",  
"lt" : "now"  
}  
}}  
]  
}  
},  
"all\_requests": {  
"bool": {  
"must": [  
{"match\_phrase": {  
"field1":"value1"}},  
{"match\_phrase": {  
"field2":"value2"}},  
{"match\_phrase": {  
"field3":"value3"}},  
{"wildcard": {  
"field4": {  
"value": "\*value4"  
}  
}},  
{"range" : { "app.@timestamp": {  
"gte" : "now-30d",  
"lt" : "now"  
}  
}}  
]  
}  
}  
}  
},  
"aggs" : {  
"requests\_per\_day" : {  
"date\_histogram": {  
"field": "timestamp",  
"interval": "1d"  
}  
}  
}  
}  
}

}

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [February 4, 2020, 4:17am UTC](https://discuss.elastic.co/t/need-assistance-with-visualizing-multiple-queries-in-kibana/213972/2 "2020-02-04T04:17:31Z")

</div>

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