Set number of shards of index created by dateindexname processor

Hello!

I'd like to know if it is possible to set the number of shards of an index created by a dateindexname processor.
Right now, my pipeline creates a new index based on a date field, but creates only one primary shard and one replica. I'd like to create three primary shards and zero replicas.
Is it possible to set the number of shards while executing the pipeline, or do I need to create an index beforehand?

I'm using the .net client (NEST).

I'm quite new to the elastic world, I hope my question is clear!

Thank you.

Matteo

You could utilize an index template to achieve what you are asking...
https://www.elastic.co/guide/en/elasticsearch/reference/7.8/index-templates.html

2 Likes

I will try index templates.
Thank you!

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