Skip to content

Instantly share code, notes, and snippets.

@nielsonsantana
Created September 2, 2015 04:28
Show Gist options
  • Save nielsonsantana/2c079cd623fcf9eda528 to your computer and use it in GitHub Desktop.
Save nielsonsantana/2c079cd623fcf9eda528 to your computer and use it in GitHub Desktop.
Verificando conexão com o ElasticSearch
from elasticsearch import Elasticsearch, RequestsHttpConnection
es = Elasticsearch(['domain:port'], connection_class=RequestsHttpConnection,
http_auth=('username', 'password'),
use_ssl=False, verify_certs=False)
es.info()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment