Thread 'Log to file other than /var/log/messages'

Message boards : Questions and problems : Log to file other than /var/log/messages
Message board moderation

To post messages, you must log in.

AuthorMessage
JWMED

Send message
Joined: 9 Sep 20
Posts: 10
Germany
Message 110225 - Posted: 25 Oct 2022, 13:42:48 UTC

I'm running a large server with 192 cores. Consequently, /var/log/messages gets cluttered with messages of started and finished tasks.

Is there a setting somewhere which would use a different file for this output, or suppress it altogether?
ID: 110225 · Report as offensive
hadron

Send message
Joined: 5 Sep 22
Posts: 38
Canada
Message 110228 - Posted: 25 Oct 2022, 16:34:38 UTC - in response to Message 110225.  

I'm running a large server with 192 cores. Consequently, /var/log/messages gets cluttered with messages of started and finished tasks.

Is there a setting somewhere which would use a different file for this output, or suppress it altogether?


What logging facility does that server use? If it is rsyslog (most likely), as root create /etc/rsyskog.d/boinc.frule as follows:

if ($programname == 'boinc') \
then {
-/var/log/boinc-client.log
stop
}

If you wish to suppress boinc logging (not really recommended, unless you are certain you will never have a problem), then simply omit the filename:

if ($programname == 'boinc') \
then {
stop
}

In either instance, it will be necessary to reload the rsyslog service: systemctl reload rsyslog.service
ID: 110228 · Report as offensive

Message boards : Questions and problems : Log to file other than /var/log/messages

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.