# Using customized id\_key in elasticsearch

**URL:** <https://discuss.elastic.co/t/using-customized-id-key-in-elasticsearch/181103>\
**Category:** Elasticsearch\
**Created:** [May 15, 2019, 6:42am UTC](https://discuss.elastic.co/t/using-customized-id-key-in-elasticsearch/181103 "2019-05-15T06:42:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashleshmandke](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashleshmandke/32/46458_2.png) [@ashleshmandke](https://discuss.elastic.co/u/ashleshmandke)\
**Post date:** [May 15, 2019, 6:42am UTC](https://discuss.elastic.co/t/using-customized-id-key-in-elasticsearch/181103/1 "2019-05-15T06:42:06Z")

</div>

Hi All,

I am using td-agent v3.3 fluentd and elasticsearch/kibana v6.3.  
I have a file containing 5-6 columns and to avoid duplicates want to use customized id\_key which I am getting from file right away as in **ac\_no**  
My question is when I am setting id\_key as **ac\_no** I will be avoiding duplicates if any, but how it will behave for example (due to buffer overflow). Will it lead to any data loss or any data rejection from elasticsearch.

Warm regards,  
//Ashlesh

---

<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:** [June 12, 2019, 6:46am UTC](https://discuss.elastic.co/t/using-customized-id-key-in-elasticsearch/181103/2 "2019-06-12T06:46:25Z")

</div>

Closed on June 12, 2019, 6:46am UTC

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