forked from syslog-ng/syslog-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request syslog-ng#5016 from therandomstring/filter-sev-num…
…eric-fix Add numeric value setting to level filter
- Loading branch information
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
`filter`: Added numerical severity settings. | ||
|
||
The `level` filter option now accepts numerical values similar to `facility`. | ||
|
||
Example config: | ||
``` | ||
filter f_severity { | ||
level(4) | ||
}; | ||
``` | ||
This is equivalent to | ||
``` | ||
filter f_severity { | ||
level("warning") | ||
}; | ||
``` | ||
|
||
For more information, consult the [documentation](https://syslog-ng.github.io/admin-guide/080_Log/030_Filters/005_Filter_functions/004_level_priority.html). |