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

Support syslog as an output 'device' #50

Closed
timbunce opened this issue Jul 13, 2015 · 5 comments
Closed

Support syslog as an output 'device' #50

timbunce opened this issue Jul 13, 2015 · 5 comments

Comments

@timbunce
Copy link

I'd like to use logstash-logger but need to be able to send the JSON logs to the local syslogd (which then forwards to a remote logstash and does local disk-assisted queuing if the remote logstash is down).

@dwbutler
Copy link
Owner

Makes sense. Do you want to try to tackle this?

@dwbutler
Copy link
Owner

For reference, here's the implementation of the Ruby 2.0+ Syslog::Logger.

We wouldn't be able to use this class because LogStash::Logger still supports Ruby 1.9. But we can be inspired by it!

dwbutler added a commit that referenced this issue Sep 8, 2015
This uses `Syslog::Logger`, which is built into the Ruby 2+ standard library, and available as a separate gem in Ruby 1.9. Note that this is a separate logger rather than a device.

Fixes #50
@dwbutler
Copy link
Owner

dwbutler commented Sep 8, 2015

Syslog support released in 0.14.0.

@dwbutler
Copy link
Owner

dwbutler commented Sep 8, 2015

@timbunce Give it a try and let me know how well it works for you.

@timbunce
Copy link
Author

timbunce commented Sep 9, 2015

Thanks! I'll let you know if I have any problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants