# How to use Elasticsearch "search request fields" in Kibana to limit/restrict fields available in panels

**URL:** <https://discuss.elastic.co/t/how-to-use-elasticsearch-search-request-fields-in-kibana-to-limit-restrict-fields-available-in-panels/18187>\
**Category:** Elasticsearch\
**Created:** [June 18, 2014, 3:04pm UTC](https://discuss.elastic.co/t/how-to-use-elasticsearch-search-request-fields-in-kibana-to-limit-restrict-fields-available-in-panels/18187 "2014-06-18T15:04:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wingfold](https://avatars.discourse-cdn.com/v4/letter/w/7ab992/32.png) [@wingfold](https://discuss.elastic.co/u/wingfold)\
**Post date:** [June 18, 2014, 3:04pm UTC](https://discuss.elastic.co/t/how-to-use-elasticsearch-search-request-fields-in-kibana-to-limit-restrict-fields-available-in-panels/18187/1 "2014-06-18T15:04:49Z")

</div>

This is primarily a Kibana question. I'm wondering if (and how) I can use  
the search request  
fields feature of elasticsearch (i.e.,  
[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-fields.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-fields.html)  
)  
in a kibana templates dashboard  
[http://www.elasticsearch.org/guide/en/kibana/current/templated-and-scripted-dashboards.html](http://www.elasticsearch.org/guide/en/kibana/current/templated-and-scripted-dashboards.html)  
.

I want to restrict (limit) the fields resulting from queries (or filters)  
and passed on  
to the Kibana analytic/panels.

In elasticsearch I can easily do this - for example:

```
curl -XGET 'http://localhost:9200/myindex/_search?pretty' -d '{
  "fields": ["ltime", "bytes", "ploss"],
  "query": {
        "term" : { "src.domain.name" : "ukraine" }
   }
}'

```

does exactly what I want -- but I can't seem to make it work in Kibana by  
modifying  
template (json) files in Kibana (i.e., json files residing in Kibana's  
app/dashboards directory).  
There is no error condition from addition of the fields attribute; it just  
seems to be ignored.

I am wanting to do this both to limit visibility to some fields and also for  
performance (I typically only need a small subset of the 100 or so fields in  
the ES documents for any given Kibana dashboard).

Thanks for any pointers.

--  
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/36dfeffb-b40e-4ad8-a770-c2dbf25f238e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/36dfeffb-b40e-4ad8-a770-c2dbf25f238e%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, 1:21am UTC](https://discuss.elastic.co/t/how-to-use-elasticsearch-search-request-fields-in-kibana-to-limit-restrict-fields-available-in-panels/18187/2 "2017-07-06T01:21:30Z")

</div>


