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

Syslog application is not started when only some sinks are configured to use it. #2044

Closed
hairyhum opened this issue Jun 25, 2019 · 1 comment · Fixed by #2181
Closed

Syslog application is not started when only some sinks are configured to use it. #2044

hairyhum opened this issue Jun 25, 2019 · 1 comment · Fixed by #2181
Assignees
Milestone

Comments

@hairyhum
Copy link
Contributor

Reported in https://groups.google.com/forum/#!topic/rabbitmq-users/1yk3akqVmYE

When trying to configure only some categories to use syslog_lager_backend, the syslog application does not start by default.
This requires starting manually every time rabbitmq node restarts, which is inconvenient.

@hairyhum
Copy link
Contributor Author

Related to #1728

@lukebakken lukebakken self-assigned this Dec 6, 2019
@lukebakken lukebakken added this to the 3.7.24 milestone Dec 6, 2019
lukebakken added a commit that referenced this issue Dec 9, 2019
Fixes #2044

Fixes #2044

To test -

* Clone https://github.com/lukebakken/rabbitmq-server-2044
* Ensure `syslog-ng` is in your `PATH`, then run `run-syslog-ng.sh`
* Start RabbitMQ using `rabbitmq.config`
* Run the following to log using the federation sink:

```
rabbit_federation_link_util:log_debug(rabbit_misc:r(<<"/">>, exchange), "TEST TEST ~s", [bar]).
```

Without this patch, nothing will be sent to the local `syslog-ng`
server. Also, running `application:which_applications()` will not show
that `syslog` is started. Applying this patch will fix both.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants