I am trying to create a watcher to create a snapshot and another watcher to restore the same snapshot then delete it.
to take the snapshot I have
POST _watcher/watch/test
{
"trigger": {
"schedule": {
"interval": "30m"
}
},
"actions": {
"take_snapshot_kibana": {
"webhook": {
"method": "PUT",
"port": 9200,
"scheme": "https",
"host": "localhost"
"path": "/_snapshot/s3/snapshot_kibana",
"body": ""
}
}
}
}
and in the body I want to set it so that it only takes the .kibana like
{
"indices": ".kibana",
"ignore_unavailable": true,
}
so how would you format the body portion ?
ultimately I am wanting to replicate all of .kibana and .logstash from one cluster to another.