Hi,
Excuse me, how to back up the specified index "logstash-2020.9.13" and "logstash-2020.9.14" only ?
Thanks.
Backup the specified index
Re: Backup the specified index
Set up a repo per https://assets.nagios.com/downloads/nag ... enance.pdf and https://assets.nagios.com/downloads/nag ... Server.pdf. Once that is done you can take snapshots of them as long as they are open:
You can then disable the repo in NLS to avoid having it automatically start making ans saving snapshots with other indexes.
Code: Select all
curl 'localhost:9200/_cat/indices?pretty'
curl -XPOST "localhost:9200/logstash-2020.9.13/_open"
curl -XPOST "localhost:9200/logstash-2020.9.14/_open"
/usr/local/nagioslogserver/scripts/curator.sh snapshot --repository 'reponame' --ignore_unavailable indices --index logstash-2020.9.13 --index logstash-2020.9.14
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Backup the specified index
It's work, thanks for your help~
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Backup the specified index
Great!winsonlee wrote:It's work, thanks for your help~
Locking thread