[systemd-devel] logging for socket-based services
Mantas Mikulėnas
grawity at gmail.com
Tue Aug 23 05:11:25 UTC 2022
As far as I know, only "[Service] LogLevelMax=notice" can hide those
messages, but it also has the side effect of discarding *all* lower-level
log messages generated by the service (even through syslog or journal
APIs), so IMO it's kind of a last-resort option.
But if your services receive so many connections that these messages are
overwhelming the system logs, they should probably be rewritten to accept
connections internally (i.e. use systemd Accept=no or xinetd wait=yes, so
that the service will receive the "listener" sockets from systemd, put them
in a regular event loop) instead of starting a new instance for each
connection.
On Mon, Aug 22, 2022 at 9:15 PM Allison Sherburne <
allison.k.sherburne at gmail.com> wrote:
> Hello,
>
> I have recently ported a number of xinetd services to systemd socket-based
> services. The services are working as expected but my logs are now flooded
> with "systemd: Started ..." messages. Is there any way to tune the logging
> for these services to filter out these entries?
>
--
Mantas Mikulėnas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20220823/7bc516c4/attachment.htm>
More information about the systemd-devel
mailing list