← Back to team overview

touch-packages team mailing list archive

[Bug 1472834] [NEW] logrotate does not use .xz extension for xz-compressed logs

 

Public bug reported:

I had an entry in /etc/logrotate.d declared like:

	compress
	compresscmd /usr/bin/xz
	uncompresscmd /usr/bin/unxz

According to man 5 logrotate.conf, the default extension for compressed
files ought to be whatever the compresscmd outputs

      compressext
              Specifies  which extension to use on compressed logfiles, if compression is enabled.  The default follows that of the con‐
              figured compression command.

However, my logs are .gz files, even though when I do run "file" on them
, it says "XZ compressed data"

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: logrotate 3.8.7-1ubuntu1
ProcVersionSignature: Ubuntu 3.19.0-22.22-generic 3.19.8-ckt1
Uname: Linux 3.19.0-22-generic x86_64
ApportVersion: 2.17.2-0ubuntu1.1
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Jul  8 18:35:41 2015
InstallationDate: Installed on 2015-03-20 (110 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Alpha amd64 (20150320)
SourcePackage: logrotate
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: logrotate (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug vivid

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to logrotate in Ubuntu.
https://bugs.launchpad.net/bugs/1472834

Title:
  logrotate does not use .xz extension for xz-compressed logs

Status in logrotate package in Ubuntu:
  New

Bug description:
  I had an entry in /etc/logrotate.d declared like:

  	compress
  	compresscmd /usr/bin/xz
  	uncompresscmd /usr/bin/unxz

  According to man 5 logrotate.conf, the default extension for
  compressed files ought to be whatever the compresscmd outputs

        compressext
                Specifies  which extension to use on compressed logfiles, if compression is enabled.  The default follows that of the con‐
                figured compression command.

  However, my logs are .gz files, even though when I do run "file" on
  them , it says "XZ compressed data"

  ProblemType: Bug
  DistroRelease: Ubuntu 15.04
  Package: logrotate 3.8.7-1ubuntu1
  ProcVersionSignature: Ubuntu 3.19.0-22.22-generic 3.19.8-ckt1
  Uname: Linux 3.19.0-22-generic x86_64
  ApportVersion: 2.17.2-0ubuntu1.1
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Wed Jul  8 18:35:41 2015
  InstallationDate: Installed on 2015-03-20 (110 days ago)
  InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Alpha amd64 (20150320)
  SourcePackage: logrotate
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/logrotate/+bug/1472834/+subscriptions