This is a recipe meta layer for Yocto that builds the official elastic beats found here. Elastic beats are lightweight data clients that can send data to various tools of the Elastic Stack, like Elasticsearch, Kibana and Logstash.
The supported beats currently are:
- auditbeat
- filebeat
- heartbeat
- [journalbeat
- metricbeat
- packetbeat
The master repo recipes point always to the latest master SRCREV = "${AUTOREV}"
,
but there are tags in the repo for specific and tested versions.
The supported versions (and repo tags) are:
- v7.9.0
To add the layer to your build :
bitbake-layers add-layer meta-elastic-beats
Or just simply add the layer manually to your bblayers.conf
file.
To add a beat in your image then add one of the following recipes to your
IMAGE_INSTALL
:
elastic-beats-auditbeat
elastic-beats-filebeat
elastic-beats-heartbeat
elastic-beats-journalbeat
elastic-beats-metricbeat
elastic-beats-packetbeat
For example:
IMAGE_INSTALL += "elastic-beats-journalbeat elastic-beats-metricbeat"
The configuration yaml files are the default ones. You need to override them
with a custom recipe and use your own for your specific usage. The configuration
Yaml files are located in meta-elastic-beats/recipes-devops/elastic-beats/elastic-beats
.
The golang build changes the files in pkg/mod in to read only. This means that
bitbake is not able to delete those files if the build fails and you need to
delete the folder manually. Normally this is handled in meta-elastic-beats/recipes-devops/elastic-beats/elastic-beats.inc
with the go clean -modcache
comamnd.
Dimitris Tassopoulos dimtass@gmail.com