Skip to content

Instantly share code, notes, and snippets.

View nightmareze1's full-sized avatar

nightmareze1 nightmareze1

View GitHub Profile
@nightmareze1
nightmareze1 / result1
Created December 29, 2018 13:37
result1
[root@ip-10-91-41-215 elk]# curl -XGET 'http://localhost:9200/_snapshot/es-backups/_all?pretty'
{
"snapshots" : [
{
"snapshot" : "mysnapshot",
"uuid" : "cGP2-NLtT5e9no7ThRP9jQ",
"version_id" : 5050299,
"version" : "5.5.2",
"indices" : [
"store_zone_pivots1520",
@nightmareze1
nightmareze1 / es-snapshot.py
Created December 29, 2018 13:31
es-snapshot.py
from boto.connection import AWSAuthConnection
class ESConnection(AWSAuthConnection):
def __init__(self, region, **kwargs):
super(ESConnection, self).__init__(**kwargs)
self._set_auth_region_name(region)
self._set_auth_service_name("es")
def _required_auth_capability(self):