Skip to content
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

Add UDP transport option to Promtail's syslog target #5790

Merged
merged 1 commit into from
May 3, 2022

Conversation

chaudum
Copy link
Contributor

@chaudum chaudum commented Apr 6, 2022

What this PR does / why we need it:

Until now, the syslog target in Promtail did only support TCP. This PR adds support for sending syslog messages to Promtail (via ng-syslog or rsyslog) via UDP.

UPD for syslogs can be used if you prefer speed over guaranteed delivery.

Which issue(s) this PR fixes:
Fixes #5370

Special notes for your reviewer:

Checklist

  • Documentation added
  • Tests updated
  • Add an entry in the CHANGELOG.md about the changes.

@chaudum chaudum marked this pull request as ready for review April 7, 2022 07:58
@chaudum chaudum requested review from KMiller-Grafana and a team as code owners April 7, 2022 07:58
@chaudum chaudum marked this pull request as draft April 8, 2022 06:41
@chaudum
Copy link
Contributor Author

chaudum commented Apr 8, 2022

I still need to investigate some issues I discovered when benchmarking UDP transport, so I put the PR back to draft.

@martensson
Copy link

martensson commented Apr 11, 2022

This is really great! We are running promtail on hundreds of servers and recently activated syslog assuming UDP was supported. This will be a fantastic feature and saves running rsyslog (or similar software) just to forward UDP syslogs.

@chaudum chaudum force-pushed the chaudum/syslog-udp-transport branch from 4955a03 to 4c0b3f3 Compare April 12, 2022 06:22
@chaudum chaudum force-pushed the chaudum/syslog-udp-transport branch 3 times, most recently from bab67a8 to 9974849 Compare May 2, 2022 07:06
@chaudum chaudum marked this pull request as ready for review May 2, 2022 07:11
@chaudum chaudum requested a review from cyriltovena May 2, 2022 07:20
Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Let's resolve conflict for the changelog.

@cyriltovena cyriltovena enabled auto-merge (squash) May 2, 2022 08:29
Until now, the syslog target in Promtail did only support TCP. This PR
adds support for sending syslog messages to Promtail (via ng-syslog or
rsyslog) via UDP.

UPD for syslogs can be used if you prefer speed over guaranteed
delivery.

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Promtail Syslog UDP transport
3 participants