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 severity aliases #4763
Add severity aliases #4763
Conversation
Build FAILURE |
26325c0
to
fc1ec2e
Compare
Build FAILURE |
fc1ec2e
to
32f5475
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small comment, otherwise approve.
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
Pushed one commit with a packaging related news entry. |
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
…everity() Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
e18a99b
to
659a562
Compare
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
659a562
to
b1077f9
Compare
Test CI run with a manually built devshell: https://github.com/alltilla/syslog-ng/actions/runs/7397098190 |
Copyright check fail only, we should fix that and merge this with red CI:
|
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
7a15603
to
7866aea
Compare
This PR adds support for setting the syslog severity based on alternative names that are produced by applications. For example scl/pgsql or the ones in #4760
The ones we recognize are in lib/severity-aliases.table:
emerg, SYSLOG_SEVERITY_CODE(0)
emergency, SYSLOG_SEVERITY_CODE(0)
panic, SYSLOG_SEVERITY_CODE(0)
alert, SYSLOG_SEVERITY_CODE(1)
crit, SYSLOG_SEVERITY_CODE(2)
critical, SYSLOG_SEVERITY_CODE(2)
fatal, SYSLOG_SEVERITY_CODE(2)
err, SYSLOG_SEVERITY_CODE(3)
error, SYSLOG_SEVERITY_CODE(3)
warning, SYSLOG_SEVERITY_CODE(4)
warn, SYSLOG_SEVERITY_CODE(4)
notice, SYSLOG_SEVERITY_CODE(5)
info, SYSLOG_SEVERITY_CODE(6)
log, SYSLOG_SEVERITY_CODE(6)
debug, SYSLOG_SEVERITY_CODE(7)
But it's almost free to populate more.