# \`accept\_data\_loss\` where does it go?

**URL:** https://discuss.elastic.co/t/accept-data-loss-where-does-it-go/110192
**Category:** Elasticsearch
**Created:** [December 4, 2017, 5:43pm UTC](https://discuss.elastic.co/t/accept-data-loss-where-does-it-go/110192 "2017-12-04T17:43:07Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![klahnakoski](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/klahnakoski/32/3679_2.png) [@klahnakoski](https://discuss.elastic.co/u/klahnakoski)
#### Post date: [December 4, 2017, 5:43pm UTC](https://discuss.elastic.co/t/accept-data-loss-where-does-it-go/110192/1 "2017-12-04T17:43:07Z")

</div>

As per ES6 docs at [Cluster reroute API | Elasticsearch Guide [8.11] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-reroute.html)

> this command requires the special field `accept_data_loss` to be explicitly set to true for it to work

May I get an example of this? Is this a URL parameter? Thank you.

---

<div class="post-metadata">

### Author: ![klahnakoski](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/klahnakoski/32/3679_2.png) [@klahnakoski](https://discuss.elastic.co/u/klahnakoski)
#### Post date: [December 8, 2017, 2:11pm UTC](https://discuss.elastic.co/t/accept-data-loss-where-does-it-go/110192/2 "2017-12-08T14:11:04Z")

</div>

It appears this works:

```
{"commands":[{"command":{"allocate_stale_primary":{
    "accept_data_loss":true,
    "index": index_name,
    "shard": shard_number,
    "node": node_name
}}}]}
```

---

<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: [January 5, 2018, 2:11pm UTC](https://discuss.elastic.co/t/accept-data-loss-where-does-it-go/110192/3 "2018-01-05T14:11:14Z")

</div>

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