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 severity aliases #4763

Merged
merged 8 commits into from Jan 4, 2024
Merged

Add severity aliases #4763

merged 8 commits into from Jan 4, 2024

Conversation

bazsi
Copy link
Collaborator

@bazsi bazsi commented Dec 27, 2023

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.

@kira-syslogng
Copy link
Contributor

Build FAILURE

@kira-syslogng
Copy link
Contributor

Build FAILURE

Copy link
Collaborator

@alltilla alltilla left a 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.

scl/pgsql/pgsql.conf Outdated Show resolved Hide resolved
alltilla added a commit to bazsi/syslog-ng that referenced this pull request Jan 3, 2024
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
@alltilla
Copy link
Collaborator

alltilla commented Jan 3, 2024

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>
alltilla
alltilla previously approved these changes Jan 3, 2024
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
alltilla
alltilla previously approved these changes Jan 3, 2024
@alltilla
Copy link
Collaborator

alltilla commented Jan 3, 2024

Test CI run with a manually built devshell: https://github.com/alltilla/syslog-ng/actions/runs/7397098190

@alltilla
Copy link
Collaborator

alltilla commented Jan 3, 2024

Copyright check fail only, we should fix that and merge this with red CI:

error: missing license lib/severity-aliases.table (nonstandard license declaration?)

Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
@alltilla alltilla merged commit 8deaa37 into syslog-ng:master Jan 4, 2024
29 of 34 checks passed
fekete-robert pushed a commit to axoflow/axosyslog-core-docs that referenced this pull request Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants