# Curl for current node write consistency setting

**URL:** <https://discuss.elastic.co/t/curl-for-current-node-write-consistency-setting/36426>\
**Category:** Elasticsearch\
**Created:** [December 4, 2015, 10:46pm UTC](https://discuss.elastic.co/t/curl-for-current-node-write-consistency-setting/36426 "2015-12-04T22:46:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmacdonnell](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@rmacdonnell](https://discuss.elastic.co/u/rmacdonnell)\
**Post date:** [December 4, 2015, 10:46pm UTC](https://discuss.elastic.co/t/curl-for-current-node-write-consistency-setting/36426/1 "2015-12-04T22:46:35Z")

</div>

return current write.consistency setting on a data node

Question 1  
i have a 1 shard and 1 replica setting per index which from my reasearch means my write consistency using no setting in the .yml file is a write.consistency of 1?

Question 2  
I am being asked to verify the write consistency level we have on each data node of our cluster

running a curl of [http://localhost:9200/\_nodes/\_local](http://localhost:9200/_nodes/_local)

and dumping the contents isnt showing me anything regarding this setting in a active node.

can this setting be pulled via a curl request?

thanks in advance.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 4, 2015, 10:56pm UTC](https://discuss.elastic.co/t/curl-for-current-node-write-consistency-setting/36426/2 "2015-12-04T22:56:14Z")

</div>

It's a per index setting, not a node one - [https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index\_.html#index-consistency](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html#index-consistency)

---

<div class="post-metadata">

**Author:** ![rmacdonnell](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@rmacdonnell](https://discuss.elastic.co/u/rmacdonnell)\
**Post date:** [December 4, 2015, 11:19pm UTC](https://discuss.elastic.co/t/curl-for-current-node-write-consistency-setting/36426/3 "2015-12-04T23:19:55Z")

</div>

hmm ok , so default behaviour is to take the quorum , and from what you stated this is an index setting unless specified in the data node elasticsearch.yml file ( linux)

is this setting present on the index settings?

doing the following and still not seeing anything

powershell commands:

$test = invoke-webrequest '[http://ipofnode:9200/\_all/\_settings](http://ipofnode:9200/_all/_settings)'  
$test2 = $test.Content  
$test3 = $test2 | convertFrom-json  
write $test3

$test3 | get-member -type NoteProperty | foreach-object {  
$name=$_.Name ;  
$value=$test3."$($_.Name)"  
$value2=$value.settings.Index  
write-host "$name = $value2"  
}

---

<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, 11:33pm UTC](https://discuss.elastic.co/t/curl-for-current-node-write-consistency-setting/36426/4 "2017-07-05T23:33:28Z")

</div>


