# Can't search or filter on custom fields

**URL:** https://discuss.elastic.co/t/cant-search-or-filter-on-custom-fields/173278
**Category:** Elasticsearch
**Created:** [March 21, 2019, 9:57am UTC](https://discuss.elastic.co/t/cant-search-or-filter-on-custom-fields/173278 "2019-03-21T09:57:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![tflorac](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tflorac/32/42393_2.png) [@tflorac](https://discuss.elastic.co/u/tflorac)
#### Post date: [March 21, 2019, 9:57am UTC](https://discuss.elastic.co/t/cant-search-or-filter-on-custom-fields/173278/1 "2019-03-21T09:57:11Z")

</div>

Hi,  
I followed another topic to update my APM index template this way to include custom HTTP headers used in my applications:

```
setup.template.overwrite: true
setup.template.append_fields:
  - name: context.request.headers.x-facade-name
    type: keyword
  - name: context.request.headers.x-method-name
    type: keyword
  - name: context.request.headers.x-uid
    type: keyword

```

I updated my APM index pattern, and these fields are now marked as searchable and aggregatable.  
So I can now use them in filters or search areas, but all search results or Kibana dashboards are now empty whenh I use them!  
Did I missed something?

Best regards,  
Thierry

---

<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: [April 11, 2019, 5:57am UTC](https://discuss.elastic.co/t/cant-search-or-filter-on-custom-fields/173278/2 "2019-04-11T05:57:12Z")

</div>

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