# Customize Autogenerated ID's length

**URL:** <https://discuss.elastic.co/t/customize-autogenerated-ids-length/56571>\
**Category:** Elasticsearch\
**Created:** [July 27, 2016, 11:41pm UTC](https://discuss.elastic.co/t/customize-autogenerated-ids-length/56571 "2016-07-27T23:41:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ahmad\_Hayam](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@Ahmad\_Hayam](https://discuss.elastic.co/u/Ahmad_Hayam)\
**Post date:** [July 27, 2016, 11:41pm UTC](https://discuss.elastic.co/t/customize-autogenerated-ids-length/56571/1 "2016-07-27T23:41:12Z")

</div>

Can we do some settings to customize Autogenerated ID's length? For now, it generates unique ID with 20 characters. I want to get the advantages from this unique id but in shorter form.

---

<div class="post-metadata">

**Author:** ![javanna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/javanna/32/4698_2.png) [@javanna](https://discuss.elastic.co/u/javanna)\
**Post date:** [July 28, 2016, 11:23am UTC](https://discuss.elastic.co/t/customize-autogenerated-ids-length/56571/2 "2016-07-28T11:23:15Z")

</div>

There is no way to customize how automatically generated ids are generated. You should generate your own ids on the client side.

---

<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:** [July 5, 2017, 10:32pm UTC](https://discuss.elastic.co/t/customize-autogenerated-ids-length/56571/3 "2017-07-05T22:32:08Z")

</div>


