I did not say I dont need authentication. What I said was a "self signed certificate" serves our purpose because our IPs are private and machines are private.
You can use this piece of code to connect to your index via your python code.
es = Elasticsearch([myHost], http_auth=(username, password))
if not es.indices.exists(index=myIndex):
es.indices.create(index=myIndex, body=myIndexMap)
res = es.index(index=myIndex,doc_type='_doc', body=dictionary)
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.