Python operation ES8.5.2 code example

es = Elasticsearch(
    [
        {
            'host':str(es_host),
            'port':str(es_port),
            'scheme': "https"
        }
    ], 
    http_auth=(str(es_username), str(es_password))
)

Guess you like

Origin blog.csdn.net/okyanxingkui/article/details/131294863