From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 0FB7C138A87 for ; Mon, 23 Feb 2015 00:21:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 313C9E0931; Mon, 23 Feb 2015 00:21:44 +0000 (UTC) Received: from mail-ig0-f178.google.com (mail-ig0-f178.google.com [209.85.213.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EE5C7E089D for ; Mon, 23 Feb 2015 00:21:42 +0000 (UTC) Received: by mail-ig0-f178.google.com with SMTP id hl2so14743577igb.5 for ; Sun, 22 Feb 2015 16:21:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=T1JzvEFcbLsS6GoimulOVdBMSqC6jru4wfy3ESAOkwI=; b=Nd1E3v0nPVp4mR4YvWPDlAL+isrgpRmlOl2niJyes+5ilLnF0uuNpwM7/oQdAzfEIA CS1jYDr+/krXWSJcArxylu6L9r2FfceZNINVzD6aDIaS8oWt/3cnGBrN0TVhCVBZgLru GXOjRcCj3YC5AGDoj1D6B4i5M5toOniFPWBO6F73Oc65VQBJbHjI6vnyEfiMIFdJMpKf PUIM7AG4jEf/7VIo/d7AC3anokPcMMXIB6zV23FUo3BDhKu8Jkb1jQNLEFz/21v60Sv8 uTjaQ8hmKFlwlKKO1H9fc5W/VBU6G+GHpREL4yRWYIXw6KzpaixjvL39MHjvSdttn7JA tMRQ== X-Received: by 10.42.33.66 with SMTP id h2mr8741515icd.7.1424650902454; Sun, 22 Feb 2015 16:21:42 -0800 (PST) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.107.149.149 with HTTP; Sun, 22 Feb 2015 16:21:21 -0800 (PST) In-Reply-To: <87r3thld7g.fsf@heimdali.yagibdah.de> References: <87lhjws8ci.fsf@heimdali.yagibdah.de> <87h9ujq7fx.fsf@heimdali.yagibdah.de> <4CEB3EFC-2048-4BD4-8BEC-E65C07D21045@stellar.eclipse.co.uk> <87r3thld7g.fsf@heimdali.yagibdah.de> From: =?UTF-8?B?Q2FuZWsgUGVsw6FleiBWYWxkw6lz?= Date: Sun, 22 Feb 2015 18:21:21 -0600 Message-ID: Subject: Re: [gentoo-user] syslog-ng: how to read the log files To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=bcaec517ceeef84842050fb662f5 X-Archives-Salt: a0bb17c4-c814-4a1a-8b95-8b481b881ca2 X-Archives-Hash: e8cf453b06ded2679698f36f3fc65687 --bcaec517ceeef84842050fb662f5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sun, Feb 22, 2015 at 6:48 PM, lee wrote: > > Stroller writes: > > > On Wed, 18 February 2015, at 8:40 pm, lee wrote: > >>>> > >>>> The log file seem to be some sort of binary that doesn't display too > >>>> well in less, and there doesn't seem to be any way to read them. > >>> > >>> I believe this may be bug 406623. > >>> > >>> https://bugs.gentoo.org/show_bug.cgi?id=3D406623 > >> > >> That's almost three years old and should apparently be fixed? > > > > It's only been closed in the last few weeks. > > Still I wonder why it took so long to fix it. > > > See for example, comment 36, November last year (i.e. 3 or 4 months old), "This isn't resolved unless commit f4ae768 is backported or >=3D3.5.6 is stabilised." > > > > https://bugs.gentoo.org/show_bug.cgi?id=3D406623#c36 > > > > Since you haven't told us what version of syslog-ng you're running, I think it's reasonable to suspect you've not updated it recently. > > The server was installed the week before the last, starting with the > latest live DVD. It has been updated. I can't tell what version it is > because it's at work. > > > Of course the characters could be left in your logfile from months ago, if you've not been rotating logs. > > > > If it's not that bug, though, you should prolly file a new one. > > Dunno, I've edited the file and removed the null characters. Time will > tell whether new ones will be logged or not. > > > IIUC, syslog-ng handles rotating the logs. Do I need to do something to > make it rotate them? syslog-ng, as long as I remember, has never rotated its logs. You need logrotate (or something similar) to do it for you. Regards. -- Canek Pel=C3=A1ez Vald=C3=A9s Profesor de asignatura, Facultad de Ciencias Universidad Nacional Aut=C3=B3noma de M=C3=A9xico --bcaec517ceeef84842050fb662f5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Sun, Feb 22, 2015 at 6:48 PM, lee <lee@yagibdah.de> wrote:
>
> Stroller &= lt;stroller@stellar.eclip= se.co.uk> writes:
>
> > On Wed, 18 February 2015, at = 8:40 pm, lee <lee@yagibdah.de>= wrote:
> >>>>
> >>>> The log file seem= to be some sort of binary that doesn't display too
> >>>= ;> well in less, and there doesn't seem to be any way to read them.<= br>> >>>
> >>> I believe this may be bug 406623.=
> >>>
> >>> https://bugs.gentoo.org/show_bug.cgi?id=3D4066= 23
> >>
> >> That's almost three years old = and should apparently be fixed?
> >
> > It's only bee= n closed in the last few weeks.
>
> Still I wonder why it took = so long to fix it.
>
> > See for example, comment 36, Novemb= er last year (i.e. 3 or 4 months old), "This isn't resolved unless= commit f4ae768 is backported or >=3D3.5.6 is stabilised."
> = >
> > https://bugs.gentoo.org/show_bug.cgi?id=3D406623#c36
> &g= t;
> > Since you haven't told us what version of syslog-ng you= 're running, I think it's reasonable to suspect you've not upda= ted it recently.
>
> The server was installed the week before t= he last, starting with the
> latest live DVD.=C2=A0 It has been updat= ed.=C2=A0 I can't tell what version it is
> because it's at w= ork.
>
> > Of course the characters could be left in your lo= gfile from months ago, if you've not been rotating logs.
> >> > If it's not that bug, though, you should prolly file a new = one.
>
> Dunno, I've edited the file and removed the null c= haracters.=C2=A0 Time will
> tell whether new ones will be logged or = not.
>
>
> IIUC, syslog-ng handles rotating the logs.=C2= =A0 Do I need to do something to
> make it rotate them?

syslog= -ng, as long as I remember, has never rotated its logs. You need logrotate = (or something similar) to do it for you.

Regards.
--
Canek Pel= =C3=A1ez Vald=C3=A9s
Profesor de asignatura, Facultad de Ciencias
Uni= versidad Nacional Aut=C3=B3noma de M=C3=A9xico

--bcaec517ceeef84842050fb662f5--