Here we want to list the common issues faced with ELK and their solutions
List all indices
Code Block |
---|
curl -v http://127.0.0.1:9200/_cat/indices?v |
Delete an index
Code Block |
---|
curl -XDELETE http://127.0.0.1:9200/docker-generic-upload-2018.04.12 |
The cluster status or an index is red
Code Block |
---|
heetis@HEE-TIS-VM-PROD-ES:~$ curl http://127.0.0.1:9200/_cat/indices|grep red
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 16875 100 16875 0 0 265k 0 --:--:-- --:--:-- --:--:-- 270k
heetis@HEE-TIS-VM-PROD-ES:~$ |
...
Code Block |
---|
heetis@HEE-TIS-VM-UAT-ES:~$ curl -XPUT 'localhost:9200/.kibana/_settings' -d '{"number_of_replicas": 0}'
heetis@HEE-TIS-VM-UAT-ES:~$ |
To list all backup repositories
To list all snapshots in the repository (elasticsearch)
To restore a particular snapshot (Eg: 2017.01.18)