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

[Feature Request] - rsyslog - enable mmtaghostname #122

Closed
elruwen opened this issue May 16, 2022 · 5 comments
Closed

[Feature Request] - rsyslog - enable mmtaghostname #122

elruwen opened this issue May 16, 2022 · 5 comments
Labels
enhancement New feature or request packages Package request pending Will be addressed with an upcoming release
Milestone

Comments

@elruwen
Copy link

elruwen commented May 16, 2022

Is your feature request related to a problem? Please describe.
Rsyslog has the useful module mmtaghostname. I use it when I build an rsyslog sidecar. I use the syslog tag to route logs to the correct place. This plugin allows me to easily adjust the hostname and the tag to pre-defined values.

From the rsyslog documenation (https://www.rsyslog.com/doc/master/configuration/modules/mmtaghostname.html)

The purposes are:
- to add a tag on message produce by input module which does not provide a tag like imudp or imtcp. Useful when the tag is used for routing the message.
- to force message hostname to the rsyslog valeur. AWS Use case : applications in auto-scaling systems provides logs to rsyslog through udp/tcp. As a result of auto-scaling, the name of the host is based on an ephemeral IPs (short term meaning). In this situation rsyslog local hostname is generally closed to business rule. So replacing hostanme received by the rsyslog local Hostname provide values to the logs collected.

Describe the solution you'd like
The module is part of the rsyslog source code. Just add to ./configure --enable-mmtaghostname and that's it.

Describe alternatives you've considered
I am currently building rsyslog myself. I would like to avoid that.

@liesenml
Copy link
Contributor

Hello, thank you for submitting your request! We review all requests and will reply to this ticket by with our evaluation.

@stewartsmith stewartsmith added enhancement New feature or request packages Package request labels Sep 1, 2022
@elruwen
Copy link
Author

elruwen commented Jul 17, 2023

For everybody else out there: I managed to submit a PR to alpine linux, they merged and released it: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/48893/diffs so you can apk add rsyslog-mmtaghostname to get it.

@stewartsmith
Copy link
Member

I've made a PR upstream to Fedora in https://src.fedoraproject.org/rpms/rsyslog/pull-request/40 and we're looking at enabling the module in an upcoming AL2023 release.

I haven't found any good short description of the use cases of it, so the text in the package summary and description isn't great. If you have some suggested text, I'd happily take it and use it!

@stewartsmith
Copy link
Member

FYI the pull request to the Fedora package was accepted, and this will be part of an upcoming AL2023 release.

@stewartsmith stewartsmith added this to the AL2023.2 milestone Sep 20, 2023
@stewartsmith stewartsmith added the pending Will be addressed with an upcoming release label Sep 20, 2023
@stewartsmith
Copy link
Member

This has now been included in the Amazon Linux 2023 repositories.

The AL2023.2 release notes will be up shortly mentioning this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request packages Package request pending Will be addressed with an upcoming release
Development

No branches or pull requests

3 participants