RE: [EXTERNAL] Re: How to disable nm-dispatcher logs from Centos console.



Hi Thomas,
Can you please explain the procedure for configuring the syslog in Centos.for disabling the nm-dispatcher 
logs.

Thanks and Regards,
Vyshnav

-----Original Message-----
From: Thomas Haller [mailto:thaller redhat com] 
Sent: Friday, June 8, 2018 2:49 PM
To: Veetil, Vyshnav <Vyshnav Veetil harman com>; networkmanager-list gnome org
Cc: Maheshwari, Shagun <Shagun Maheshwari Harman com>
Subject: [EXTERNAL] Re: How to disable nm-dispatcher logs from Centos console.

On Fri, 2018-06-08 at 05:56 +0000, Veetil, Vyshnav wrote:
Hi,
After upgraded to CentOS7.4 we are getting some logs printed on the 
console.
Nm-dispatcher logs are getting printed on the console after every 
reboot and after executing the command
 
service NetworkManager restart.
 
NetworkManager-1.8.0-9.el7.x86_64 is the rpm which we are using in our 
system.
Please find the attached conf file ,which we are using .
 
 
Please find the nm-dispatcher logs getting printed on the console.
 
localhost login:nm-dispatcher:req:1 ‘hostname’:new request (4
scripts)
nm-dispatcher: req:2 ‘up’ [eth0]: new request (4 scripts)
nm-dispatcher: req:2 ‘up’ [eth0]: start running ordered scripts…
nm-dispatcher: req:3 ‘connectivity-change’: new request (4 scripts)
nm-dispatcher: req:4 ‘hostname’:new request (4 scripts)
nm-dispatcher: req:4 ‘hostname’:start running ordered scripts…

Hi,


These messages are printed by "nm-dispatcher" (in systemd, the service is called 
NetworkManager-dispatcher.service).

The NetwokManager.conf configuration primarily affects what NetworkManager itself (NetworkManager.service) 
prints.

With the additional behavior, that when you enable
  level=DEBUG|TRACE
  domains=DISPATCH (or ALL, or DEFAULT)
then also nm-dispatcher will log additional Debugging logs.


The logs you are seeing are logged by nm-dispatcher with info level.
These cannot be disabled.

Well, actually, nm-dispatcher uses syslog (journald).
The intended way to configure this, is by configuring syslog/journal accordingly.


For example, `man systemd.exec` explains a "LogLevelMax" parameter.
Though, I don't know if that is available on CentOS 7.4 (because it's rather new). But surely, there are ways 
to configure syslog...


best,
Thomas



Can you please provide a solution for disabling this logs from console 
?
 
Thanks and Regards,
Vyshnav
 
_______________________________________________
networkmanager-list mailing list
networkmanager-list gnome org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]