New answers tagged

0

Parsing log-files on linux systems is generally not trivial as the slogan "syslog-compatible" is often mis-used (https://en.wikipedia.org/wiki/Syslog) and existing standardization attempts (https://tools.ietf.org/html/rfc3164, https://tools.ietf.org/html/rfc5424) are often ignored. There are existing log parsers, that might help you with the task. logstash ...


2

The log priority is not stored in /var/log/messages at all. Like its predecessors, rsyslog uses the priority as a hint to determine where to route any given log message. By default, it does not log the priority itself. However, the systemd journal does log the priority (and keeps a lot of other interesting metadata). You can use the -p option to journalctl ...



Top 50 recent answers are included