1 |
On Fri, 2010-01-29 at 17:29 +0200, Alan McKinnon wrote: |
2 |
> On Friday 29 January 2010 16:26:42 Iain Buchanan wrote: |
3 |
|
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 incoming |
13 |
> 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; filter_rule='f_networkmanager' |
25 |
Feb 2 11:12:59 orpheus syslog-ng[3739]: Filter node evaluation result; filter_result='not-match' |
26 |
Feb 2 11:12:59 orpheus syslog-ng[3739]: Filter rule evaluation result; filter_result='not-match', filter_rule='f_networkmanager' |
27 |
|
28 |
my syslog conf is directing network manager to a separate file: |
29 |
|
30 |
@version: 3.0 |
31 |
# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.conf.gentoo.3.0,v 1.1 2009/05/25 20:07:21 mr_bones_ Exp $ |
32 |
# |
33 |
# Syslog-ng default configuration file for Gentoo Linux |
34 |
|
35 |
options { |
36 |
chain_hostnames(no); |
37 |
|
38 |
# The default action of syslog-ng is to log a STATS line |
39 |
# to the file every 10 minutes. That's pretty ugly after a while. |
40 |
# Change it to every 12 hours so you get a nice daily update of |
41 |
# how many messages syslog-ng missed (0). |
42 |
stats_freq(43200); |
43 |
}; |
44 |
|
45 |
source src { |
46 |
unix-stream("/dev/log" max-connections(256)); |
47 |
internal(); |
48 |
file("/proc/kmsg"); |
49 |
}; |
50 |
|
51 |
destination messages { file("/var/log/messages"); }; |
52 |
|
53 |
# By default messages are logged to tty12... |
54 |
destination console_all { file("/dev/tty12"); }; |
55 |
# ...if you intend to use /dev/console for programs like xconsole |
56 |
# you can comment out the destination line above that references /dev/tty12 |
57 |
# and uncomment the line below. |
58 |
#destination console_all { file("/dev/console"); }; |
59 |
|
60 |
# NetworkManager log to different file |
61 |
log { |
62 |
source(src); |
63 |
filter(f_networkmanager); |
64 |
destination(df_networkmanager); |
65 |
flags(final); |
66 |
}; |
67 |
log { source(src); destination(messages); }; |
68 |
log { source(src); destination(console_all); }; |
69 |
|
70 |
filter f_networkmanager { program("NetworkManager"); }; |
71 |
destination df_networkmanager { file("/var/log/NetworkManager.log"); }; |
72 |
|
73 |
any ideas? thanks, |
74 |
-- |
75 |
Iain Buchanan <iaindb at netspace dot net dot au> |
76 |
|
77 |
A synonym is a word you use when you can't spell the word you first |
78 |
thought of. |
79 |
-- Burt Bacharach |