# How to add default attribute with value in ES

**URL:** <https://discuss.elastic.co/t/how-to-add-default-attribute-with-value-in-es/208472>\
**Category:** Elasticsearch\
**Created:** [November 19, 2019, 9:38am UTC](https://discuss.elastic.co/t/how-to-add-default-attribute-with-value-in-es/208472 "2019-11-19T09:38:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DeepakBhatt](https://avatars.discourse-cdn.com/v4/letter/d/5f9b8f/32.png) [@DeepakBhatt](https://discuss.elastic.co/u/DeepakBhatt)\
**Post date:** [November 19, 2019, 9:38am UTC](https://discuss.elastic.co/t/how-to-add-default-attribute-with-value-in-es/208472/1 "2019-11-19T09:38:58Z")

</div>

Hi Team,

```
 I want to add default attribute with default value while adding any document to the index. For example: Suppose we have index abc and we are adding 10 attribute then there is one default attribute we want to add by ES.

```

Default attribute: hold\_column  
Default value: False

```
 Is this possible. Thank you for your time.

```

Regards!  
Deepak Bhatt

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 21, 2019, 4:19am UTC](https://discuss.elastic.co/t/how-to-add-default-attribute-with-value-in-es/208472/2 "2019-11-21T04:19:05Z")

</div>

You can use an ingest pipeline to add a field to your document,  
See [https://www.elastic.co/guide/en/elasticsearch/reference/7.4/set-processor.html](https://www.elastic.co/guide/en/elasticsearch/reference/7.4/set-processor.html)

---

<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:** [December 19, 2019, 4:19am UTC](https://discuss.elastic.co/t/how-to-add-default-attribute-with-value-in-es/208472/3 "2019-12-19T04:19:08Z")

</div>

Closed on December 19, 2019, 4:19am UTC

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