Backup the specified index

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
winsonlee
Posts: 42
Joined: Tue Mar 05, 2019 10:38 pm

Backup the specified index

Post by winsonlee »

Hi,

Excuse me, how to back up the specified index "logstash-2020.9.13" and "logstash-2020.9.14" only ?
Thanks.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Backup the specified index

Post by cdienger »

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:

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
You can then disable the repo in NLS to avoid having it automatically start making ans saving snapshots with other indexes.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
winsonlee
Posts: 42
Joined: Tue Mar 05, 2019 10:38 pm

Re: Backup the specified index

Post by winsonlee »

It's work, thanks for your help~
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Backup the specified index

Post by scottwilkerson »

winsonlee wrote:It's work, thanks for your help~
Great!

Locking thread
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked