[systemd-devel] Store journal logs to different journals(location) based on Filters

Michael Biebl mbiebl at gmail.com
Wed Sep 20 11:24:22 UTC 2017


2017-09-20 8:13 GMT+02:00 P.R.Dinesh <pr.dinesh at gmail.com>:
> Is it possible to store journal logs matching specific filters to different
> journal files in addition to the main journal using some journald
> configurations?

No

> For eg.,  All journal logs of severity critical and above should be stored
> in /var/log/critical/critial.journal in addition to the main journal.

My recommendation would be to forward the log messages to your syslog
daemon (rsyslog, syslog-ng) and then use the filter mechanisms
provided by your syslog daemon to store the log messages into separate
files.


More information about the systemd-devel mailing list