Skip to content

[DO NOT MERGE] feat: add Beat processor #8965

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions NOTICE-fips.txt
Original file line number Diff line number Diff line change
Expand Up @@ -786,12 +786,12 @@ Contents of probable licence file $GOMODCACHE/github.com/dolmen-go/contextio@v0.


--------------------------------------------------------------------------------
Dependency : github.com/elastic/beats/v7
Version: v7.0.0-alpha2.0.20250710195820-152cefcea928
Dependency : github.com/andrzej-stencel/beats/v7
Version: v7.0.0-20250711133250-10b52ba1f4c9
Licence type (autodetected): Elastic
--------------------------------------------------------------------------------

Contents of probable licence file $GOMODCACHE/github.com/elastic/beats/v7@v7.0.0-alpha2.0.20250710195820-152cefcea928/LICENSE.txt:
Contents of probable licence file $GOMODCACHE/github.com/andrzej-stencel/beats/v7@v7.0.0-20250711133250-10b52ba1f4c9/LICENSE.txt:

Source code in this repository is variously licensed under the Apache License
Version 2.0, an Apache compatible license, or the Elastic License. Outside of
Expand Down
6 changes: 3 additions & 3 deletions NOTICE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -786,12 +786,12 @@ Contents of probable licence file $GOMODCACHE/github.com/dolmen-go/contextio@v0.


--------------------------------------------------------------------------------
Dependency : github.com/elastic/beats/v7
Version: v7.0.0-alpha2.0.20250710195820-152cefcea928
Dependency : github.com/andrzej-stencel/beats/v7
Version: v7.0.0-20250711133250-10b52ba1f4c9
Licence type (autodetected): Elastic
--------------------------------------------------------------------------------

Contents of probable licence file $GOMODCACHE/github.com/elastic/beats/v7@v7.0.0-alpha2.0.20250710195820-152cefcea928/LICENSE.txt:
Contents of probable licence file $GOMODCACHE/github.com/andrzej-stencel/beats/v7@v7.0.0-20250711133250-10b52ba1f4c9/LICENSE.txt:

Source code in this repository is variously licensed under the Apache License
Version 2.0, an Apache compatible license, or the Elastic License. Outside of
Expand Down
1 change: 1 addition & 0 deletions dev-tools/notice/overrides.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{"name": "github.com/elastic/beats/v7", "licenceType": "Elastic"}
{"name": "github.com/andrzej-stencel/beats/v7", "licenceType": "Elastic"}
{"name": "github.com/elastic/elastic-agent-client/v7", "licenceType": "Elastic"}
{"name": "github.com/gorhill/cronexpr", "licenceType": "Apache-2.0", "licenceFile":"APLv2"}
{"name": "github.com/hashicorp/cronexpr", "licenceType": "Apache-2.0", "licenceFile":"APLv2"}
Expand Down
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -766,3 +766,5 @@ replace (
github.com/insomniacslk/dhcp => github.com/elastic/dhcp v0.0.0-20200227161230-57ec251c7eb3 // indirect
github.com/meraki/dashboard-api-go/v3 => github.com/tommyers-elastic/dashboard-api-go/v3 v3.0.0-20250616163611-a325b49669a4
)

