惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Blog — PlanetScale
Blog — PlanetScale
博客园 - 司徒正美
Vercel News
Vercel News
F
Fortinet All Blogs
月光博客
月光博客
G
Google Developers Blog
博客园 - Franky
GbyAI
GbyAI
The Cloudflare Blog
I
InfoQ
雷峰网
雷峰网
WordPress大学
WordPress大学
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
T
The Blog of Author Tim Ferriss
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 聂微东
小众软件
小众软件
腾讯CDC
B
Blog
量子位
V
V2EX
S
SegmentFault 最新的问题
Google DeepMind News
Google DeepMind News

运维监控系列 on 打工人日志

skywalking python agent 安装和配置 Logstash 自动重载配置文件 windows-exporter 监控 skywalking APM 监控 nginx exporter 安装配置 prometheus grafana alertmanager 安装配置 prometheus 配置
logstash 多管道部署
2022-07-19 · via 运维监控系列 on 打工人日志

logstash 多管道部署

找到 logstash 目录位置,一般来说在 /etc/logstash 路径下,修改 logstash.yml

1#增加 日志记录
2path.logs: /var/log/logstash

增加管道

增加 conf.d目录下 test.conf

input {
    beats {
        host => "0.0.0.0"
        port => 23000 # 修改端口IP
    }
}
filter {
    mutate{
        add_field => {
            "cluster" => "test" # 修改标签
            "job" => "logstash"
        }
    }
}
output {
        file {
            path => "/data/路径名称" # 路径名称
            gzip => false  #匹配以空格开头的行
        }
}

修改 pipelines.yml

1- pipeline.id: 名称
2  path.config: "/etc/logstash/conf.d/配置文件.conf"
3  queue.type: persisted

启动 logstash 文件

1/usr/share/logstash/bin/logstash &