Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] mysterious syslog message "."
Date: Tue, 02 Feb 2010 23:10:54
Message-Id: 201002022310.09388.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] mysterious syslog message "." by Iain Buchanan
1 On Tuesday 02 February 2010 02:06:14 Iain Buchanan wrote:
2 > On Fri, 2010-01-29 at 17:29 +0200, Alan McKinnon wrote:
3 > > On Friday 29 January 2010 16:26:42 Iain Buchanan wrote:
4 > > > I don't really care about any killswitch operation, but I'm interested
5 > > > in why I'm getting a "." message. NetworkManager bug or
6 > > > misconfiguration error?
7 > >
8 > > Run syslog-ng with the -d switch to enable it's debug output (normally to
9 > > messages), or use -dd to get even more debug output.
10 > >
11 > > Beware, this adds up real quick, so don't run it for long like that. The
12 > > output may give you more of a clue as to what syslog-ng thinks the
13 > > incoming messages are.
14 >
15 > Holy Debug Messages, Batman! Sure does add up real quick.
16 >
17 > 56,599 messages all with the same timestamp Feb 2 11:13:00; 100% cpu
18 > usage, and 200+Mb before I killed it.
19 >
20 > Shirley that's not right?
21 >
22 > The 50k of messages all look like this:
23 >
24 > Feb 2 11:12:59 orpheus syslog-ng[3739]: Filter rule evaluation begins;
25 > filter_rule='f_networkmanager' Feb 2 11:12:59 orpheus syslog-ng[3739]:
26 > Filter node evaluation result; filter_result='not-match' Feb 2 11:12:59
27 > orpheus syslog-ng[3739]: Filter rule evaluation result;
28 > filter_result='not-match', filter_rule='f_networkmanager'
29 >
30 > my syslog conf is directing network manager to a separate file:
31 >
32 > @version: 3.0
33 > # $Header:
34 > /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.conf.gentoo.3.
35 > 0,v 1.1 2009/05/25 20:07:21 mr_bones_ Exp $ #
36 > # Syslog-ng default configuration file for Gentoo Linux
37 >
38 > options {
39 > chain_hostnames(no);
40 >
41 > # The default action of syslog-ng is to log a STATS line
42 > # to the file every 10 minutes. That's pretty ugly after a while.
43 > # Change it to every 12 hours so you get a nice daily update of
44 > # how many messages syslog-ng missed (0).
45 > stats_freq(43200);
46 > };
47 >
48 > source src {
49 > unix-stream("/dev/log" max-connections(256));
50 > internal();
51 > file("/proc/kmsg");
52 > };
53 >
54 > destination messages { file("/var/log/messages"); };
55 >
56 > # By default messages are logged to tty12...
57 > destination console_all { file("/dev/tty12"); };
58 > # ...if you intend to use /dev/console for programs like xconsole
59 > # you can comment out the destination line above that references /dev/tty12
60 > # and uncomment the line below.
61 > #destination console_all { file("/dev/console"); };
62 >
63 > # NetworkManager log to different file
64 > log {
65 > source(src);
66 > filter(f_networkmanager);
67 > destination(df_networkmanager);
68 > flags(final);
69 > };
70 > log { source(src); destination(messages); };
71 > log { source(src); destination(console_all); };
72 >
73 > filter f_networkmanager { program("NetworkManager"); };
74
75 Could it be that "NetworkManager" should be "networkmanager"? Also try it
76 without " " and see if it fixes it.
77
78 > destination df_networkmanager { file("/var/log/NetworkManager.log"); };
79
80 Have you already created this file?
81
82 > any ideas? thanks,
83 >
84
85 --
86 Regards,
87 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature