app-admin/filebeat - 9.4.2 (vklimovs)

Search

Install

Install this version:

emerge -a =app-admin/filebeat-9.4.2

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

autounmask =app-admin/filebeat-9.4.2

Or alternatively:

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

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.4.2 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 -caf ${P}-vendor.tar.xz beats-${PV}/vendor
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"
BDEPEND=">=dev-lang/go-1.25.9:="

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.25.9:=

Manifest for 9.4.2

Type File Size Source URLs
DIST filebeat-9.4.2-vendor.tar.xz 19649532 bytes https://github.com/vklimovs/portage-overlay/releases/download/filebeat-9.4.2-vendor.tar.xz/filebeat-9.4.2-vendor.tar.xz
DIST filebeat-9.4.2.tar.gz 105730460 bytes https://github.com/elastic/beats/archive/v9.4.2.tar.gz