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 BA141138A1A for ; Tue, 17 Feb 2015 19:09:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E1BA8E0870; Tue, 17 Feb 2015 19:09:15 +0000 (UTC) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) (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 C657CE082F for ; Tue, 17 Feb 2015 19:09:14 +0000 (UTC) Received: by mail-wg0-f50.google.com with SMTP id l2so37977703wgh.9 for ; Tue, 17 Feb 2015 11:09:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=nL+bfn2unjMvnkF7jPGliP2n92EpNWJX1u/JezP68M0=; b=WA4YqRMkLCjTqymZo5zWNFQoCEOtsFkwnJHtrj/BXiQah/AQjtqAtKH9wymPHB6mZt LbnpoADrdhW1WBUFXacYntsrIroWrqi7t55x9bAVvNlCJGY6CcFAqcqdvkZXJjGmr7q4 IY0kB8qb8JmBLKyS8EOnMIwm81coJB/juXk1fAnhnj8feh7MUuL6IyaMvoQJOzh4nt61 xG7E9IOm76fGWpMj1tCh4KKmVxSCVfWfQX1nQ0RroSp6C2o+N+x4c9vhe8BjMcM2kZZD dBWh6lFVGF9RkA3CpELh6TDobs05nzRMLcn8L7NOSlchLZqyV+6QWCIZqRBV4SUw2+u3 caYA== 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 X-Received: by 10.194.239.72 with SMTP id vq8mr62884071wjc.110.1424200153651; Tue, 17 Feb 2015 11:09:13 -0800 (PST) Received: by 10.216.123.148 with HTTP; Tue, 17 Feb 2015 11:09:13 -0800 (PST) In-Reply-To: References: <87lhjws8ci.fsf@heimdali.yagibdah.de> Date: Tue, 17 Feb 2015 21:09:13 +0200 Message-ID: Subject: Re: [gentoo-user] syslog-ng: how to read the log files From: Alexander Kapshuk To: Gentoo mailing list Content-Type: multipart/alternative; boundary=001a11c1b5563f64d8050f4d70ad X-Archives-Salt: b8b2fb73-ac27-4762-850c-6fbe3be84dbc X-Archives-Hash: eecfb2a7afa07e891f0d38af76953e2c --001a11c1b5563f64d8050f4d70ad Content-Type: text/plain; charset=UTF-8 On Tue, Feb 17, 2015 at 8:38 PM, Alexander Kapshuk < alexander.kapshuk@gmail.com> wrote: > On Tue, Feb 17, 2015 at 8:26 PM, lee 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). > > Just tried 'sed p /var/log/messages', which seems to work as well. --001a11c1b5563f64d8050f4d70ad Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Tue, Feb 17, 2015 at 8:38 PM, Alexander Kapshuk <alexander.kapshuk@gmail.com> wrote:
On Tue, Feb 17, 2015 at 8:26 PM, lee <lee@yagib= dah.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.=C2=A0 Finally, this fear has become reasonable.


If you're talking about /var/log/messages, which is:
messages= : data

I use cat(1).

<= /div>

Just tried 'sed= p /var/log/messages', which seems to work as well.
--001a11c1b5563f64d8050f4d70ad--