Skip to content

Instantly share code, notes, and snippets.

View lvaylet's full-sized avatar
🔥
Learning

Laurent Vaylet lvaylet

🔥
Learning
  • Google, Inc
  • Paris, France
View GitHub Profile
@lvaylet
lvaylet / cross-compile_filebeat_arm.md
Last active September 13, 2021 08:01 — forked from anis-campos/cross-compile_filebeat_arm.sh
Cross-compile Elastic Filebeat for ARM with docker. Works on Raspberry Pi 2 and 3.

Elastic does not provide Filebeat binaries for ARMv7. Luckily, Filebeat can easily be cross-compiled with:

# ----- Instantiate an immutable Go container for cross-compilation ----- #
mkdir build && cd $_
docker run -it --rm -v `pwd`:/build golang:1.9 /bin/bash

# ----- Inside Go container ----- #
go get github.com/elastic/beats
cd /go/src/github.com/elastic/beats/filebeat/