3

I have a service (systemd unit) that logs very long messages (~700K), which means that the default LineMax setting of 48K doesn't suffice.

Setting the LineMax field to 1M in /etc/systemd/journald.conf does the trick, but this probably applies to all services running on the system.

Another way that works is to create a file /usr/lib/systemd/journald.conf.d/blah.conf that contains:

[Journal]
LineMax=1M

But this again seems to apply to all services running on the system (since I can name the file anything).

Is there any way to apply the LineMax configuration only to one specific service, and leave other services to use the default?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.