1 |
Hi Mark.. I made the proper changes and still not working.. :( |
2 |
|
3 |
# vi /etc/syslog-ng/syslog-ng.conf |
4 |
options { |
5 |
chain_hostnames(off); |
6 |
sync(0); |
7 |
perm(0640); |
8 |
dir_perm(0750); |
9 |
create_dirs(yes); |
10 |
stats(43200); |
11 |
} |
12 |
|
13 |
source src { unix-stream("/dev/log"); internal(); pipe("/proc/kmsg"); }; |
14 |
source kernsrc { pipe("/proc/kmsg"); }; |
15 |
destination messages { file("/var/log/messages"); }; |
16 |
destination daemon { file("/var/log/daemon.log"); }; |
17 |
filter f_daemon { facility(daemon); }; |
18 |
|
19 |
destination console_all { file("/dev/tty12"); }; |
20 |
|
21 |
log { source(src); filter(f_daemon); destination(daemon); }; |
22 |
log { source(src); destination(messages); }; |
23 |
log { source(src); destination(console_all); }; |
24 |
|
25 |
|
26 |
What is wrong? |
27 |
|
28 |
|
29 |
2006/6/4, Mick <michaelkintzios@×××××.com>: |
30 |
> On 03/06/06, Leandro Melo de Sales <leandroal@×××××.com> wrote: |
31 |
> > I'm using syslog-ng |
32 |
> > |
33 |
> > 2006/6/3, Daniel da Veiga <danieldaveiga@×××××.com>: |
34 |
> > > On 6/3/06, Leandro Melo de Sales <leandroal@×××××.com> wrote: |
35 |
> > > > Hi, |
36 |
> > > > |
37 |
> > > > I can't find /var/log/daemon... Every time a service is stopped or |
38 |
> |
39 |
> I have this in my /var/log/ directory: |
40 |
> ============================== |
41 |
> -rw-r----- 1 root root 116223 Jun 3 18:08 daemon.log |
42 |
> ============================== |
43 |
> |
44 |
> In addition, check the extract from my /etc/syslog-ng/syslog-ng.conf |
45 |
> (which created the daemon.log file in the first place): |
46 |
> ============================== |
47 |
> options { |
48 |
> chain_hostnames(off); |
49 |
> sync(0); |
50 |
> |
51 |
> perm(0640); |
52 |
> dir_perm(0750); |
53 |
> create_dirs(yes); |
54 |
> |
55 |
> [snip . . . ] |
56 |
> stats(43200); |
57 |
> }; |
58 |
> |
59 |
> source src { unix-stream("/dev/log"); internal(); pipe("/proc/kmsg"); }; |
60 |
> source kernsrc { pipe("/proc/kmsg"); }; |
61 |
> |
62 |
> [snip . . . ] |
63 |
> destination daemon { file("/var/log/daemon.log"); }; |
64 |
> |
65 |
> [snip . . . ] |
66 |
> #create filters |
67 |
> filter f_daemon { facility(daemon); }; |
68 |
> |
69 |
> [snip . . . ] |
70 |
> #connect filter and destination |
71 |
> log { source(src); filter(f_daemon); destination(daemon); }; |
72 |
> ============================== |
73 |
> |
74 |
> Adding this in /etc/logrotate.conf ensures that the |
75 |
> /var/log/daemon.log file size does not get out of hand: |
76 |
> ============================== |
77 |
> # when /var/log/daemon.log gets big |
78 |
> /var/log/daemon.log |
79 |
> { |
80 |
> rotate 1 |
81 |
> weekly |
82 |
> size=1M |
83 |
> } |
84 |
> ============================== |
85 |
> |
86 |
> Of course the latter is only relevant if you are using logrotate. |
87 |
> |
88 |
> HTH. |
89 |
> -- |
90 |
> Regards, |
91 |
> Mick |
92 |
> -- |
93 |
> gentoo-user@g.o mailing list |
94 |
> |
95 |
> |
96 |
-- |
97 |
gentoo-user@g.o mailing list |