Network Manager is too verbose in syslog

Alexander Skwar listen at alexander.skwar.name
Thu Jul 6 19:30:46 UTC 2006


Mario Vukelic schrieb:
> On Mon, 2006-07-03 at 21:33 +0200, Alexander Skwar wrote:
>> How and where do I configure how wpa_supplicant is to be executed? Or
>> how do I make wpa_supplicant be less verbose (which would mean to
>> *NOT*
>> run it with "-dd"...)?
> 
> Good question. My wireless connect terminates every one to three days
> for unknown reasons, and the extremely verbose log made it impossible
> for me so far to spot the important stuff.

As a workaround, I now installed syslog-ng, which replaced syslogd and klogd.
In the configuration of syslog-ng, it's possible to filter out messages
coming from a certain program and store those messages in a seperate file (which
could very well be /dev/null *G*).

To do so, I added this to /etc/syslog-ng/syslog-ng.conf:

filter f_networkmanager { program("NetworkManager"); };
destination df_networkmanager { file("/var/log/NetworkManager.log"); };

And I also added this *BEFORE* the first log statement:

# NetworkManager Meldungen herausfiltern und in seperater Datei speichern
log {
         source(s_all);
         filter(f_networkmanager);
         destination(df_networkmanager);
         flags(final);
};

It's important to have this first, as the "flags(final);" statement
will stop processing of messages which match the criteria.

For reference, I'll attach the file. If it doesn't make its way
through, it can be found on <http://askwar.pastebin.ca/80729>.

Alexander Skwar
-- 
Vaterland nennt der Staat immer dann, wenn er sich anschickt, auf
Menschenmord auszugehen.
                 -- Friedrich Dürrenmatt (Romulus der Große)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: syslog-ng.conf
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20060706/8681cbb1/attachment.ksh>


More information about the ubuntu-users mailing list