0

I can do the following to get local3 logs:

journalctl SYSLOG_FACILITY=19

The magic number 19 is uterly confusing. How can I do the following:

journalctl WHAT_TO_PUT_HERE=local3

?

I do not see anything helpful in man journalctl or journalct -n10 -ojson | jq | less.

2
  • It's probably not possible, but keep in mind that the syslog facilities are standardized. See, for example, en.wikipedia.org/wiki/Syslog. May 5, 2023 at 9:31
  • Syslog been with us for 30 years, it is standardized. One more reason a command like journalctl could support it. Maybe there is a $(translate_syslog local3) command, like errno ENOTSUP from moreutils?
    – KamilCuk
    May 5, 2023 at 9:39

1 Answer 1

1

I do not see anything helpful in man journalctl

There is a --facility option:

journalctl --facility=local3
1
  • Be aware this option was only added in systemd version 245 which means it's most likely not present in a downstream RedHat build. Apr 10 at 20:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .