ELK/elasticsearch
Elasticsearch + python + pipeline
파아랑새
2019. 12. 2. 06:42
from ELa import Ela
class Client:
def __init__(self):
self._elaClinet = Ela.retElanode()
self._targetDir = ""
def insrtDoc(self):
d = {"data":"aGVsbG8="}
self._elaClinet.index(index="x_index", pipeline="attachment", body=d)
o = Client()
o.insrtDoc()