Hi Team,
This is to inform you that am trying to setup the multiple beat config with logstash , so initially i started with the single beat config where am facing the " [Error: getsockopt: connection refused]" this error.
filebeat.yml
filebeat.yml: |-
filebeat.inputs:
- type: log
# Change to true to enable this input configuration.
enabled: true
# Paths that should be crawled and fetched. Glob based paths.
paths:
- /var/log/*.log
output.logstash:
hosts: ['logstash-service.elk-test1.svc.cluster.local:5044']
---
logstash.config:
logstash.conf: |
# all input will come from filebeat, no local logs
input {
beats {
port => 5044
}
}
filter {
if [message] =~ /^\{.*\}$/ {
json {
source => "message"
}
}
if [ClientHost] {
geoip {
source => "ClientHost"
}
}
}
output {
elasticsearch {
hosts => ["https://xxxxxxxxx:9200"]
username => ["elastic"]
password => ["xxxxxxxxxxxxxxxxxxxx"]
}
}
---
filebeat connectivity error:
2022-07-13T16:46:54.237Z ERROR pipeline/output.go:74 Failed to connect: dial tcp 10.12.1.18:5044: getsockopt: connection refused
2022-07-13T16:46:56.251Z ERROR pipeline/output.go:74 Failed to connect: dial tcp 10.12.1.18:5044: getsockopt: connection refused
2022-07-13T16:47:00.273Z ERROR pipeline/output.go:74 Failed to connect: dial tcp 10.12.1.18:5044: getsockopt: connection refused
2022-07-13T16:47:08.304Z ERROR pipeline/output.go:74 Failed to connect: dial tcp 10.12.1.18:5044: getsockopt: connection refused
2022-0
NOTE @benjamin_brightson I (Stephen) properly formatted your text by selecting / highlighting the text then pressing the </>
button, please do this in the future