Code: Select all
curl -XPOST localhost:9200/nagioslogserver/commands/do_maintenance/_update -d '{ "doc": { "run_time": "10" } }' Code: Select all
curl -XPOST localhost:9200/nagioslogserver/commands/do_maintenance/_update -d '{ "doc": { "run_time": "10" } }' No backups are being created. Based on the apache conf for nagioslogserverscottwilkerson wrote:Sorry, the command we meant to have you run wasHowever, it appears to be executing already, are any backups now showing up?Code: Select all
curl -XPOST localhost:9200/nagioslogserver/commands/do_maintenance/_update -d '{ "doc": { "run_time": "10" } }'
Code: Select all
tail -f /usr/local/nagioslogserver/var/jobs.logCode: Select all
curl -XPOST localhost:9200/nagioslogserver/commands/do_maintenance/_update -d '{ "doc": { "run_time": "10" } }' scottwilkerson wrote:This is not as you would expect, when you connect from the CLI to localhost:9200 iit is connecting directly to elasticsearch, NOT the web root.
Can you run the following in one terminalAnd then perform the following command in another terminalCode: Select all
tail -f /usr/local/nagioslogserver/var/jobs.logBy doing this we should see the maintenance jobs go by in the console looking for errors.Code: Select all
curl -XPOST localhost:9200/nagioslogserver/commands/do_maintenance/_update -d '{ "doc": { "run_time": "10" } }'
Code: Select all
tail -f /usr/local/nagioslogserver/var/jobs.logCode: Select all
curl -XPOST localhost:9200/nagioslogserver/commands/2VqRrvugSKe0xM1fzzKcJA/_update -d '{ "doc": { "run_time": "10" } }' Seems to be working!!scottwilkerson wrote:Lets do this one more time, I just looked over your previous post and it appears your ID's aren't what would be standard, lets run:
And then perform the following command in another terminalCode: Select all
tail -f /usr/local/nagioslogserver/var/jobs.logWe had to change the ID in the 2nd commandCode: Select all
curl -XPOST localhost:9200/nagioslogserver/commands/2VqRrvugSKe0xM1fzzKcJA/_update -d '{ "doc": { "run_time": "10" } }'
stecino wrote:Seems to be working!!scottwilkerson wrote:Lets do this one more time, I just looked over your previous post and it appears your ID's aren't what would be standard, lets run:
And then perform the following command in another terminalCode: Select all
tail -f /usr/local/nagioslogserver/var/jobs.logWe had to change the ID in the 2nd commandCode: Select all
curl -XPOST localhost:9200/nagioslogserver/commands/2VqRrvugSKe0xM1fzzKcJA/_update -d '{ "doc": { "run_time": "10" } }'
drwxr-xr-x 3 nobody users 4096 Feb 3 11:39 indices
-rw-r--r-- 1 nobody users 61 Feb 3 11:39 metadata-logstash-2015.01.06
-rw-r--r-- 1 nobody users 187 Feb 3 11:39 snapshot-logstash-2015.01.06
[root@nlsserver nls_backup]#
So this backup generated metadata, snapshot info, and indices. So if I run backup again tomorrow, will it only backup the delta, or will it backup last 30 day retention data again?
So do I always run this command? What is that ID, does it always stay the same?
Thanks alot for the help, this can be closed.scottwilkerson wrote:It will only backup indexes that have not been previously backed-up
Additionally, you should not need to run the script every day, it will automatically run 24 hours from the last successful run.
Actually before you close itstecino wrote:Thanks alot for the help, this can be closed.scottwilkerson wrote:It will only backup indexes that have not been previously backed-up
Additionally, you should not need to run the script every day, it will automatically run 24 hours from the last successful run.