# Get available fields in index

**URL:** <https://discuss.elastic.co/t/get-available-fields-in-index/353091>\
**Category:** Elasticsearch\
**Created:** [February 12, 2024, 5:08pm UTC](https://discuss.elastic.co/t/get-available-fields-in-index/353091 "2024-02-12T17:08:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaismax](https://avatars.discourse-cdn.com/v4/letter/k/d07c76/32.png) [@kaismax](https://discuss.elastic.co/u/kaismax)\
**Post date:** [February 12, 2024, 5:08pm UTC](https://discuss.elastic.co/t/get-available-fields-in-index/353091/1 "2024-02-12T17:08:29Z")

</div>

Hello, community,

I want to get the available fields from an index, like taking the last 500 documents and returning a list of non-null fields.

thanks.  
 ![Screenshot 2024-02-12 181020](https://us1.discourse-cdn.com/elastic/original/3X/9/a/9a26c3d78c24029adfc75fb995b8adb091e83cf8.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:** [March 11, 2024, 5:09pm UTC](https://discuss.elastic.co/t/get-available-fields-in-index/353091/2 "2024-03-11T17:09:00Z")

</div>

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