Elasticsearch Authentication problem in python

Hí,
I am making an application to query elasticsearch and I get an error when launching the query:

ElasticsearchWarning: The client is unable to verify that the server is Elasticsearch due security privileges on the server side
  result=elastic_client.search(index="kubernetes-arca3auditoria-*",query=query_body,size=5000,scroll='3m')

I have this configuration:

elastic_client = Elasticsearch(hosts=[{"host":"ip","port":port,"scheme":"json"}],http_auth=("auditoria","password"))

I'm use 7.17.8 client of elasticsearch and the server have 7.3

Welcome to our community! :smiley:

Can you curl Elasticsearch using that username and password?

7.3 is very old and well past EOL, please upgrade with some urgency.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.