Select exact err messages from every facility, excluding crit, alert, and emerg.
Which selector is appropriate?
Putting = before a priority requests an exact match, so *.=err selects only err.
Detailed explanation
*.errIncorrect. *.err also includes more severe priorities.
*.!errIncorrect. *.!err excludes err.
*.=errCorrect. *.=err matches only err.
err.=*Incorrect. It reverses facility and priority syntax.
Try it yourself
An example you can run in a temporary verification environment.
printf '%s
' '*.=err' | awk -F. '{print $2}'Expected result
=errKey points
- = means exact
- No equals means threshold
- ! means exclusion
Notes
- Environment: POSIX awk / 模擬selectorのみ
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Syslog facility and priority
Metadata that classifies a message source and its severity.
Journal persistence
Whether systemd journal data survives a reboot and where it is stored.
Log rotation
A process that retains, renames, compresses, or removes log generations.