# Create a Twitter River with custom sittings

**URL:** <https://discuss.elastic.co/t/create-a-twitter-river-with-custom-sittings/7436>\
**Category:** Elasticsearch\
**Created:** [April 22, 2012, 9:05pm UTC](https://discuss.elastic.co/t/create-a-twitter-river-with-custom-sittings/7436 "2012-04-22T21:05:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam\_Estrada](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adam_estrada/32/2704_2.png) [@Adam\_Estrada](https://discuss.elastic.co/u/Adam_Estrada)\
**Post date:** [April 22, 2012, 9:05pm UTC](https://discuss.elastic.co/t/create-a-twitter-river-with-custom-sittings/7436/1 "2012-04-22T21:05:10Z")

</div>

All,

I would like to create a river with an index with more than the default 5  
shards and 1 replica. The following command creates a \_river index with 7  
shards and 2 replicas. Can someone point me in the right direction with  
this?

'''curl -XPUT '172.16.2.29:9200/\_river/tweets/\_meta' -d '  
{  
"type" : "twitter",  
"twitter" : {  
"user" : "username",  
"password" : "password",  
"filter" : {  
"locations" : "bleh"  
}  
},  
"index": {  
"index": "tweets",  
"type": "status",  
"number\_of\_shards" : 7,  
"number\_of\_replicas" : 2  
}  
}' &  
'''

---

<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:** [April 22, 2012, 9:29pm UTC](https://discuss.elastic.co/t/create-a-twitter-river-with-custom-sittings/7436/2 "2012-04-22T21:29:42Z")

</div>

I think that you need to create first your index with your settings and then create the river. The river will send docs in your customized index.

HTH

David 😉  
Twitter : @dadoonet / @elasticsearchfr

Le 22 avr. 2012 à 23:05, Adam Estrada [estrada.adam@gmail.com](mailto:estrada.adam@gmail.com) a écrit :

> All,
> 
> I would like to create a river with an index with more than the default 5 shards and 1 replica. The following command creates a \_river index with 7 shards and 2 replicas. Can someone point me in the right direction with this?
> 
> '''curl -XPUT '172.16.2.29:9200/\_river/tweets/\_meta' -d '  
> {  
> "type" : "twitter",  
> "twitter" : {  
> "user" : "username",  
> "password" : "password",  
> "filter" : {  
> "locations" : "bleh"  
> }  
> },  
> "index": {  
> "index": "tweets",  
> "type": "status",  
> "number\_of\_shards" : 7,  
> "number\_of\_replicas" : 2  
> }  
> }' &  
> '''

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [April 25, 2012, 3:43pm UTC](https://discuss.elastic.co/t/create-a-twitter-river-with-custom-sittings/7436/3 "2012-04-25T15:43:07Z")

</div>

Yea, first create the index that the twitter river will index into, and  
then create the river.

On Mon, Apr 23, 2012 at 12:29 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> I think that you need to create first your index with your settings and  
> then create the river. The river will send docs in your customized index.
> 
> HTH
> 
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr
> 
> Le 22 avr. 2012 à 23:05, Adam Estrada [estrada.adam@gmail.com](mailto:estrada.adam@gmail.com) a écrit :
> 
> All,
> 
> I would like to create a river with an index with more than the default 5  
> shards and 1 replica. The following command creates a \_river index with 7  
> shards and 2 replicas. Can someone point me in the right direction with  
> this?
> 
> '''curl -XPUT '172.16.2.29:9200/\_river/tweets/\_meta' -d '  
> {  
> "type" : "twitter",  
> "twitter" : {  
> "user" : "username",  
> "password" : "password",  
> "filter" : {  
> "locations" : "bleh"  
> }  
> },  
> "index": {  
> "index": "tweets",  
> "type": "status",  
> "number\_of\_shards" : 7,  
> "number\_of\_replicas" : 2  
> }  
> }' &  
> '''

---

<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 6, 2017, 3:31am UTC](https://discuss.elastic.co/t/create-a-twitter-river-with-custom-sittings/7436/4 "2017-07-06T03:31:07Z")

</div>

Closed on July 6, 2017, 3:31am UTC


