[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: logrotate - got compressed log



On Sat, 4 Feb 2017 16:12:50 +0000
Andy Smith <andy@strugglers.net> wrote:

> Hi Kamil,
> 
> On Sat, Feb 04, 2017 at 10:11:00AM +0100, Kamil Jońca wrote:
> > I have logrotate with config (excerpt)
> > --8<---------------cut here---------------start------------->8---
> > compress  
> 
> […]
> 
> > And since some days I started to receive *compressed* old syslog
> > files :( instead uncompressed ones.   
> 
> If you have the "compress" directive there you should expect to get
> compressed logs.
> 
> > Nothing has happen in configuration.
> > The only change was logrotate upgrade, from 3.8.7 to 3.11.0
> > Can anyboty confirm that there is difference between these
> > versions?  
> 
> I can't. As far as I can see you should expect compressed rotated
> files with your config, both in 3.8.7 and 3.11.0.
> 

I'm on 3.11.0 on sid, behaviour appears unchanged. Compression options
for rsyslog are compress and delaycompress, meaning that the open
logfile and the previous one are uncompressed, earlier ones are
compressed. I'm fairly sure this has been the Debian default for years.

-- 
Joe


Reply to: