-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[exporter/syslog] Add syslog exporter #19647
Merged
djaglowski
merged 12 commits into
open-telemetry:main
from
kkujawa-sumo:kkujawa-syslogexporter
May 15, 2023
Merged
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
56a2745
[exporter/syslog] Add syslog exporter
kkujawa-sumo f8e6413
[exporter/syslog] make functions unexported
kkujawa-sumo 7df7052
[exporter/syslog] make timeout configurable
kkujawa-sumo 31489f8
[exporter/syslog] lower protocol string
kkujawa-sumo 6c49f70
[exporter/syslog] add examples with syslog receiver
kkujawa-sumo 720c9c4
[exporter/syslog] update to v0.74.0 otelcol core
kkujawa-sumo ec045a6
[exporter/syslog] change formatting of sender_test.go
kkujawa-sumo f6dca1f
[exporter/syslog] change configuration
kkujawa-sumo 0b3a748
[exporter/syslog] change stability level to development
kkujawa-sumo db14276
[exporter/syslog] update to v0.76.1
kkujawa-sumo fd64737
[exporter/syslog] Update to use generated status
kkujawa-sumo c626d4c
[exporter/syslog] update to v0.77.0 otelcol core
kkujawa-sumo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[exporter/syslog] add examples with syslog receiver
- Loading branch information
commit 6c49f70fd93e824e8de4a60edd40884b31736348
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
exporter/syslogexporter/examples/config_with_syslog_receiver.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
extensions: | ||
file_storage/syslog: | ||
directory: /tmp/otc | ||
timeout: 10s | ||
|
||
exporters: | ||
syslog: | ||
protocol: tcp | ||
port: 514 | ||
endpoint: 127.0.0.1 | ||
tls: | ||
ca_file: certs/servercert.pem | ||
cert_file: certs/cert.pem | ||
key_file: certs/key.pem | ||
format: rfc5424 | ||
|
||
# for below described queueing and retry related configuration please refer to: | ||
# https://github.com/open-telemetry/opentelemetry-collector/blob/main/exporter/exporterhelper/README.md#configuration | ||
retry_on_failure: | ||
# default = true | ||
enabled: true | ||
# time to wait after the first failure before retrying; | ||
# ignored if enabled is false, default = 5s | ||
initial_interval: 10s | ||
# is the upper bound on backoff; ignored if enabled is false, default = 30s | ||
max_interval: 40s | ||
# is the maximum amount of time spent trying to send a batch; | ||
# ignored if enabled is false, default = 120s | ||
max_elapsed_time: 150s | ||
|
||
sending_queue: | ||
# default = false | ||
enabled: true | ||
# number of consumers that dequeue batches; ignored if enabled is false, | ||
# default = 10 | ||
num_consumers: 20 | ||
# when set, enables persistence and uses the component specified as a storage extension for the persistent queue | ||
# make sure to configure and add a `file_storage` extension in `service.extensions`. | ||
# default = None | ||
storage: file_storage/syslog | ||
# maximum number of batches kept in memory before data; | ||
# ignored if enabled is false, default = 5000 | ||
# | ||
# user should calculate this as num_seconds * requests_per_second where: | ||
# num_seconds is the number of seconds to buffer in case of a backend outage, | ||
# requests_per_second is the average number of requests per seconds. | ||
queue_size: 10000 | ||
# Time to wait per individual attempt to send data to a backend | ||
# default = 5s | ||
timeout: 1s | ||
receivers: | ||
syslog: | ||
tcp: | ||
listen_address: "0.0.0.0:6514" | ||
protocol: rfc5424 | ||
|
||
service: | ||
telemetry: | ||
logs: | ||
level: "debug" | ||
extensions: | ||
- file_storage/syslog | ||
pipelines: | ||
logs: | ||
receivers: | ||
- syslog | ||
exporters: | ||
- syslog |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is probably not needed anymore, as the link is being autogenerated together with the status table.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kkujawa-sumo, please take note of this. It can be done in a follow up PR.