Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #177378 > unrolled thread

logrotate - got compressed log

Started bykjonca@poczta.onet.pl (Kamil Jońca)
First post2017-02-04 10:40 +0100
Last post2017-02-04 20:30 +0100
Articles 6 — 3 participants

Back to article view | Back to linux.debian.user


Contents

  logrotate - got compressed log kjonca@poczta.onet.pl (Kamil Jońca) - 2017-02-04 10:40 +0100
    Re: logrotate - got compressed log Andy Smith <andy@strugglers.net> - 2017-02-04 17:20 +0100
      Re: logrotate - got compressed log kjonca@poczta.onet.pl (Kamil Jońca) - 2017-02-04 18:30 +0100
        Re: logrotate - got compressed log Joe <joe@jretrading.com> - 2017-02-04 20:30 +0100
        Re: logrotate - got compressed log kjonca@poczta.onet.pl (Kamil Jońca) - 2017-02-05 09:30 +0100
      Re: logrotate - got compressed log Joe <joe@jretrading.com> - 2017-02-04 20:30 +0100

#177378 — logrotate - got compressed log

Fromkjonca@poczta.onet.pl (Kamil Jońca)
Date2017-02-04 10:40 +0100
Subjectlogrotate - got compressed log
Message-ID<t74Z4-6Xw-11@gated-at.bofh.it>
I have logrotate with config (excerpt)
--8<---------------cut here---------------start------------->8---
compress
delaycompress
dateext
mail root
compresscmd /usr/bin/xz
uncompresscmd /usr/bin/unxz
compressext .xz
compressoptions -9
tabooext +.dpkg-bak
minsize 1M
[...]
--8<---------------cut here---------------end--------------->8---

And since some days I started to receive *compressed* old syslog files
:( instead uncompressed ones. 

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?
KJ


-- 
http://wolnelektury.pl/wesprzyj/teraz/
Since a politician never believes what he says, he is surprised
when others believe him.
		-- Charles DeGaulle

[toc] | [next] | [standalone]


#177396

FromAndy Smith <andy@strugglers.net>
Date2017-02-04 17:20 +0100
Message-ID<t7bea-2Tv-19@gated-at.bofh.it>
In reply to#177378
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

[toc] | [prev] | [next] | [standalone]


#177408

Fromkjonca@poczta.onet.pl (Kamil Jońca)
Date2017-02-04 18:30 +0100
Message-ID<t7cjT-3BN-15@gated-at.bofh.it>
In reply to#177396
Andy Smith <andy@strugglers.net> 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.

[toc] | [prev] | [next] | [standalone]


#177415

FromJoe <joe@jretrading.com>
Date2017-02-04 20:30 +0100
Message-ID<t7ec1-529-9@gated-at.bofh.it>
In reply to#177408
On Sat, 04 Feb 2017 18:04:12 +0100
kjonca@poczta.onet.pl (Kamil Jońca) wrote:

> Andy Smith <andy@strugglers.net> 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 <logfile>.1 which if
originating with rsyslog, should not be compressed. <logfile>.2 and
subsequent should be compressed.

-- 
Joe

[toc] | [prev] | [next] | [standalone]


#177435

Fromkjonca@poczta.onet.pl (Kamil Jońca)
Date2017-02-05 09:30 +0100
Message-ID<t7qmS-4S0-7@gated-at.bofh.it>
In reply to#177408
kjonca@poczta.onet.pl (Kamil Jońca) writes:

> Andy Smith <andy@strugglers.net> 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.

[toc] | [prev] | [next] | [standalone]


#177416

FromJoe <joe@jretrading.com>
Date2017-02-04 20:30 +0100
Message-ID<t7ec2-529-15@gated-at.bofh.it>
In reply to#177396
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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web