Went to look at the various log files, like firewall-, mail-, mcelog-, messages-, and warn- and all the files end in .xz. Tried to read some of them with cat and they are all gibberish. Did some system change cause this? I looked at the logs perhaps a month a go and the files didn’t end in that suffix and were readable. Any idea what is going on?
Hi
In the changelog for logrotate it changed on;
* Mon Jul 25 2011 jengelh@medozas.de
- Change compression scheme to xz
Modify /etc/logrotate.conf your required compression method?
Those are the older (archived) logs. The newer log files are straight text.
Tried to read some of them with cat and they are all gibberish.
Try reading them with “less”. They will make a lot more sense that way. Those files are compressed, and “less” will uncompress their data as it reads them.
On 2014-06-22 07:26, nrickert wrote:
>
> svetter88;2650119 Wrote:
>> Tried to read some of them with cat and they are all gibberish.
> Try reading them with “less”. They will make a lot more sense that way.
> Those files are compressed, and “less” will uncompress their data as it
> reads them.
Or use zcat instead.
Or zgrep for search.
–
Cheers / Saludos,
Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)