python + bulk + insert + code
ELK/elasticsearch2019. 4. 24. 17:10
from elasticsearch import helpers, Elasticsearch
import csv
es = Elasticsearch(hosts="192.168.2.10")
with open(r"C:\Users\user\Desktop\comm_kkc.csv") as f:
reader = csv.DictReader(f)
helpers.bulk(es, reader, index="tb_frip_srch_tour", doc_type="doc")
f.close()
'ELK > elasticsearch' 카테고리의 다른 글
elasticsearch + shell01 (0) | 2019.05.11 |
---|---|
elastic 불용어 테스트 (0) | 2019.05.01 |
elastic bacis#3 (0) | 2019.04.23 |
elastic basic #2 (0) | 2019.04.22 |
elastic basic #1 (0) | 2019.04.22 |