import elasticsearch
import certifi
# create connection to elasticsearch
es = elasticsearch.Elasticsearch(
['atlas-kibana.mwt2.org:9200'],
http_auth=('atlas', 'atlas'),
scheme="https",
port=9200,
ca_certs=certifi.where(),
)
# get all indices
indices = es.indices.get_alias("*")
# print indices
for index in indices:
print(index)
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)