DLtianzheng

es 的攻击图数据怎么一次查询实现

  •  
  •   DLtianzheng · Apr 12, 2022 · 5121 views
    This topic created in 1494 days ago, the information mentioned may be changed or developed.
    现在有一个需求,需要统计 es 文档的数据
    一个文档对象有一个攻击者 a,和一个被攻击对象 b,a 和 b 是一个 ip,每个 ip 有一个所属地,所属地不在文档中体现,需要另外在数据库中查询.
    然后我想统计所属地之间的攻击数量,我怎么样能通过一次查询查询出数据.
    我知道可以用 MultiSearch 可以实现一次查询,不知道这个性能怎么样,各位麻烦给个建议
    2 replies    2022-04-13 09:34:29 +08:00
    zmal
        1
    zmal  
       Apr 12, 2022 via iPhone
    ES 不适合处理你这种场景。如果数据量特别大,建议上大数据工具。
    应该把 A B 对应的 IP 所属地都加文档里,会好处理一些。
    cocowind
        2
    cocowind  
       Apr 13, 2022
    add a field -> a 所属地_b 所属地
    then aggregation
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2987 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 04:56 · PVG 12:56 · LAX 21:56 · JFK 00:56
    ♥ Do have faith in what you're doing.