# Is the Filters aggregation supposed to work in Kibana 4?

**URL:** <https://discuss.elastic.co/t/is-the-filters-aggregation-supposed-to-work-in-kibana-4/21008>\
**Category:** Elasticsearch\
**Created:** [December 1, 2014, 3:09pm UTC](https://discuss.elastic.co/t/is-the-filters-aggregation-supposed-to-work-in-kibana-4/21008 "2014-12-01T15:09:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefan\_Meisner\_Larse](https://avatars.discourse-cdn.com/v4/letter/s/7ba0ec/32.png) [@Stefan\_Meisner\_Larse](https://discuss.elastic.co/u/Stefan_Meisner_Larse)\
**Post date:** [December 1, 2014, 3:09pm UTC](https://discuss.elastic.co/t/is-the-filters-aggregation-supposed-to-work-in-kibana-4/21008/1 "2014-12-01T15:09:44Z")

</div>

When selecting the Filters sub aggregation in Kibana 4, I only has a Query  
field for the specification. I really dont know what to do with that.  
What I want is shown in the query below, which I execute directly against  
elasticsearch 1.4.0.

Is the Filters sub aggregation working? If yes, how do I use it?

Is there any way to import a "hand made" query as the one below into Kibana?

Thanks for any help!

/Stefan

My elasticsearch query:

GET \_search  
{  
"query": {  
"filtered": {  
"query": {  
"match\_all": {}  
},  
"filter": {  
"bool": {  
"must": [  
{  
"term": {  
"type": "jmx"  
}  
},  
{  
"term": {  
"variable": "MeanProcessingTime"  
}  
}  
]  
}  
}  
}  
},  
"aggs": {  
"histogram\_agg": {  
"date\_histogram": {  
"field": "@timestamp",  
"interval": "hour"  
},  
"aggs": {  
"component\_agg": {  
"filters": {  
"filters": {  
"engineReceiver": {  
"bool": {  
"must": [  
{  
"term": {  
"mbeanalias": "receiverChannelCamelRoute"  
}  
},  
{  
"term": {  
"group": "eti.engine"  
}  
}  
]  
}  
},  
"engineSender": {  
"bool": {  
"must": [  
{  
"term": {  
"mbeanalias": "senderChannelCamelRoute"  
}  
},  
{  
"term": {  
"group": "eti.engine"  
}  
}  
]  
}  
},  
"incomingAmqp": {  
"bool": {  
"must": [  
{  
"term": {  
"mbeanalias": "camelRoute"  
}  
},  
{  
"term": {  
"group": "eti.gateway.incoming.amqp"  
}  
}  
]  
}  
},  
"outgoingAmqp": {  
"bool": {  
"must": [  
{  
"term": {  
"mbeanalias": "camelRoute"  
}  
},  
{  
"term": {  
"group": "eti.gateway.outgoing.amqp"  
}  
}  
]  
}  
}  
}  
},  
"aggs": {  
"my\_average": {  
"avg": {  
"field": "metric\_value\_number"  
}  
}  
}  
}  
}  
}  
}  
}

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/d8478257-1819-451f-97ed-617a4956c805%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d8478257-1819-451f-97ed-617a4956c805%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:46am UTC](https://discuss.elastic.co/t/is-the-filters-aggregation-supposed-to-work-in-kibana-4/21008/2 "2017-07-06T00:46:48Z")

</div>


