Python-Honeypot icon indicating copy to clipboard operation
Python-Honeypot copied to clipboard

unable to connect to elasticsearch

Open sumukhchitloor opened this issue 3 years ago • 5 comments

Hey, I've followed the installation steps and guide given in the wiki page but when ever I try to run the ohp.py I'm getting the "unable to connect to elasticsearch" error elastic search is working on my local machine

image

sumukhchitloor avatar Jan 15 '23 08:01 sumukhchitloor

Have you solved this error? I have the same error now and can't find a solution.. Need help

kuttykut3 avatar Feb 24 '23 09:02 kuttykut3

Have you solved this error? I have the same error now and can't find a solution.. Need help

No :(

sumukhchitloor avatar Feb 24 '23 10:02 sumukhchitloor

@kuttykut3 @sumukhchitloor There was a bug at: https://github.com/OWASP/Python-Honeypot/blob/master/core/compatible.py#L91-L92

You need to replace the second argument with api_database_http_auth

        connection = elasticsearch.Elasticsearch(
            hosts=api_config["api_database"],
            http_auth=api_config["api_database_http_auth"]
        )

laladee avatar Mar 09 '23 04:03 laladee

what version of elastic search do you have installed?

snehadiwakar avatar Apr 18 '23 06:04 snehadiwakar