Re: logrotate - got compressed log
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
Reply to: