Gentoo Archives: gentoo-user

From: "Canek Peláez Valdés" <caneko@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] syslog-ng: how to read the log files
Date: Mon, 23 Feb 2015 00:21:48
Message-Id: CADPrc82BV-TeajD26ocmkbqU0oDkhDDFx9h06p-oS4KtGuVhpw@mail.gmail.com
In Reply to: Re: [gentoo-user] syslog-ng: how to read the log files by lee
1 On Sun, Feb 22, 2015 at 6:48 PM, lee <lee@××××××××.de> wrote:
2 >
3 > Stroller <stroller@××××××××××××××××××.uk> writes:
4 >
5 > > On Wed, 18 February 2015, at 8:40 pm, lee <lee@××××××××.de> wrote:
6 > >>>>
7 > >>>> The log file seem to be some sort of binary that doesn't display too
8 > >>>> well in less, and there doesn't seem to be any way to read them.
9 > >>>
10 > >>> I believe this may be bug 406623.
11 > >>>
12 > >>> https://bugs.gentoo.org/show_bug.cgi?id=406623
13 > >>
14 > >> That's almost three years old and should apparently be fixed?
15 > >
16 > > It's only been closed in the last few weeks.
17 >
18 > Still I wonder why it took so long to fix it.
19 >
20 > > See for example, comment 36, November last year (i.e. 3 or 4 months
21 old), "This isn't resolved unless commit f4ae768 is backported or >=3.5.6
22 is stabilised."
23 > >
24 > > https://bugs.gentoo.org/show_bug.cgi?id=406623#c36
25 > >
26 > > Since you haven't told us what version of syslog-ng you're running, I
27 think it's reasonable to suspect you've not updated it recently.
28 >
29 > The server was installed the week before the last, starting with the
30 > latest live DVD. It has been updated. I can't tell what version it is
31 > because it's at work.
32 >
33 > > Of course the characters could be left in your logfile from months ago,
34 if you've not been rotating logs.
35 > >
36 > > If it's not that bug, though, you should prolly file a new one.
37 >
38 > Dunno, I've edited the file and removed the null characters. Time will
39 > tell whether new ones will be logged or not.
40 >
41 >
42 > IIUC, syslog-ng handles rotating the logs. Do I need to do something to
43 > make it rotate them?
44
45 syslog-ng, as long as I remember, has never rotated its logs. You need
46 logrotate (or something similar) to do it for you.
47
48 Regards.
49 --
50 Canek Peláez Valdés
51 Profesor de asignatura, Facultad de Ciencias
52 Universidad Nacional Autónoma de México