How to config the shard numbers when index created by logstash?

Hi, I am using ELK for collecting log.

Logstash create a index everyday.

Default shard setting is 5, but I wish change that.

How do I have to do?

Please let me know.

  1. Read this first: https://www.elastic.co/blog/logstash_lesson_elasticsearch_mapping

  2. Then this: https://www.elastic.co/guide/en/elasticsearch/reference/6.0/indices-create-index.html#mappings

Add the settings to the index mapping from what was specified in link 1).

Thank you for your answer.

I solved the problem. I refered this link.

https://www.elastic.co/guide/en/elasticsearch/reference/6.0/indices-templates.html

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