get_log_sources() now also returns forwarding, read in the same command (no extra round trip):
rsyslog: whether rsyslogd runs.
rules: its forwarding rules.
Both syntaxes are read: legacy @/@@/:omrelp: with & and property filters, and RainerScript action(type="omfwd"|"omrelp") inside if … then and ruleset(…) { … }.
Each rule carries protocol, target, port, selector and ruleset.
A rule is complete only for *.*/*.debug with no condition around it.
file_inputs: its imfile inputs (input(type="imfile"), $InputFileName), with their ruleset.
journal: whether the journal reaches rsyslog.
True through imjournal.
Through imuxsock it depends on journald's ForwardToSyslog: the last setting across journald.conf and its drop-ins, else the default the distribution ships commented out. None when nothing says.
The rsyslog configuration is printed with each line behind | , so no line of it can read as a report section. parse_log_forwarding and parse_rsyslog are public. Version 4.31.0.
Tests: 1407 passed, ruff, mypy. A live run on an Ubuntu host found Ubuntu's own ForwardToSyslog=yes drop-in in /usr/lib/systemd/journald.conf.d/.
For NetOrk/netork#2053: the *read by* column of netOrk's log lists.
`get_log_sources()` now also returns `forwarding`, read in the same command (no extra round trip):
- `rsyslog`: whether rsyslogd runs.
- `rules`: its forwarding rules.
- Both syntaxes are read: legacy `@`/`@@`/`:omrelp:` with `&` and property filters, and RainerScript `action(type="omfwd"|"omrelp")` inside `if … then` and `ruleset(…) { … }`.
- Each rule carries protocol, target, port, selector and ruleset.
- A rule is `complete` only for `*.*`/`*.debug` with no condition around it.
- `file_inputs`: its `imfile` inputs (`input(type="imfile")`, `$InputFileName`), with their ruleset.
- `journal`: whether the journal reaches rsyslog.
- True through `imjournal`.
- Through `imuxsock` it depends on journald's `ForwardToSyslog`: the last setting across `journald.conf` and its drop-ins, else the default the distribution ships commented out. None when nothing says.
The rsyslog configuration is printed with each line behind `| `, so no line of it can read as a report section. `parse_log_forwarding` and `parse_rsyslog` are public. Version 4.31.0.
Tests: 1407 passed, ruff, mypy. A live run on an Ubuntu host found Ubuntu's own `ForwardToSyslog=yes` drop-in in `/usr/lib/systemd/journald.conf.d/`.
get_log_sources() reads, in the same command, whether rsyslog runs, its
forwarding rules (legacy @/@@/:omrelp: and RainerScript omfwd/omrelp,
with selector, ruleset and whether they take every message), its imfile
inputs, and whether the journal reaches it (imjournal, or imuxsock with
journald's ForwardToSyslog; failing a setting, the default the
distribution ships commented out). Returned as `forwarding`;
parse_log_forwarding and parse_rsyslog are public (NetOrk/netork#2053).
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
For NetOrk/netork#2053: the read by column of netOrk's log lists.
get_log_sources()now also returnsforwarding, read in the same command (no extra round trip):rsyslog: whether rsyslogd runs.rules: its forwarding rules.@/@@/:omrelp:with&and property filters, and RainerScriptaction(type="omfwd"|"omrelp")insideif … thenandruleset(…) { … }.completeonly for*.*/*.debugwith no condition around it.file_inputs: itsimfileinputs (input(type="imfile"),$InputFileName), with their ruleset.journal: whether the journal reaches rsyslog.imjournal.imuxsockit depends on journald'sForwardToSyslog: the last setting acrossjournald.confand its drop-ins, else the default the distribution ships commented out. None when nothing says.The rsyslog configuration is printed with each line behind
|, so no line of it can read as a report section.parse_log_forwardingandparse_rsyslogare public. Version 4.31.0.Tests: 1407 passed, ruff, mypy. A live run on an Ubuntu host found Ubuntu's own
ForwardToSyslog=yesdrop-in in/usr/lib/systemd/journald.conf.d/.