![]()
Documentations and Articles
Articles
- MinIO - Fast and Efficient Search with OpenSearch and MinIO
- Dev.to - OpenSearch Snapshots with Min.io
Setup
Repositories
- awesome-elasticsearch: A curated list of the most important and useful resources about elasticsearch
Tips & configuration
- Opster - Elasticsearch Heap Size Usage and JVM Garbage Collection
- Elastic - Orchestrating Elastic Stack applications
- Elastic - Backup, high availability, and resilience tools
- OpenSearch - Take and restore snapshots
Interaction with Elasticsearch via CURL
Abstract
This note content the basic, popular command of
elasticsearchand case it can use
Note
All commands will work if you need bypass HTTPS. But if it not accepted, you need to provide the
crtandkeywith compulsory
Get the list snapshot
# Get list snapshot
curl --insecure -X GET "https://<es-username>:<es-password>@<es-domain>:<es-port>/_cat/snapshots/<repository>"
# List first 50 snapshot, add `comma` to easily create the removing strings
curl --insecure -X GET "https://<es-username>:<es-password>@<es-domain>:<es-port>/_cat/snapshots/azure" | awk '{print $1}' | head -n 50 | xargs -I{} echo -n "{}," | rev | cut -c2- | rev | xargsDelete specify snapshot
curl -X DELETE --insecure "https://<es-username>:<es-password>@<es-domain>:<es-port>/_snapshot/<repository>/<name-snapshot>