Dear all,
i can't get logstash working multipipeline mode inside a docker container.
pipelines.yml (inside container)
/usr/share/logstash/config
bash-4.2$ stat pipelines.yml
File: ‘pipelines.yml’
Access: (0644/-rw-r--r--) Uid: ( 1000/logstash) Gid: ( 0/ root)
docker-compose.yml volume section
volumes:
- type: bind
source: ./logstash/config/logstash.yml
target: /usr/share/logstash/config/logstash.yml
read_only: true
- type: bind
source: ./logstash/pipeline
target: /usr/share/logstash/pipeline
read_only: true
- type: bind
source: ./logstash/config/pipelines.yml
target: /usr/share/logstash/config/pipelines.yml
read_only: true
No way to bind pipelines.yml i am getting this error when trying to bind pipelines.yml
ERROR: for logstash Cannot start service logstash: OCI runtime create failed: container_linux.go:346: starting container process caused "process_linux.go:449: container init caused \"rootfs_linux.go:58: mounting \\\"/home/user/docker-elk/logstash/config/pipelines.yml\\\" to rootfs \\\"/var/lib/docker/overlay2/49aeb7ecb70e07930c316ffc8e7d0d5a18a151da91c8b40990bf7f7ee3306158/merged\\\" at \\\"/var/lib/docker/overlay2/49aeb7ecb70e07930c316ffc8e7d0d5a18a151da91c8b40990bf7f7ee3306158/merged/usr/share/logstash/config/pipelines.yml\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type