嘿~ 今天天气不错嘛

logstash-input-jdbc的作用只能把mysql数据同步到es吗,可以通过es添加数据进mysql吗?怎么做?

Elasticsearch | 作者 test_1 | 发布于2018年02月07日 | 阅读数:2378

logstash-input-jdbc的作用只能把mysql数据同步到es吗,可以通过es添加数据进mysql吗?怎么做?
已邀请:

jhonbo

赞同来自:

使用out插件http将数据倒到一个服务接口进行入库
官网具体配置解说:https://www.elastic.co/guide/e ... .html
简单实例:
output {
     http {
               id => "my_plugin_id" ,
               url=>"",
               http_method=>"post",
               mapping => {
                                 "foo" => "%{host}"
                                 "bar" => "%{type}"
               }
             }     
}
希望对你有帮助

xinian

赞同来自:

将ES的数据存到数据库,应该没有办法直接将ES的数据写到数据库,需要通过后台服务写到数据库。

要回复问题请先登录注册