From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-user+bounces-162222-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id F1137138A1A
	for <garchives@archives.gentoo.org>; Tue, 17 Feb 2015 19:46:05 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 1D8C5E083E;
	Tue, 17 Feb 2015 19:46:01 +0000 (UTC)
Received: from mail-la0-f41.google.com (mail-la0-f41.google.com [209.85.215.41])
	(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 C4BCFE0804
	for <gentoo-user@lists.gentoo.org>; Tue, 17 Feb 2015 19:45:59 +0000 (UTC)
Received: by lams18 with SMTP id s18so37951709lam.13
        for <gentoo-user@lists.gentoo.org>; Tue, 17 Feb 2015 11:45:58 -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=D0cpGtLWBT8yywtc2IOLlZJutIybfou++AnqHPmdAH4=;
        b=ED4wT89YzrK4BEZPv8kTR1MoeHGfEqS6scVmbvHTinqLwdHFtCM4JvZCwPKPRaUNha
         GH8O1S7QEKoddlgNrCTQFM2AJoP5AQmiSHEcDYHy89mFR5w3RihTpAhwSEmp92BKKv9Q
         2HZNvBYTuL6GiTHrjC+0edeJi12HOR/ufeA14qx+P4X1EI8Gt4qPcZquCRj6Yp0mrYZI
         53jicXBnK+D9UzsiWZiPkgUmdfixP/XoXke2m51A2ac66Rus8U3qXEFWFiZ2x7DcnZtZ
         GmPC6gZvkiXqCbwsRLAYG903ZFJh9YwKvzSUNIucuDFwM8LT2T1y/5/cgqQzX8+SUuR/
         l38A==
X-Received: by 10.152.161.232 with SMTP id xv8mr30520010lab.15.1424202358304;
 Tue, 17 Feb 2015 11:45:58 -0800 (PST)
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Received: by 10.114.77.38 with HTTP; Tue, 17 Feb 2015 11:45:38 -0800 (PST)
In-Reply-To: <28267.1424201355@ccs.covici.com>
References: <87lhjws8ci.fsf@heimdali.yagibdah.de> <CAJ1xhMW7xLROrgcz+iuNUvSVSt6x7AZ6i_L8G6ab7Ux3hJg4wA@mail.gmail.com>
 <28267.1424201355@ccs.covici.com>
From: =?UTF-8?B?Q2FuZWsgUGVsw6FleiBWYWxkw6lz?= <caneko@gmail.com>
Date: Tue, 17 Feb 2015 13:45:38 -0600
Message-ID: <CADPrc83H3NAwVro7srsPvWNV_yiWSnTXStcJCwvqwWVCJTCkVw@mail.gmail.com>
Subject: Re: [gentoo-user] syslog-ng: how to read the log files
To: gentoo-user@lists.gentoo.org
Content-Type: multipart/alternative; boundary=001a113461f2a7b621050f4df333
X-Archives-Salt: cc112c19-31fd-4208-a8c4-56569c3e08a7
X-Archives-Hash: 71810afce4fbb0a680ab9d72f68bf514

--001a113461f2a7b621050f4df333
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Tue, Feb 17, 2015 at 2:29 PM, <covici@ccs.covici.com> wrote:
>
> Alexander Kapshuk <alexander.kapshuk@gmail.com> wrote:
>
> > On Tue, Feb 17, 2015 at 8:26 PM, lee <lee@yagibdah.de> wrote:
> >
> > > Hi,
> > >
> > > how do you read the log files when using syslog-ng?
> > >
> > > 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.
> > >
> > >
> > > --
> > > Again we must be afraid of speaking of daemons for fear that daemons
> > > might swallow us.  Finally, this fear has become reasonable.
> > >
> > >
> > If you're talking about /var/log/messages, which is:
> > messages: data
> >
> > I use cat(1).
>
> I wonder if the OP is using systemd and trying to read the journal
> files?

Those live under /var/lib/journal (which you need to create; Gentoo doesn't
do it by default last time I saw), in the directory named after the machine
ID (cat /etc/machine-id). And there are several journal files, of the kind:

system@1df50cd49c7f4a089c9414561f65aac7-000000000006f091-000507235df68768.j=
ournal

I think it would be really difficult to mix up that with /var/log/messages.

I think it's just that some part of /var/log/messages got corrupted
(happens a lot of times), and therefore /usr/bin/less identifies it as a
binary files since it contains non-printable characters.

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

--001a113461f2a7b621050f4df333
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Tue, Feb 17, 2015 at 2:29 PM, &lt;<a href=3D"mailto:cov=
ici@ccs.covici.com">covici@ccs.covici.com</a>&gt; wrote:<br>&gt;<br>&gt; Al=
exander Kapshuk &lt;<a href=3D"mailto:alexander.kapshuk@gmail.com">alexande=
r.kapshuk@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt; &gt; On Tue, Feb 17, 201=
5 at 8:26 PM, lee &lt;<a href=3D"mailto:lee@yagibdah.de">lee@yagibdah.de</a=
>&gt; wrote:<br>&gt; &gt;<br>&gt; &gt; &gt; Hi,<br>&gt; &gt; &gt;<br>&gt; &=
gt; &gt; how do you read the log files when using syslog-ng?<br>&gt; &gt; &=
gt;<br>&gt; &gt; &gt; The log file seem to be some sort of binary that does=
n&#39;t display too<br>&gt; &gt; &gt; well in less, and there doesn&#39;t s=
eem to be any way to read them.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt;=
 &gt; &gt; --<br>&gt; &gt; &gt; Again we must be afraid of speaking of daem=
ons for fear that daemons<br>&gt; &gt; &gt; might swallow us.=C2=A0 Finally=
, this fear has become reasonable.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&=
gt; &gt; If you&#39;re talking about /var/log/messages, which is:<br>&gt; &=
gt; messages: data<br>&gt; &gt;<br>&gt; &gt; I use cat(1).<br>&gt;<br>&gt; =
I wonder if the OP is using systemd and trying to read the journal<br>&gt; =
files?<br><br>Those live under /var/lib/journal (which you need to create; =
Gentoo doesn&#39;t do it by default last time I saw), in the directory name=
d after the machine ID (cat /etc/machine-id). And there are several journal=
 files, of the kind:<div><br></div><div>system@1df50cd49c7f4a089c9414561f65=
aac7-000000000006f091-000507235df68768.journal<br><div><br></div><div>I thi=
nk it would be really difficult to mix up that with /var/log/messages.</div=
><div><br></div><div>I think it&#39;s just that some part of=C2=A0/var/log/=
messages got corrupted (happens a lot of times), and therefore /usr/bin/les=
s identifies it as a binary files since it contains non-printable character=
s.<br><br>Regards.<br>--<br>Canek Pel=C3=A1ez Vald=C3=A9s<br>Profesor de as=
ignatura, Facultad de Ciencias<br>Universidad Nacional Aut=C3=B3noma de M=
=C3=A9xico</div></div></div>

--001a113461f2a7b621050f4df333--