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 |
= |