V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
cernard
V2EX  ›  问与答

请问 Logstash 中,使用 pipelines.yml 管理多个任务,如何停止其中某个任务呢?

  •  
  •   cernard · 2019-10-11 16:36:41 +08:00 · 1746 次点击
    这是一个创建于 1630 天前的主题,其中的信息可能已经有所发展或是发生改变。

    比如在 pipelines.yml 中有下面这样配置:

    - {pipeline.id: test1, path.config: 'D:\data\logstash\t1.conf', pipeline.workers: 1}
    - {pipeline.id: test2, path.config: 'D:\data\logstash\t3.conf', pipeline.workers: 1}
    

    如果想要停止其中的 test2 的任务,应该怎么办呢?

    笨办法就是停止 logstash,删除 test2 的配置,启动 logstash。但是这样对别的任务又会造成影响。

    希望能在不重启 logstash 的情况下实现停止指定任务。

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2713 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 15:33 · PVG 23:33 · LAX 08:33 · JFK 11:33
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.