Skip to content

Commit 89fb737

Browse files
committed
Add Logstash exporter
1 parent 4bdc240 commit 89fb737

File tree

3 files changed

+50
-0
lines changed

3 files changed

+50
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# REQUIRED
2+
# Kind can be one of:
3+
# - breaking-change: a change to previously-documented behavior
4+
# - deprecation: functionality that is being removed in a later release
5+
# - bug-fix: fixes a problem in a previous version
6+
# - enhancement: extends functionality but does not break or fix existing behavior
7+
# - feature: new functionality
8+
# - known-issue: problems that we are aware of in a given version
9+
# - security: impacts on the security of a product or a user’s deployment.
10+
# - upgrade: important information for someone upgrading from a prior version
11+
# - other: does not fit into any of the other categories
12+
kind: feature
13+
14+
# REQUIRED for all kinds
15+
# Change summary; a 80ish characters long description of the change.
16+
summary: Add Logstash exporter to be used with Beats OTel receivers
17+
18+
# REQUIRED for breaking-change, deprecation, known-issue
19+
# Long description; in case the summary is not enough to describe the change
20+
# this field accommodate a description without length limits.
21+
# description:
22+
23+
# REQUIRED for breaking-change, deprecation, known-issue
24+
# impact:
25+
26+
# REQUIRED for breaking-change, deprecation, known-issue
27+
# action:
28+
29+
# REQUIRED for all kinds
30+
# Affected component; usually one of "elastic-agent", "fleet-server", "filebeat", "metricbeat", "auditbeat", "all", etc.
31+
component: elastic-agent
32+
33+
# AUTOMATED
34+
# OPTIONAL to manually add other PR URLs
35+
# PR URL: A link the PR that added the changeset.
36+
# If not present is automatically filled by the tooling finding the PR where this changelog fragment has been added.
37+
# NOTE: the tooling supports backports, so it's able to fill the original PR number instead of the backport PR number.
38+
# Please provide it if you are adding a fragment for a different PR.
39+
# pr: https://github.com/owner/repo/1234
40+
41+
# AUTOMATED
42+
# OPTIONAL to manually add other issue URLs
43+
# Issue URL; optional; the GitHub issue related to this changeset (either closes or is part of).
44+
# If not present is automatically filled by the tooling with the issue linked to the PR number.
45+
# issue: https://github.com/owner/repo/1234

internal/pkg/otel/components.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ import (
6161
"go.opentelemetry.io/collector/exporter/otlpexporter"
6262
otlphttpexporter "go.opentelemetry.io/collector/exporter/otlphttpexporter"
6363

64+
"github.com/elastic/beats/v7/x-pack/otel/exporter/logstashexporter"
65+
6466
// Extensions
6567
"github.com/open-telemetry/opentelemetry-collector-contrib/extension/bearertokenauthextension"
6668
headersetterextension "github.com/open-telemetry/opentelemetry-collector-contrib/extension/headerssetterextension"
@@ -148,6 +150,7 @@ func components(extensionFactories ...extension.Factory) func() (otelcol.Factori
148150
loadbalancingexporter.NewFactory(),
149151
otlphttpexporter.NewFactory(),
150152
nopexporter.NewFactory(),
153+
logstashexporter.NewFactory(),
151154
}
152155
// some exporters should only be available when
153156
// not in fips mode due to restrictions on crypto usage

internal/pkg/otel/testdata/all-components.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ exporters:
1010
otlphttp:
1111
endpoint: https://localhost.com:4318
1212
nop:
13+
logstash:
14+
hosts: ["localhost:5044"]
1315

1416
extensions:
1517
health_check:

0 commit comments

Comments
 (0)