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 support for syslog server hostname #1658

Merged
merged 3 commits into from
Aug 2, 2018

Conversation

lukebakken
Copy link
Collaborator

@lukebakken lukebakken commented Aug 2, 2018

schlagert/syslog version 3.4.3 adds support for specifying a host name for dest_host, this PR supports it as well

See this gist for my test procedure:

https://gist.github.com/lukebakken/20bd05816a8b80839cc3c6645350bfa4

schlagert/syslog version 3.4.3 adds support for specifying a host name for `dest_host`, this PR supports it as well

See this gist for my test procedure:

git@gist.github.com:7ab6348839c3dc7b18b6662f024e089c.git
@lukebakken lukebakken added this to the 3.7.8 milestone Aug 2, 2018
@lukebakken lukebakken self-assigned this Aug 2, 2018
@lukebakken lukebakken changed the title WIP: Add support for syslog server hostname Add support for syslog server hostname Aug 2, 2018
@@ -1086,9 +1086,8 @@ end}.
{datatype, {enum, [true, false]}}
]}.

{mapping, "log.syslog.ip", "syslog.dest_host", [
Copy link
Member

Choose a reason for hiding this comment

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

Can we leave log.syslog.ip in place for compatibility? (it also makes some sense as an alias anyway)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I wanted to do that, but since they both set syslog.dest_host, it doesn't work.

Copy link
Member

Choose a reason for hiding this comment

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

Oh, OK.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hm there may be options if the value can be transformed, maybe. Let me check.

@michaelklishin michaelklishin dismissed their stale review August 2, 2018 20:17

There are Cuttlefish limitations I wasn't aware of.

@lukebakken
Copy link
Collaborator Author

@michaelklishin - ready for re-review, both log.syslog.ip and log.syslog.host are supported now 😺

@lukebakken
Copy link
Collaborator Author

Thanks for the review @michaelklishin

@lukebakken lukebakken merged commit ca55dc9 into master Aug 2, 2018
@lukebakken lukebakken deleted the lrb-add-hostname-syslog-support branch August 2, 2018 22:16
lukebakken added a commit to rabbitmq/rabbitmq-website that referenced this pull request Jan 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants