1 |
On Monday 09 Feb 2015 10:19:20 Alan McKinnon wrote: |
2 |
> On 09/02/2015 11:48, Alan Mackenzie wrote: |
3 |
> > Hello, Gentoo! |
4 |
> > |
5 |
> > I've pretty much got my new system up and running. It took me less than |
6 |
> > a week (compared with the month it took me when I first installed Gentoo |
7 |
> > a few years ago). The most time consuming bit was getting my email |
8 |
> > server (qmail) going. I've still got to go through my old |
9 |
> > /var/lib/portage/world file, and see which packages I had I still want |
10 |
> > installed. |
11 |
> > |
12 |
> > However, I don't seem to have a system log. There is no file named |
13 |
> > /var/log/syslog, or anything like it. |
14 |
> > |
15 |
> > I've got syslog-ng installed, and "rc-update show" shows that it is |
16 |
> > in runlevel default. Indeed, there exists /var/run/syslog-ng.pid and |
17 |
> > /var/run/syslog-ng.ctl. But no /var/log/syslog, if that's what the |
18 |
> > logfile is indeed called. (The syslog-ng manpages don't make this |
19 |
> > clear.) |
20 |
> > |
21 |
> > Do I actually need to configure the name of a log file in |
22 |
> > /etc/conf.d/syslog-ng? The Gentoo installation guide didn't mention, or |
23 |
> > even hint at, such being necessary. |
24 |
> > |
25 |
> > Clearly, I'm missing something obvious here. What is it? |
26 |
> > |
27 |
> > Thanks in advance for the help. |
28 |
> |
29 |
> Gentoo defaults to calling it /var/log/messages |
30 |
> |
31 |
> (it's also constantly tailed on vt12, just in case you need to see |
32 |
> what's going on it right now) |
33 |
|
34 |
I noticed the same on a recent installation. /var/log/syslog is not created |
35 |
by default any more, when installing syslog-ng. I haven't looked in the |
36 |
/etc/syslog-ng/syslog-ng.conf file of the new install to see what's different, |
37 |
but it used to be that something like this would do the trick: |
38 |
============================================================= |
39 |
destination d_syslog { file("/var/log/syslog"); }; |
40 |
|
41 |
filter f_syslog { not facility(authpriv, mail); } |
42 |
|
43 |
log { source(src); filter(f_syslog); destination(d_syslog); }; |
44 |
============================================================= |
45 |
|
46 |
I am not sure if the format has changed since the last time I looked at it. |
47 |
|
48 |
-- |
49 |
Regards, |
50 |
Mick |