# Dsl query to get the field names of an index

**URL:** <https://discuss.elastic.co/t/dsl-query-to-get-the-field-names-of-an-index/94202>\
**Category:** Kibana\
**Created:** [July 22, 2017, 10:55am UTC](https://discuss.elastic.co/t/dsl-query-to-get-the-field-names-of-an-index/94202 "2017-07-22T10:55:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kanika\_kapish](https://avatars.discourse-cdn.com/v4/letter/k/da6949/32.png) [@kanika\_kapish](https://discuss.elastic.co/u/kanika_kapish)\
**Post date:** [July 22, 2017, 10:55am UTC](https://discuss.elastic.co/t/dsl-query-to-get-the-field-names-of-an-index/94202/1 "2017-07-22T10:55:57Z")

</div>

I'm unable to find a dsl query to get all the names of the fields of an index

---

<div class="post-metadata">

**Author:** ![Joe\_Fleming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_fleming/32/3561_2.png) [@Joe\_Fleming](https://discuss.elastic.co/u/Joe_Fleming)\
**Post date:** [July 24, 2017, 5:01pm UTC](https://discuss.elastic.co/t/dsl-query-to-get-the-field-names-of-an-index/94202/2 "2017-07-24T17:01:09Z")

</div>

You're trying to show all the fields in an index in Kibana, or you're just trying to query Elasticsearch and get that information (possibly outside of Kibana)?

---

<div class="post-metadata">

**Author:** ![varundbest](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/varundbest/32/48066_2.png) [@varundbest](https://discuss.elastic.co/u/varundbest)\
**Post date:** [July 25, 2017, 8:40am UTC](https://discuss.elastic.co/t/dsl-query-to-get-the-field-names-of-an-index/94202/3 "2017-07-25T08:40:57Z")

</div>

In kibana, you can get the mapping of indices or types. Example :-  
GET index/type/\_mapping  
This will show you all the properties of the type.

---

<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:** [August 22, 2017, 8:41am UTC](https://discuss.elastic.co/t/dsl-query-to-get-the-field-names-of-an-index/94202/4 "2017-08-22T08:41:12Z")

</div>

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