[opensuse] Format used for compressed logs by logrotate.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I suddenly noticed that in my 12.1 system, I can no longer use zgrep to search the rotated logs, which are compressed using xz. cer@Telcontar:~> zgrep Telcontar /var/log/messages-20121206.xz cer@Telcontar:~> It fails without giving an error (The string "Telcontar" is on every log line). This is probably a bug that I could report in Bugzilla, but obviously it will be ignored at this time. Can somebody else check 12.3? Now I have to reconvert all my logs to a format I can read, and change the logrotate config so that it uses some other format like bzip2 - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iEYEARECAAYFAlFsZB0ACgkQtTMYHG2NR9WWGgCfTWMD915CnbHLc9tvYaAZzKnO ymAAn0uU409FcxV+R8+vz2URM7MHF+Ud =usYW -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Mon, 15 Apr 2013 22:33:23 +0200 (CEST) Carlos E. R. wrote: <snipped>
Now I have to reconvert all my logs to a format I can read, and change the logrotate config so that it uses some other format like bzip2
What about xzgrep? ~> which xzgrep /usr/bin/xzgrep -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday, 2013-04-15 at 17:11 -0400, Carl Hartung wrote:
On Mon, 15 Apr 2013 22:33:23 +0200 (CEST) Carlos E. R. wrote: <snipped>
Now I have to reconvert all my logs to a format I can read, and change the logrotate config so that it uses some other format like bzip2
What about xzgrep?
~> which xzgrep /usr/bin/xzgrep
Hum! That one is new to me. So now we have to use zgrep sometimes, other xzgrep... what a complication :-( It works, though... Thanks. - -- Cheers, Carlos E. R. (from 12.1 x86_64 "Asparagus" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iEYEARECAAYFAlFsd/cACgkQtTMYHG2NR9WtagCeKPJgRDu2sHVn+P7jBCyVKtNk IdgAn2av2GbgY2AuDe1ro3Glef7W7IN/ =yJd8 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Monday, 2013-04-15 at 17:11 -0400, Carl Hartung wrote:
On Mon, 15 Apr 2013 22:33:23 +0200 (CEST) Carlos E. R. wrote: <snipped>
Now I have to reconvert all my logs to a format I can read, and change the logrotate config so that it uses some other format like bzip2
What about xzgrep?
~> which xzgrep /usr/bin/xzgrep
Hum! That one is new to me. So now we have to use zgrep sometimes, other xzgrep... what a complication :-(
And zometimes even bzgrep. -- Per Jessen, Zürich (15.1°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday, 2013-04-16 at 08:52 +0200, Per Jessen wrote:
Carlos E. R. wrote:
Hum! That one is new to me. So now we have to use zgrep sometimes, other xzgrep... what a complication :-(
And zometimes even bzgrep.
Argh! Why so many? What's the rationale? :-/ - -- Cheers, Carlos E. R. (from 12.1 x86_64 "Asparagus" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iEYEARECAAYFAlFteVEACgkQtTMYHG2NR9XIKACgipnkQefGPCpz+b2MJie1A0Rk bucAnRnbsBe4yyLAw7tDW+4MuIatqlEO =VRDz -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Tuesday, 2013-04-16 at 08:52 +0200, Per Jessen wrote:
Carlos E. R. wrote:
Hum! That one is new to me. So now we have to use zgrep sometimes, other xzgrep... what a complication :-(
And zometimes even bzgrep.
Argh! Why so many? What's the rationale? :-/
Well, different compression methods require different uncompression methods :-) The rationale for writing the next compression method is an improved compression ratio. -- Per Jessen, Zürich (21.2°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday, 2013-04-16 at 18:41 +0200, Per Jessen wrote:
Carlos E. R. wrote:
Hum! That one is new to me. So now we have to use zgrep sometimes, other xzgrep... what a complication :-(
And zometimes even bzgrep.
Argh! Why so many? What's the rationale? :-/
Well, different compression methods require different uncompression methods :-) The rationale for writing the next compression method is an improved compression ratio.
Not that. It is obvious that new compression methods are found and made available. Howver, zgrep is a script (I learned that today), so I don't understand why we need having new scripts named xzgrep or bzgrep, instead of adapting zgrep. All are scripts. This is a mess. - -- Cheers, Carlos E. R. (from 12.1 x86_64 "Asparagus" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iEYEARECAAYFAlFtoVYACgkQtTMYHG2NR9UuEgCfdK2G6wImomDD0Qv9e3A2mJqA H2QAoJLN5p12yddY8AE9ph53cSKh+axu =vSWE -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
El 16/04/13 16:07, Carlos E. R. escribió:
instead of adapting zgrep. All are scripts. This is a mess.
zgrep already supports xz .. [snippet from the source..] case $i in *.bz2) uncompress=bzip2 ;; ▷⋅*.xz) uncompress=xz ;; *.lzma) uncompress=lzma ;; *) uncompress=gzip ;; gzip_status=$( exec 5>&1 ($uncompress .... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Content-ID: <alpine.LNX.2.00.1304162202240.24132@Telcontar.valinor> On Tuesday, 2013-04-16 at 16:38 -0300, Cristian Rodríguez wrote:
El 16/04/13 16:07, Carlos E. R. escribió:
instead of adapting zgrep. All are scripts. This is a mess.
zgrep already supports xz ..
Not in 12.1. As I said, it fails silently: cer@Telcontar:~> zgrep Telcontar /var/log/messages-20121206.xz cer@Telcontar:~> It should error out, format not supported or something. - -- Cheers, Carlos E. R. (from 12.1 x86_64 "Asparagus" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iEYEARECAAYFAlFtrnUACgkQtTMYHG2NR9VCoQCdFSHwqAinjVAGGjhLQPZAtfFX xpEAn2eT65gbeLRYDRiiSX3HGb7Y8YOd =AvmN -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday, 2013-04-16 at 17:13 -0300, Cristian Rodríguez wrote:
El 16/04/13 17:03, Carlos E. R. escribió:
It should error out, format not supported or something.
Well, it is fixed in a later product, upgrade :)
I'm sure that will bring new bugs >:-P - -- Cheers, Carlos E. R. (from 12.1 x86_64 "Asparagus" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iEYEARECAAYFAlFts4MACgkQtTMYHG2NR9V6pQCfU0rXim7GxCehNNyjzNAf1UUF LTkAnA7GHf5gqjZlC0B47r6UiQP8YHjf =HpUO -----END PGP SIGNATURE-----
Carlos E. R. wrote:
On Tuesday, 2013-04-16 at 18:41 +0200, Per Jessen wrote:
Carlos E. R. wrote:
Hum! That one is new to me. So now we have to use zgrep sometimes, other xzgrep... what a complication :-(
And zometimes even bzgrep.
Argh! Why so many? What's the rationale? :-/
Well, different compression methods require different uncompression methods :-) The rationale for writing the next compression method is an improved compression ratio.
And also sometimes to escape from patents or other restrictions.
Not that. It is obvious that new compression methods are found and made available. Howver, zgrep is a script (I learned that today), so I don't understand why we need having new scripts named xzgrep or bzgrep, instead of adapting zgrep. All are scripts. This is a mess.
I guess that backwards compatibility may be a consideration. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Carlos E. R. wrote:
On Tuesday, 2013-04-16 at 18:41 +0200, Per Jessen wrote:
Carlos E. R. wrote:
Hum! That one is new to me. So now we have to use zgrep sometimes, other xzgrep... what a complication :-(
And zometimes even bzgrep.
Argh! Why so many? What's the rationale? :-/
Well, different compression methods require different uncompression methods :-) The rationale for writing the next compression method is an improved compression ratio.
Not that. It is obvious that new compression methods are found and made available. Howver, zgrep is a script (I learned that today), so I don't understand why we need having new scripts named xzgrep or bzgrep, instead of adapting zgrep. All are scripts. This is a mess.
It's probably historical - for instance, zgrep has only very recently been amended to support the LZMA compression format, but as this has been in use for some years, xzgrep or lzgrep were written. -- Per Jessen, Zürich (19.4°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
El 15/04/13 17:33, Carlos E. R. escribió:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi,
I suddenly noticed that in my 12.1 system, I can no longer use zgrep to search the rotated logs, which are compressed using xz.
cer@Telcontar:~> zgrep Telcontar /var/log/messages-20121206.xz cer@Telcontar:~>
It fails without giving an error (The string "Telcontar" is on every log line).
This is probably a bug that I could report in Bugzilla, but obviously it will be ignored at this time. Can somebody else check 12.3?
Now I have to reconvert all my logs to a format I can read, and change the logrotate config so that it uses some other format like bzip2
Not a bug, the default format changed to xz, use xzgrep.. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday, 2013-04-15 at 18:40 -0300, Cristian Rodríguez wrote:
El 15/04/13 17:33, Carlos E. R. escribió:
cer@Telcontar:~> zgrep Telcontar /var/log/messages-20121206.xz cer@Telcontar:~>
It fails without giving an error (The string "Telcontar" is on every log line).
Not a bug, the default format changed to xz, use xzgrep..
IMHO, it is a bug that zgrep returns without output, which means "no hit on that search string", instead of saying that it does not support the xz format. - -- Cheers, Carlos E. R. (from 12.1 x86_64 "Asparagus" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iEYEARECAAYFAlFseW8ACgkQtTMYHG2NR9Vu6gCfeBcqOWdkqmVS74gfzo5Sn1ft /2IAn0ecNitvTmJ/c4xANZPBWuJ132EF =zBfZ -----END PGP SIGNATURE-----
Carlos E. R. said the following on 04/15/2013 04:33 PM:
I suddenly noticed that in my 12.1 system, I can no longer use zgrep to search the rotated logs, which are compressed using xz.
cer@Telcontar:~> zgrep Telcontar /var/log/messages-20121206.xz cer@Telcontar:~>
It fails without giving an error (The string "Telcontar" is on every log line).
This is probably a bug that I could report in Bugzilla, but obviously it will be ignored at this time. Can somebody else check 12.3?
Now I have to reconvert all my logs to a format I can read, and change the logrotate config so that it uses some other format like bzip2
NOT! If you look at /etc/logrotate.conf you will see the lines <quote> # comment these to switch compression to use gzip or another # compression scheme compresscmd /usr/bin/xz uncompresscmd /usr/bin/xzdec </quote> If you don't like xz then do what it says and change. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday, 2013-04-15 at 18:07 -0400, Anton Aylward wrote:
Carlos E. R. said the following on 04/15/2013 04:33 PM:
I suddenly noticed that in my 12.1 system, I can no longer use zgrep to search the rotated logs, which are compressed using xz.
cer@Telcontar:~> zgrep Telcontar /var/log/messages-20121206.xz cer@Telcontar:~>
It fails without giving an error (The string "Telcontar" is on every log line).
This is probably a bug that I could report in Bugzilla, but obviously it will be ignored at this time. Can somebody else check 12.3?
Now I have to reconvert all my logs to a format I can read, and change the logrotate config so that it uses some other format like bzip2
NOT!
If you look at /etc/logrotate.conf you will see the lines <quote> # comment these to switch compression to use gzip or another # compression scheme compresscmd /usr/bin/xz uncompresscmd /usr/bin/xzdec </quote>
If you don't like xz then do what it says and change.
I had changed it already before posting here, I'm aware of that configuration. That's not the issue I was reporting. And I have changed it back to xz after learning how to grep them. - -- Cheers, Carlos E. R. (from 12.1 x86_64 "Asparagus" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iEYEARECAAYFAlFtedUACgkQtTMYHG2NR9UTeACgg9fwc3sMgt39csAXZtXZ1WKf 5WgAnAkeuh6MDQz66Vay6YImtkMtVu9M =dlFg -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (7)
-
Anton Aylward
-
Carl Hartung
-
Carlos E. R.
-
Carlos E. R.
-
Cristian Rodríguez
-
Dave Howorth
-
Per Jessen