app-admin/filebeat - 9.5.4 (vklimovs)

Search

Install

Install this version:

emerge -a =app-admin/filebeat-9.5.4

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =app-admin/filebeat-9.5.4

Or alternatively:

emerge --autounmask-write -a =app-admin/filebeat-9.5.4

Package Information

Description:
Lightweight log shipper for Logstash and Elasticsearch
Homepage:
https://www.elastic.co/beats/filebeat https://github.com/elastic/beats
License:
Apache-2.0 BSD BSD-2 CC-BY-3.0 CC0-1.0 EPL-2.0 ISC MIT MPL-2.0 public-domain PYTHON ZLIB

Ebuild Details

Version EAPI Keywords Slot
9.5.4 8 ~amd64 0
View Raw Ebuild
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit go-module systemd

DESCRIPTION="Lightweight log shipper for Logstash and Elasticsearch"
HOMEPAGE="https://www.elastic.co/beats/filebeat https://github.com/elastic/beats"

# To generate the vendor tarball:
#   tar -xf ${P}.tar.gz
#   cd beats-${PV}
#   rm -r x-pack
#   go mod vendor
#   cd ..
#   tar --sort=name --mtime=@0 --owner=0 --group=0 --numeric-owner \
#       -cf - beats-${PV}/vendor | xz -9e >"${P}-vendor.tar.xz"
SRC_URI="
	https://github.com/elastic/beats/archive/v${PV}.tar.gz -> ${P}.tar.gz
	https://github.com/vklimovs/portage-overlay/releases/download/${P}-vendor.tar.xz/${P}-vendor.tar.xz
"
S="${WORKDIR}/beats-${PV}"

LICENSE="Apache-2.0 BSD BSD-2 CC-BY-3.0 CC0-1.0 EPL-2.0 ISC MIT MPL-2.0 public-domain PYTHON ZLIB"
SLOT="0"
KEYWORDS="~amd64"
# Pin comes from .go-version at the beats tag, not go.mod.
BDEPEND=">=dev-lang/go-1.26.7"

src_prepare() {
	default
	rm -r x-pack || die
}

src_compile() {
	cd filebeat || die
	ego build -mod=vendor -trimpath -buildmode=pie -o filebeat .
}

src_install() {
	dobin filebeat/filebeat
	insinto /etc/${PN}
	doins filebeat/${PN}.yml
	keepdir /var/lib/${PN}
	newinitd "${FILESDIR}/${PN}.initd" ${PN}
	systemd_dounit "${FILESDIR}/${PN}.service"
}

Inherited Eclasses

Dependencies

BDEPEND

>=dev-lang/go-1.26.7

Manifest for 9.5.4

Type File Size Source URLs
DIST filebeat-9.5.4-vendor.tar.xz 19237280 bytes https://github.com/vklimovs/portage-overlay/releases/download/filebeat-9.5.4-vendor.tar.xz/filebeat-9.5.4-vendor.tar.xz
DIST filebeat-9.5.4.tar.gz 106895112 bytes https://github.com/elastic/beats/archive/v9.5.4.tar.gz