Hi There,
I faced typical problem with filebeat. No matter which user (filebeat or root) I'm trying to launch filebeat 7.9.2 i'm getting:
filebeat | /usr/local/bin/docker-entrypoint: line 8: exec: filebeat: not found
filebeat exited with code 127
I'm running on: oracle linux v8.1
Docker version 20.10.3, build 48d30b5
docker-compose version 1.27.4, build 40524192
I needed this to mount certificate which should be somewhere available in the filebeat. Looks like it started to work:
Attaching to filebeat
filebeat | 2021-03-02T15:20:28.622Z INFO instance/beat.go:640 Home path: [/usr/share/filebeat] Config path: [/usr/share/filebeat] Data path: [/usr/share/filebeat/data] Logs path: [/usr/share/filebeat/logs]
filebeat | 2021-03-02T15:20:28.630Z INFO instance/beat.go:648 Beat ID: ae09d65d-be92-4f37-b306-a24341efcd54
filebeat | 2021-03-02T15:20:28.630Z INFO [seccomp] seccomp/seccomp.go:124 Syscall filter successfully installed
filebeat | 2021-03-02T15:20:28.630Z INFO [beat] instance/beat.go:976 Beat info {"system_info": {"beat": {"path": {"config": "/usr/share/filebeat", "data": "/usr/share/filebeat/data", "home": "/usr/share/filebeat", "logs": "/usr/share/filebeat/logs"}, "type": "filebeat", "uuid": "ae09d65d-be92-4f37-b306-a24341efcd54"}}}
But I still need to mount my ca.crt (somewhere):
ilebeat | 2021-03-02T15:20:28.632Z ERROR instance/beat.go:951 Exiting: error initializing publisher: 1 error: open /usr/share/fileabeat/config/certs/ca/ca.crt: no such file or directory reading /usr/share/fileabeat/config/certs/ca/ca.crt
filebeat | Exiting: error initializing publisher: 1 error: open /usr/share/fileabeat/config/certs/ca/ca.crt: no such file or directory reading /usr/share/fileabeat/config/certs/ca/ca.crt
Hmm what's wrong with mounting /srv/filebeat to /usr/share/filebeat ? In my example in fact it wasn't make sense to mount filebeat.yml (which is de facto in path /usr/share/filebeat) and /usr/share/filebet again - this made filebeat.yml available twice. Here is the working docker-compose file - maybe it will help someone else:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.