I would like to create daily elastic indices. I went through index template in elastic. However, those settings and mappings can be applied only to the new indices. In my case I need a daily index based on certain pattern. How to go?
Asked
Active
Viewed 812 times
1
-
1If this is for logging use case, you can use logstash which by default creates a new index everyday. – harishkb Feb 05 '18 at 14:05
-
The index field in elasticsearch output plugin is a string. It is constructed as any other string. You can use the record fields as in any other case. You look that up, you got the answer. – MrSimple Feb 06 '18 at 09:20
1 Answers
2
using logstash you can create index with timestamps(for daily)
elasticsearch {
hosts => [ "xxxxx:9200" ]
index => "Test-%{+YYYY.MM.dd}"
}

Thivya Thogesan
- 206
- 2
- 12