How Do I Clear Expired Data to Release Storage Space?
- Run the following command to delete a single index data record.
curl -XDELETE http://IP:9200/Index_name
IP: the IP address of any node in the cluster
- Run the following command to delete all Logstash data of a day. For example, delete all data from June 19, 2017:
For a cluster in non-security mode: curl -XDELETE 'http://IP:9200/logstash-2017.06.19*'
For a cluster in security mode: curl -XDELETE -u username:password 'https://IP:9200/logstash-2017.06.19' -k
- username: username of the administrator. The default value is admin.
- password: the password set during cluster creation
- IP: the IP address of any node in the cluster
Resource Usage and Change FAQs
- How Do I Clear Expired Data to Release Storage Space?
- How Do I Configure a Two-Replica CSS Cluster?
- How Do I Delete Index Resources?
- Can I Change the Number of Shards to Four with Two Replicas When There Is One Shard Set in the JSON File?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
more