# How to create filter by field name

**URL:** <https://discuss.elastic.co/t/how-to-create-filter-by-field-name/82297>\
**Category:** Kibana\
**Created:** [April 13, 2017, 1:32pm UTC](https://discuss.elastic.co/t/how-to-create-filter-by-field-name/82297 "2017-04-13T13:32:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yosukew](https://avatars.discourse-cdn.com/v4/letter/y/71e660/32.png) [@yosukew](https://discuss.elastic.co/u/yosukew)\
**Post date:** [April 13, 2017, 1:32pm UTC](https://discuss.elastic.co/t/how-to-create-filter-by-field-name/82297/1 "2017-04-13T13:32:58Z")

</div>

hi,

I want to create filter by field name.

I have the csv file as following, and pushing into elasticsearch with logstash.

field1,field2,field3,field4,field5  
001,10000,20000,30000,40000  
002,10001,20001,30001,40001  
003,10002,20002,30002,40002  
004,10003,20003,30003,40003  
005,10004,20004,30004,40004

- first line is header line

In making visualization and dashboard, for example, I want to create filtering by specific field.

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [April 13, 2017, 2:20pm UTC](https://discuss.elastic.co/t/how-to-create-filter-by-field-name/82297/2 "2017-04-13T14:20:42Z")

</div>

@yosukew,

could you describe a little bit more what you describe with "filter by field name"?

Have you looked at this: [https://www.elastic.co/guide/en/kibana/current/field-filter.html](https://www.elastic.co/guide/en/kibana/current/field-filter.html)? Filters added to the filter-bar, will also apply to visualizations and dashboards.

---

<div class="post-metadata">

**Author:** ![yosukew](https://avatars.discourse-cdn.com/v4/letter/y/71e660/32.png) [@yosukew](https://discuss.elastic.co/u/yosukew)\
**Post date:** [April 14, 2017, 12:52am UTC](https://discuss.elastic.co/t/how-to-create-filter-by-field-name/82297/3 "2017-04-14T00:52:49Z")

</div>

Thank you for your reply.

I had looked at the link that you showed.

With this method, I can only create a filter, for example "field 2: 10000".

I want to create the filter that displays all datas in field2.

From the original data ,

field1,field2,field3,field4,field5  
001,10000,20000,30000,40000  
002,10001,20001,30001,40001  
003,10002,20002,30002,40002  
004,10003,20003,30003,40003  
005,10004,20004,30004,40004

I want to display in visualization as following,

field2  
10000  
10001  
10002  
10003  
10004

---

<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:** [May 12, 2017, 1:04am UTC](https://discuss.elastic.co/t/how-to-create-filter-by-field-name/82297/4 "2017-05-12T01:04:30Z")

</div>

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