replace github.com/elastic/beats/v7 => github.com/andrzej-stencel/beats/v7 v7.0.0-20250711133250-10b52ba1f4c9
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ github.com/alecthomas/units v0.0.0-20240927000941-0f3dac36c52b h1:mimo19zliBX/vS
github.com/alecthomas/units v0.0.0-20240927000941-0f3dac36c52b/go.mod h1:fvzegU4vN3H1qMT+8wDmzjAcDONcgo2/SZ/TyfdUOFs=
github.com/alexbrainman/sspi v0.0.0-20210105120005-909beea2cc74 h1:Kk6a4nehpJ3UuJRqlA3JxYxBZEqCeOmATOvrbT4p9RA=
github.com/alexbrainman/sspi v0.0.0-20210105120005-909beea2cc74/go.mod h1:cEWa1LVoE5KvSD9ONXsZrj0z6KqySlCCNKHlLzbqAt4=
github.com/andrzej-stencel/beats/v7 v7.0.0-20250711133250-10b52ba1f4c9 h1:F1D6UwhnfH3jzpvUATLykpeNU7oBrzMadMMyeXGaXiE=
github.com/andrzej-stencel/beats/v7 v7.0.0-20250711133250-10b52ba1f4c9/go.mod h1:1AePMUoS5afJb9RWLxlBNvU/0kE/0Un1RFKQ5z/eqV4=
github.com/andybalholm/brotli v1.1.0 h1:eLKJA0d02Lf0mVpIDgYnqXcUn0GqVmEFny3VuID1U3M=
github.com/andybalholm/brotli v1.1.0/go.mod h1:sms7XGricyQI9K10gOSf56VKKWS4oLer58Q+mhRPtnY=
github.com/antchfx/xmlquery v1.4.4 h1:mxMEkdYP3pjKSftxss4nUHfjBhnMk4imGoR96FRY2dg=
Expand Down Expand Up @@ -483,8 +485,6 @@ github.com/elastic/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumpti
github.com/elastic/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption v1.1.0-elastic/go.mod h1:0vCBR1wgGwZeGmloJ+eCWIZF2S47grTXRzj2mftg2Nk=
github.com/elastic/bayeux v1.0.5 h1:UceFq01ipmT3S8DzFK+uVAkbCdiPR0Bqei8qIGmUeY0=
github.com/elastic/bayeux v1.0.5/go.mod h1:CSI4iP7qeo5MMlkznGvYKftp8M7qqP/3nzmVZoXHY68=
github.com/elastic/beats/v7 v7.0.0-alpha2.0.20250710195820-152cefcea928 h1:pj3Gu5G930yh94JuauTp+d76ZW+VEGqHvhkdn3D2/w0=
github.com/elastic/beats/v7 v7.0.0-alpha2.0.20250710195820-152cefcea928/go.mod h1:2WoQbuEN3UyivfSnd6pOKYLtxKu+t6mlmClY2Had4dA=
github.com/elastic/cloud-on-k8s/v2 v2.0.0-20250327073047-b624240832ae h1:OiShmbWAyGU0MS0ADJWr1/QgeLIZliMk9xsrFicR3/s=
github.com/elastic/cloud-on-k8s/v2 v2.0.0-20250327073047-b624240832ae/go.mod h1:D2IckZVXARugvikE4fv1glvaJMohKSZRzrPsxCjo9O0=
github.com/elastic/elastic-agent-autodiscover v0.9.2 h1:eBmru2v66HRRHOFf89rDl9OZUr7VsPoT4+ZNYHW6e9I=
Expand Down
2 changes: 2 additions & 0 deletions internal/pkg/otel/components.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import (
elasticapmintakereceiver "github.com/elastic/opentelemetry-collector-components/receiver/elasticapmintakereceiver" // for collecting APM data from Elastic APM agents

fbreceiver "github.com/elastic/beats/v7/x-pack/filebeat/fbreceiver"
"github.com/elastic/beats/v7/x-pack/libbeat/processors/beatprocessor"
mbreceiver "github.com/elastic/beats/v7/x-pack/metricbeat/mbreceiver"

// Processors:
Expand Down Expand Up @@ -125,6 +126,7 @@ func components(extensionFactories ...extension.Factory) func() (otelcol.Factori
resourcedetectionprocessor.NewFactory(),
memorylimiterprocessor.NewFactory(),
elastictraceprocessor.NewFactory(),
beatprocessor.NewFactory(),
)
if err != nil {
return otelcol.Factories{}, err
Expand Down
1 change: 1 addition & 0 deletions internal/pkg/otel/testdata/all-components.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ processors:
limit_mib: 4000
spike_limit_mib: 800
elastictrace:
beat:

receivers:
nop:
Expand Down
Loading