# OneNode: Number of Shards

**URL:** <https://discuss.elastic.co/t/onenode-number-of-shards/119450>\
**Category:** Elasticsearch\
**Created:** [February 12, 2018, 10:17am UTC](https://discuss.elastic.co/t/onenode-number-of-shards/119450 "2018-02-12T10:17:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cdra](https://avatars.discourse-cdn.com/v4/letter/c/ea666f/32.png) [@cdra](https://discuss.elastic.co/u/cdra)\
**Post date:** [February 12, 2018, 10:17am UTC](https://discuss.elastic.co/t/onenode-number-of-shards/119450/1 "2018-02-12T10:17:55Z")

</div>

We've deployed a one node cluster. We'll use logstash only to capture syslog events from 100 devices and windows events from 150 computers aprox.  
I think 1 shard is enough....not ?? how could i change it ?? My default installation has 5 shards

---

<div class="post-metadata">

**Author:** ![cdra](https://avatars.discourse-cdn.com/v4/letter/c/ea666f/32.png) [@cdra](https://discuss.elastic.co/u/cdra)\
**Post date:** [February 12, 2018, 10:51am UTC](https://discuss.elastic.co/t/onenode-number-of-shards/119450/2 "2018-02-12T10:51:53Z")

</div>

Is this good ???

PUT \_template/logstash  
{  
"index\_patterns": [  
"logstash-\*"],  
"settings": { "number\_of\_shards": 1}  
}

---

<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:** [March 12, 2018, 10:52am UTC](https://discuss.elastic.co/t/onenode-number-of-shards/119450/3 "2018-03-12T10:52:10Z")

</div>

Closed on March 12, 2018, 10:52am UTC

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