TÜm indexleri silmek
curl -XDELETE ‘http://localhost:9200/*’
#delete index:
curl -XDELETE ‘localhost:9200/index_name’
#delete all indices:
curl -XDELETE ‘localhost:9200/_all’
#delete document :
curl -XDELETE ‘localhost:9200/index_name/type_name/document_id’
sudo service elasticsearch status
curl -XGET "http://localhost:9200/_cluster/health?pretty=true"
curl "localhost:9200/_nodes/settings?pretty=true"
Elastic Ubuntu remove
sudo apt-get –purge autoremove elasticsearch
sudo rm -rf /var/lib/elasticsearch/
sudo rm -rf /etc/elasticsearch
Remove Kibana
sudo apt-get install –reinstall kibana
sudo apt-get remove kibana
–
single remove without purge
sudo apt-get remove kibana
force installing and removing
sudo apt-get -f install
sudo apt-get remove –purge kibana
force removing by dpkg
sudo dpkg -r –force kibana
uzak sunucuya erişim yapılmazsa
nano /etc/elasticsearch/elasticsearch.yml
Starting with ES 2.0, the elasticsearch process only binds to localhost, which explains why you can query ES from inside but not from the outside.
You need to change the following setting in your elasticsearch.yml
configuration file:
network.host: 0.0.0.0
sudo service elasticsearch restart