Hello everyone,
I've been struggling to figure out how to compile filebeat with support for journald for arm platform.
I know it seems to not be officially supported (since there are no arm packages available to download officially) but it does seem to work when i compile it.
I've been following this guide -> Contributing to Beats | Beats Developer Guide [master] | Elastic to build however I was running into few problems:
I'm building this on arm64 ec2 instance since it's a lot faster then actually building on raspberry pi.
I'm trying to compile it for arm (not arm64). When running:
mage build
As described in contributing documentation, it builds for arm64, ofcourse - as expected.
When trying to build it with
GOOS=linux GOARCH=arm CGO_ENABLED=1 mage build
<or>
GOOS=linux GOARCH=arm mage build
It fails build with gcc: error: unrecognized command line option '-marm'
When building with go build using:
GOOS=linux GOARCH=arm go build
It manages to compile it successfully and filestream input works, but when i try to use journald input it says No such input type exist: 'journald'
.
I tried crossBuild with mage - it builds only for arm64 doesn't even try arm.
Eventually i tried to compile with go build -x (which is verbose output) to try to get some errors possibly but cannot see anything error related to journald and does try to compile it.
I would really appreciate some help on this