V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
meisei81
V2EX  ›  问与答

请教一个 logstash 多数据源同步到 es 同一个 index 的问题

  •  
  •   meisei81 · Mar 29, 2018 · 2949 views
    This topic created in 2964 days ago, the information mentioned may be changed or developed.

    如题。

    表结构 A 库 t1 表: id,name,address

    B 库 t2 表: id,t1_id,mobile

    现已经把 t1 的数据同步到 es 的 index 中,index 的 id 为 t1 表的 id ;现想根据 t1_id 字段,把 t2 表中的 mobile 字段同步到 index 中,字段追加在相同 id 的数据上.

    最后 index 的结构为

    id(t1 表),name,address,mobile

    现在能知道的是,logstash 是支持多数据源同步的,即,多个 input,一个 output,但是达不到如上的 index 结构。

    不知道各位有何高见。谢谢。

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   850 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 20:32 · PVG 04:32 · LAX 13:32 · JFK 16:32
    ♥ Do have faith in what you're doing.