停止通过logstash“exec”插件启动elasticsearch中的数据

时间:2015-07-01 06:45:18

标签: elasticsearch logstash kibana

我对弹性搜索遇到问题非常新。我创建了一个名为test.conf的logstash配置文件,如下所示: -

input
{ 
    exec
    { 
        command => "free"interval => 1
    }
}


output
{
    elasticsearch 
    { 
        host => "localhost"protocol => "http"
    } 
}

现在我执行此配置文件,以便按照以下命令每隔1秒开始在elasticsearch中推送数据: -

  

$ / opt / logstash / bin / logstash -f test.conf

我使用kibana来显示在elasticsearch中插入的数据。 由于数据每秒都会继续添加到elasticsearch中,因此我无法停止此数据插入作业。请帮帮我。

0 个答案:

没有答案
相关问题