简体   繁体   English

使用Python中的Logstash将数据导入Elastic Search

[英]Import data into Elastic Search using Logstash in Python

I have imported a JSON file into ElasticSearch index using the command line for logstash. 我已经使用logstash的命令行将JSON文件导入到ElasticSearch索引中。 I used the following command: 我使用以下命令:

.\\logstash -f logstash.conf 。\\ logstash -f logstash.conf

The path of the file to be imported has been provided in the logstash.conf file. logstash.conf文件中提供了要导入文件的路径。 I have been able to achieve this using command line. 我已经能够使用命令行来实现这一点。

But how do i do the same thing in python? 但是我如何在python中做同样的事情呢? Aim is to import bulk data into elasticsearch index using python (with or without logstash) 目的是使用python(带或不带logstash)将批量数据导入Elasticsearch索引

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM