我有一个问题,我的 beatmetric 被我的 http 管道捕获。
Logstash、Elastic 和 Metricbeat 都在 Kubernetes 中运行。
我的 beatmetric 设置为发送到端口 5044 上的 Logstash 并登录到 /tmp 中的文件。这工作正常。但是,每当我创建一个带有http
输入的管道时,这似乎也会捕获节拍输入并将它们发送到管道index2
中定义的 Elastic 中。http
为什么它会这样?
/usr/share/logstash/pipeline/http.conf
input {
http {
port => "8080"
}
}
output {
#stdout { codec => rubydebug }
elasticsearch {
hosts => ["http://my-host.com:9200"]
index => "test2"
}
}
/usr/share/logstash/pipeline/beats.conf
input {
beats {
port => "5044"
}
}
output {
file {
path => '/tmp/beats.log'
codec => "json"
}
}
/usr/share/logstash/config/logstash.yml
pipeline.id: main
pipeline.workers: 1
pipeline.batch.size: 125
pipeline.batch.delay: 50
http.host: "0.0.0.0"
http.port: 9600
config.reload.automatic: true
config.reload.interval: 3s
/usr/share/logstash/config/pipeline.yml
- pipeline.id: main
path.config: "/usr/share/logstash/pipeline"