Summary: | Compressed old log files re-formatted to fixed line length - syslog-ng logrotate gzip | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Heribert Slama <slama-h> |
Component: | [OLD] Core system | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | mr_bones_ |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Heribert Slama
2003-09-22 09:59:27 UTC
I have the same version of the three packages you list installed myself and the log files are rotated as expected with no change to the log contents. When you say, "when looking into /var/log/messages..." what do you mean? What did you use to look at the files? Also, please attach the contents of your logrotate.conf as a text attachment please so I can verify that we are running the same thing. Thanks. Replying to Comment #1 --- I used Midnight Commander's internal file viewer (function key F3) to look into the log files. It has never let me down before - but this time it DID :-(( The log files are _OK_ and I have to _withdraw_ this bug report. I'm awfully sorry. Just to show you how treacherous this thing is---- /var/log/messages is shown correctly (variable length lines) /var/log/messages.<n>.gz is shown re-formatted (fixed length lines, split words hyphenated). (<n> is a number.) I even tried the "Raw Data" toggle (F8), but this showed the gzipped file bytewise (garbage). After reading your comment #1 I gunzipped the old logs manually to bypass the auto-unzip function of mc's viewer but /var/log/messages.<n> was still shown re-formatted.... But when I hit the "Raw Data" button (F8) the text just reverted to _normal_. I renamed a few other text files to <file>.<n> and got the same effect! I confirmed the correctness of the compressed log files using Konqueror->Ark->Kate. They look crisp & healthy;-) Midnight Commander uses file extensions to filter files for viewing. And <file>.<n>[.gz] looks like a [compressed] _man page_, which has a fixed width and hyphenated split words on the right hand margin. I'll dig into mc's extension definition file "mc.ext" to see whether it is a bug or just a weakness of concept. Thank you for your fast response, and for putting me on the right track. Great! I'm glad you figured it out and are back to viewing unmangled log files again. ;-) I'll go ahead and close this bug as INVALID then. |