Hi. I don't understand why my multipiplines don't work while it should as I've created config files by an example. I've tried to restart Logstash as it was using a single-file pipeline (using -f flag). Logstash is a container and its version is 7.5.1. What's wrong with any of the files? Here's pipelines.yml:
- pipeline.id: main
config.string: |
input {
beats {
port => 5000
ssl => true
ssl_certificate => "/logstash.crt"
ssl_key => "/logstash.key"
}
}
output {
if [container][name] =~ 'redis' {
pipeline {
send_to => redis
}
}
}
- pipeline.id: redis
queue.type: persisted
pipeline.workers: 1
path.config: "/usr/share/logstash/pipeline/redis.conf"
/usr/share/logstash/pipeline/redis.conf:
input {
pipeline {
address => redis
}
}
output {
elasticsearch {
hosts => "elasticsearch:9200"
user => "user"
password => "password"
ilm_enabled => true
template_overwrite => true
ilm_rollover_alias => "redis"
ilm_policy => "generic"
index => "redis"
}
stdout { codec => json}
}
Errors I get:
Attempted to send event to 'redis' but that address was unavailable. Maybe the destination pipeline is down or stopping? Will Retry.
[logstash.config.source.local.configpathloader] No config files found in path {:path=>"/usr/share/logstash/pipeline/redis.conf"}