It would be great if all beats would be compiled statically to work on musl libc distributions as well. I found (for 5.4.2) that filebeat works nicely on musl libc based distros, metricbeat requires a compatibility layer.
Especially metricbeat is useful in a containerized environment, so I suggest compiling it so that "apk add libc6-compat" is not required.
Unfortunately, as soon as Cgo is required, libc must be dynamically compiled, otherwise one gets weird bugs like this one. Metricbeat requires Cgo for reading some process information, and in the future for custom plugins.
The only viable solution static binaries and Cgo seems to be compiling against musl-libc, which we plan to try out, but there are worrying experiences about that as well.
Note that we currently provide official Docker images, based on Centos.
Thanks for the heads up - I didn't see the blog entry until now.
Maybe it's time to move on?
The ideal setup though probably should be (at least for our use case):
Getting a static build of the beats working in Alpine Linux (because we have hundreds of very small containers running on Alpine and have the rest of Elastic Stack on CentOS.
That's what we are currently doing anyway, so I am looking forward to running the beats on Alpine, not the rest of the stack.
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.