Skip to content
Merged
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
45 changes: 45 additions & 0 deletions changelog/fragments/1758747376-add-logstash-exporter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# REQUIRED
# Kind can be one of:
# - breaking-change: a change to previously-documented behavior
# - deprecation: functionality that is being removed in a later release
# - bug-fix: fixes a problem in a previous version
# - enhancement: extends functionality but does not break or fix existing behavior
# - feature: new functionality
# - known-issue: problems that we are aware of in a given version
# - security: impacts on the security of a product or a user’s deployment.
# - upgrade: important information for someone upgrading from a prior version
# - other: does not fit into any of the other categories
kind: feature

# REQUIRED for all kinds
# Change summary; a 80ish characters long description of the change.
summary: Add Logstash exporter to be used with Beats OTel receivers

# REQUIRED for breaking-change, deprecation, known-issue
# Long description; in case the summary is not enough to describe the change
# this field accommodate a description without length limits.
# description:

# REQUIRED for breaking-change, deprecation, known-issue
# impact:

# REQUIRED for breaking-change, deprecation, known-issue
# action:

# REQUIRED for all kinds
# Affected component; usually one of "elastic-agent", "fleet-server", "filebeat", "metricbeat", "auditbeat", "all", etc.
component: elastic-agent

# AUTOMATED
# OPTIONAL to manually add other PR URLs
# PR URL: A link the PR that added the changeset.
# If not present is automatically filled by the tooling finding the PR where this changelog fragment has been added.
# NOTE: the tooling supports backports, so it's able to fill the original PR number instead of the backport PR number.
# Please provide it if you are adding a fragment for a different PR.
# pr: https://github.com/owner/repo/1234

# AUTOMATED
# OPTIONAL to manually add other issue URLs
# Issue URL; optional; the GitHub issue related to this changeset (either closes or is part of).
# If not present is automatically filled by the tooling with the issue linked to the PR number.
# issue: https://github.com/owner/repo/1234
3 changes: 3 additions & 0 deletions internal/pkg/otel/components.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ import (
"go.opentelemetry.io/collector/exporter/otlpexporter"
otlphttpexporter "go.opentelemetry.io/collector/exporter/otlphttpexporter"

"github.com/elastic/beats/v7/x-pack/otel/exporter/logstashexporter"

// Extensions
"github.com/open-telemetry/opentelemetry-collector-contrib/extension/bearertokenauthextension"
headersetterextension "github.com/open-telemetry/opentelemetry-collector-contrib/extension/headerssetterextension"
Expand Down Expand Up @@ -163,6 +165,7 @@ func components(extensionFactories ...extension.Factory) func() (otelcol.Factori
loadbalancingexporter.NewFactory(),
otlphttpexporter.NewFactory(),
nopexporter.NewFactory(),
logstashexporter.NewFactory(),
}
// some exporters should only be available when
// not in fips mode due to restrictions on crypto usage
Expand Down
2 changes: 2 additions & 0 deletions internal/pkg/otel/testdata/all-components.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ exporters:
otlphttp:
endpoint: https://localhost.com:4318
nop:
logstash:
hosts: ["localhost:5044"]

extensions:
health_check:
Expand Down
Loading