从Mysql转储到弹性

时间:2015-12-03 07:27:50

标签: elasticsearch logstash

我们正在使用logstash将数据从mysql转储到弹性搜索。我正在尝试转储针对userId的所有付款的列表(这将是_type为_type)

弹性映射看起来像这样

last_4 = credit_card_params[:last_4].to_s.last(4)

credit_card_params[:last_4] = last_4

sql表有userId,paymentId。

我应该使用哪个过滤器来获取可以提供给弹性搜索的json输出

1 个答案:

答案 0 :(得分:0)

使用jdbc Logstash输入插件。

相关问题