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

Proper RFC Logging #34

Open
faultyserver opened this issue Mar 30, 2017 · 2 comments
Open

Proper RFC Logging #34

faultyserver opened this issue Mar 30, 2017 · 2 comments
Milestone

Comments

@faultyserver
Copy link
Member

RFC 5424 defines the syslog logging format, which helps create more searchable and analyzable logs.

The syslogger gem is a Ruby Logger that outputs logs according to this format.

It'd be nice to log each event from Shark in this format. More than just making the logs more searchable, it also helps group multi-line output from one event into a single record, which could greatly help with debugging with live data.

That said, I don't know how well this will work with the rotating log system we currently have in production.

@faultyserver faultyserver added this to the v1.1 milestone Mar 30, 2017
@elliottwilliams
Copy link
Member

That looks pretty helpful. I don't anticipate this would pose any issues regarding logging with systemd like we are doing now, since shark logs to stdout.

@faultyserver
Copy link
Member Author

It turns out that Ruby has a core library for syslogs. That might be more simple to start with, but the docs don't make it look very easy to use.

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