config中对应的配置:
[elasticsearch] ES_MESSAGEW = http://elastic:密码@IP:9200/ 连接器:
from elasticsearch import Elasticsearch
es = Elasticsearch(hosts=[config.get("elasticsearch","ES_MESSAGEW")])
config中对应的配置:
[elasticsearch] ES_MESSAGEW = http://elastic:密码@IP:9200/ 连接器:
from elasticsearch import Elasticsearch
es = Elasticsearch(hosts=[config.get("elasticsearch","ES_MESSAGEW")])