[opensuse] Samba smbd and nmbd log severity
Hello! Using openSUSE Leap 15.1, samba's smbd and nmbd log their successful boot with a high severity, i.e. log level 3, which is for errors. As I have configured my logging server to notify me by mail on all error, having smb and nmb logging their status as error is not desirable. Can please someone point me to an option where the severity (not the log level) of samba's status messages can be configured? Details: See output of `journalctl -b _COMM=nmbd -p 3 -q` ``` Jun 15 10:35:25 $HOSTNAME nmbd[1584]: [2020/06/15 10:35:24.425773, 0] ../lib/util/become_daemon.c:138(daemon_ready) Jun 15 10:35:25 $HOSTNAME nmbd[1584]: daemon_ready: STATUS=daemon 'nmbd' finished starting up and ready to serve connections Jun 15 10:35:48 $HOSTNAME nmbd[1584]: [2020/06/15 10:35:48.486197, 0] ../source3/nmbd/nmbd_become_lmb.c:397(become_local_master_stage2) Jun 15 10:35:48 $HOSTNAME nmbd[1584]: ***** Jun 15 10:35:48 $HOSTNAME nmbd[1584]: Jun 15 10:35:48 $HOSTNAME nmbd[1584]: Samba name server $HOSTNAME is now a local master browser for workgroup $WORKGROUP on subnet 192.168.x.x Jun 15 10:35:48 $HOSTNAME nmbd[1584]: Jun 15 10:35:48 $HOSTNAME nmbd[1584]: ***** ``` which IMHO should be empty, due to '-p 3' which limits output to severity "Error" or worse. best regards Thomas -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 El 2020-06-15 a las 11:19 +0200, Thomas Wagner escribió:
Hello!
Using openSUSE Leap 15.1, samba's smbd and nmbd log their successful boot with a high severity, i.e. log level 3, which is for errors.
As I have configured my logging server to notify me by mail on all error, having smb and nmb logging their status as error is not desirable. Can please someone point me to an option where the severity (not the log level) of samba's status messages can be configured?
In general, this can only be changed on the source code, it is a bug. In general, I have not looked at Samba. But, depending on the syslog daemon you use, you can filter out those events. If you only use the journal, I don't know if it is possible. - -- Cheers Carlos E. R. (from openSUSE 15.1 (Legolas)) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCXuetfBwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfVbVMAnjjRxRd0G6f2z+jdpIXj Wo+sihTPAJ4straC3oyg4UXXMoZqepunefwPdA== =fD5O -----END PGP SIGNATURE-----
participants (2)
-
Carlos E. R.
-
Thomas Wagner