cernard
V2EX  ›  问与答

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

  •  
  •   cernard · Oct 11, 2019 · 2120 views
    This topic created in 2432 days ago, the information mentioned may be changed or developed.

    比如在 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 的情况下实现停止指定任务。

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3081 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 106ms · UTC 14:19 · PVG 22:19 · LAX 07:19 · JFK 10:19
    ♥ Do have faith in what you're doing.