# How to filter out unnecessary field from the kibana output

**URL:** <https://discuss.elastic.co/t/how-to-filter-out-unnecessary-field-from-the-kibana-output/194093>\
**Category:** Elasticsearch\
**Created:** [August 6, 2019, 7:32pm UTC](https://discuss.elastic.co/t/how-to-filter-out-unnecessary-field-from-the-kibana-output/194093 "2019-08-06T19:32:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zatom](https://avatars.discourse-cdn.com/v4/letter/z/f0a364/32.png) [@zatom](https://discuss.elastic.co/u/zatom)\
**Post date:** [August 6, 2019, 7:32pm UTC](https://discuss.elastic.co/t/how-to-filter-out-unnecessary-field-from-the-kibana-output/194093/1 "2019-08-06T19:32:42Z")

</div>

Hi, I am wondering if we can write queries that automatically removes the fields in the output that we don't want. I am asking this because my nested aggregation keeps crashing my cluster. If we could remove millions of fields that are not useful to us , we can save space and prevent excessive memory use. For example, in the figure below, how to get just the fields that has been highlighted. Is there any way?  
 ![QUERY_link](https://us1.discourse-cdn.com/elastic/original/3X/0/6/067ef254a1dfeacac8292694d7c52106d7eadef1.png)

 ![query_link_output](https://us1.discourse-cdn.com/elastic/original/3X/4/0/40c9e444bc53b720ac7c2351476d65796c3b1cae.png)

---

<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:** [September 3, 2019, 7:32pm UTC](https://discuss.elastic.co/t/how-to-filter-out-unnecessary-field-from-the-kibana-output/194093/2 "2019-09-03T19:32:44Z")

</div>

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