Message boards : Questions and problems : Log to file other than /var/log/messages
Message board moderation
Author | Message |
---|---|
Send message Joined: 9 Sep 20 Posts: 10 |
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? |
Send message Joined: 5 Sep 22 Posts: 38 |
I'm running a large server with 192 cores. Consequently, /var/log/messages gets cluttered with messages of started and finished tasks. 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 |
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.