I would like to create a daily index in elastic 7
Somthing like the one in the example bellow:
[elasticsearch@elk7-lab ~]$ curl -X GET 'http://172.xx.xxx.xx:9200/_cat/indices?v'
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
....
green open .monitoring-es-7-2019.09.18 g6zJRXCGR3qK9bRiYjfTNg 1 0 93679 105938 55mb 55mb
.....
I run the following command:
[elasticsearch@elk7-lab ~]$ curl -X PUT 'http://172.xx.xxx.xx:9200/yoav1_yyyy.mm.dd'
{"acknowledged":true,"shards_acknowledged":true,"index":"yoav1_yyyy.mm.dd"}
And it show that the index create as a string and not with the date format :
[elasticsearch@elk7-lab ~]$ curl -X GET 'http://172.xx.xxx.xx:9200/_cat/indices?v'
yellow open yoav1_yyyy.mm.dd j85qyv91ToGUCbAl1mbCiA 1 1 0 0 230b 230b
Please advise how create a daily index.
P.S : I am not using logstash . I am uploading the data into Elasticsearch using spark
Thanks
Yoav