Gentoo Archives: gentoo-user

From: Jan Sever <n32@×××××.cz>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] syslog-ng: how to read the log files
Date: Thu, 19 Feb 2015 19:11:54
Message-Id: 251.2lW{X.7AZkdHTl5Ka.1KvZLZ@seznam.cz
In Reply to: Re: [gentoo-user] syslog-ng: how to read the log files by Fernando Rodriguez
1 On 02/19/2015 08:02 PM, Fernando Rodriguez wrote:
2 > On Tuesday, February 17, 2015 7:26:05 PM lee wrote:
3 >> Hi,
4 >>
5 >> how do you read the log files when using syslog-ng?
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 >>
11 >>
12 >
13 > You can just pipe the output of strings /var/log/messages to less. You can
14 use
15 > strings(1) for systemd  journal files also.
16
17 Yeah and you can check whether it contains any binary data by
18 diff <(strings /var/log/messages) /var/log/messages
19
20 --
21 Jan Sever
22 =

Replies

Subject Author
Re: [gentoo-user] syslog-ng: how to read the log files lee <lee@××××××××.de>