Re: logrotate - got compressed log

2017-02-05 Thread Kamil Jońca
kjo...@poczta.onet.pl (Kamil Jońca) writes:

> Andy Smith  writes:
>
>> 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.
> Sorry, I did not write precisely.
> I started to receive compressed old logs by *mail*.
> So far, there were simple text in mail.

After downgrade to 3.8.7-2 I got plain text in mails as expected. So it
is 3.11.0-0.1 issue.

KJ

-- 
http://stopstopnop.pl/stop_stopnop.pl_o_nas.html
Age and treachery will always overcome youth and skill.



Re: logrotate - got compressed log

2017-02-04 Thread Joe
On Sat, 04 Feb 2017 18:04:12 +0100
kjo...@poczta.onet.pl (Kamil Jońca) wrote:

> Andy Smith  writes:
> 
> > 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.  
> Sorry, I did not write precisely.
> I started to receive compressed old logs by *mail*.
> So far, there were simple text in mail.
> 
> I understand, that old files on disk are compressed.
> 

Presumably you should be emailed the file after rotation, when it has
been closed, i.e. the version you should get is .1 which if
originating with rsyslog, should not be compressed. .2 and
subsequent should be compressed.

-- 
Joe



Re: logrotate - got compressed log

2017-02-04 Thread Joe
On Sat, 4 Feb 2017 16:12:50 +
Andy Smith  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



Re: logrotate - got compressed log

2017-02-04 Thread Kamil Jońca
Andy Smith  writes:

> 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.
Sorry, I did not write precisely.
I started to receive compressed old logs by *mail*.
So far, there were simple text in mail.

I understand, that old files on disk are compressed.

KJ

-- 
http://stopstopnop.pl/stop_stopnop.pl_o_nas.html
The average nutritional value of promises is roughly zero.



Re: logrotate - got compressed log

2017-02-04 Thread Andy Smith
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.

Cheers,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting