-
log colorizer?
I use ccze to get a bit of color in my logfiles when running a tail on
them. However I am afraid that this tool will be out of date in the not
so near future. Are there any other more recent tools thta will do the
same?
A search gave me just one that is even older and less maintained.
houghi
--
How do you ask a man to be the last man to die in Iraq?
How do you ask a man to be the last man to die for a mistake?
-
Re: log colorizer?
houghi wrote:
[color=blue]
> I use ccze to get a bit of color in my logfiles when running a tail on
> them. However I am afraid that this tool will be out of date in the not
> so near future. Are there any other more recent tools thta will do the
> same?
>
> A search gave me just one that is even older and less maintained.
>
> houghi[/color]
Have a look here:
[url]http://www.linuxjournal.com/article/4430[/url]
Colortail...
P.S. Newest rpm I found that would install easily is here:
[url]http://rpm.pbone.net/index.php3/stat/4/idpl/2331905/com/colortail-0.3.0-6.i586.rpm.html[/url]
It's a PLD version but works fine in openSUSE...
-
Re: log colorizer?
On Tue, 2 Sep 2008 14:04:38 +0200
houghi <houghi@houghi.org.invalid> wrote:
[color=blue]
>I use ccze to get a bit of color in my logfiles when running a tail on
>them. However I am afraid that this tool will be out of date in the not
>so near future. Are there any other more recent tools thta will do the
>same?
>[/color]
I use it too, although I cannot compile it on 11.0 (looks like some
involved definitions in his source code that are now being done in
system header files). I will be working on this so I can compile it
again because I miss it! :-)
Is there a particular problem you are having with it? If so, I could
look into it for you. I've also been playing around with writing a
perl-based colorizer (I really need something like this for our
web apps) but it is currently just for apache logs and not very good,
yet -- there are only a few things in which I am interested in the
logs so I need to make it more general and configurable. I'm not sure if
a perl-based solution would work for you, or not.
[color=blue]
>A search gave me just one that is even older and less maintained.
>[/color]
I found a few but didn't look too hard at any of them.
--
Kevin Nathan (Arizona, USA)
Linux Potpourri and a.o.l.s. FAQ -- (temporarily offline)
Open standards. Open source. Open minds.
The command line is the front line.
Linux 2.6.25.11-0.1-pae
9:22pm up 4 days 15:36, 20 users, load average: 0.26, 0.40, 0.60
-
Re: log colorizer?
Michael Soibelman wrote:[color=blue]
> houghi wrote:
>[color=green]
>> I use ccze to get a bit of color in my logfiles when running a tail on
>> them. However I am afraid that this tool will be out of date in the not
>> so near future. Are there any other more recent tools thta will do the
>> same?
>>
>> A search gave me just one that is even older and less maintained.
>>
>> houghi[/color]
>
> Have a look here:
>
> [url]http://www.linuxjournal.com/article/4430[/url]
>
> Colortail...[/color]
That article is from 2001. :-(
[color=blue]
> P.S. Newest rpm I found that would install easily is here:
>
> [url]http://rpm.pbone.net/index.php3/stat/4/idpl/2331905/com/colortail-0.3.0-6.i586.rpm.html[/url]
>
> It's a PLD version but works fine in openSUSE...[/color]
Thanks anyway. I will see if I can compile it myself for 64bit. However
when it is from 2001, it seems that it isn't maintained anymore.
houghi
--
It's people. Source code is made out of people! They're making our
source out of people. Next thing they'll be breeding us like cattle
for code. You've gotta tell them. You've gotta tell them!
-
Re: log colorizer?
Kevin Nathan wrote:[color=blue][color=green]
>>I use ccze to get a bit of color in my logfiles when running a tail on
>>them. However I am afraid that this tool will be out of date in the not
>>so near future. Are there any other more recent tools thta will do the
>>same?[/color]
>
> I use it too, although I cannot compile it on 11.0 (looks like some
> involved definitions in his source code that are now being done in
> system header files). I will be working on this so I can compile it
> again because I miss it! :-)[/color]
I probably still use the 32 bit from some previous version that I turned
into rpm with checkinstall.
[color=blue]
> Is there a particular problem you are having with it?[/color]
The fact that it isn't maintained anymore. This would mean that in some
near future (apparently now) you won't be able to compile it anymore.
Also the website is not up anymore, so that also means that it is
abandoned.
I have the issue with a panel widget that is working in 32 bit, but not
in 64 and when compiling gives a LOT of errors due to the fact that it
isn't up to date anymore. I will start a new thread for that. Probably
the issue is the same as you are having now.
[color=blue]
> If so, I could
> look into it for you. I've also been playing around with writing a
> perl-based colorizer (I really need something like this for our
> web apps) but it is currently just for apache logs and not very good,
> yet -- there are only a few things in which I am interested in the
> logs so I need to make it more general and configurable. I'm not sure if
> a perl-based solution would work for you, or not.[/color]
ccze was made from a previous perl script (I think it was colorizer)
that was a perl script. The issue was that it was too slow. Even now
ccze can do a lot of damage on CPU when there are a LOT of logs storming
in at the same time.
So that was the reason to go from perl to a compiled program.
[color=blue][color=green]
>>A search gave me just one that is even older and less maintained.
>>[/color]
>
> I found a few but didn't look too hard at any of them.[/color]
I did not found any recent ones.
houghi
--
It's people. Source code is made out of people! They're making our
source out of people. Next thing they'll be breeding us like cattle
for code. You've gotta tell them. You've gotta tell them!
-
Re: log colorizer?
On Tue, 2 Sep 2008, Kevin Nathan wrote:-
[color=blue]
>On Tue, 2 Sep 2008 14:04:38 +0200
>houghi <houghi@houghi.org.invalid> wrote:
>[color=green]
>>I use ccze to get a bit of color in my logfiles when running a tail on
>>them. However I am afraid that this tool will be out of date in the not
>>so near future. Are there any other more recent tools thta will do the
>>same?
>>[/color]
>
>I use it too, although I cannot compile it on 11.0 (looks like some
>involved definitions in his source code that are now being done in
>system header files). I will be working on this so I can compile it
>again because I miss it! :-)[/color]
What's the errors you're getting? So far, I've been able to compile it
just fine on the 32bit releases of 10.1, 10.3 and 11.0, the PPC release
of 10.3 and the 64bit releases of 10.1, 10.2, 10.3 and 11.0.
Regards,
David Bolt
--
[url]www.davjam.org/lifetype/[/url] [url]www.distributed.net:[/url] OGR@100Mnodes, RC5-72@15Mkeys
SUSE 10.1 32b | | openSUSE 10.3 32b | openSUSE 11.0 32b
| openSUSE 10.2 64b | openSUSE 10.3 64b | openSUSE 11.0 64b
RISC OS 3.6 | TOS 4.02 | openSUSE 10.3 PPC | RISC OS 3.11
-
Re: log colorizer?
On Wed, 3 Sep 2008 09:15:23 +0200
houghi <houghi@houghi.org.invalid> wrote:
[color=blue]
>I probably still use the 32 bit from some previous version that I
>turned into rpm with checkinstall.
>[/color]
I can't find my rpm that I built several versions back, so that's why I
am trying to compile it.
[color=blue]
>Also the website is not up anymore, so that also means that it is
>abandoned.
>[/color]
I may take a more involved stab at it. Probably on Friday since I have
some time off then.
[color=blue]
>ccze was made from a previous perl script (I think it was colorizer)
>that was a perl script. The issue was that it was too slow. Even now
>ccze can do a lot of damage on CPU when there are a LOT of logs
>storming in at the same time.
>
>So that was the reason to go from perl to a compiled program.
>[/color]
I rather figured something like that. My current colorizer is for our
web apps so I can view the Apache logs from within the program. It
would need major re-working to generalize it, so I would be better off
starting with ccze.
--
Kevin Nathan (Arizona, USA)
Linux Potpourri and a.o.l.s. FAQ -- (temporarily offline)
Open standards. Open source. Open minds.
The command line is the front line.
Linux 2.6.25.11-0.1-pae
7:36pm up 5 days 13:50, 20 users, load average: 0.19, 0.36, 0.55
-
Re: log colorizer?
On Wed, 3 Sep 2008 11:39:53 +0100
David Bolt <blacklist-me@davjam.org> wrote:
[color=blue]
>What's the errors you're getting? So far, I've been able to compile it
>just fine on the 32bit releases of 10.1, 10.3 and 11.0, the PPC release
>of 10.3 and the 64bit releases of 10.1, 10.2, 10.3 and 11.0.
>[/color]
The first error, almost immediately after entering 'make', was:
cc1: error: unrecognized command line option "-Wmulticharacter"
So I just removed that warning option from the Makefile. Then it got a
bit farther before seeing:
In file included from /usr/include/argp.h:31,
from ccze.c:25:
/usr/include/errno.h:69: error: two or more data types in declaration
specifiers
And, after a little investigating, it looks like he is defining
'error_t' (didn't dig far enough to be sure) while the system headers
now define it, too. Therefore, looking in the errno.h file (above), I
found:
#if defined __USE_GNU || defined __need_error_t
# ifndef __error_t_defined
typedef int error_t; <<<=================== This is the problem line
# define __error_t_defined 1
# endif
# undef __need_error_t
#endif
So it looks like he is defining 'error_t' and the system headers don't
know about it since he didn't set '__error_t_defined' -- therefore we
have two data types on the typedef line which is, of course, a
big no-no . . . ;-)
As I mentioned to Houghi, I will probably spend some time on this on
Friday and will let you know how it goes.
--
Kevin Nathan (Arizona, USA)
Linux Potpourri and a.o.l.s. FAQ -- (temporarily offline)
Open standards. Open source. Open minds.
The command line is the front line.
Linux 2.6.25.11-0.1-pae
7:42pm up 5 days 13:56, 20 users, load average: 0.24, 0.29, 0.45
-
Re: log colorizer?
On Wed, 3 Sep 2008, Kevin Nathan wrote:-
The version I have is version 0.2.1. Which version are you building?
And, purely out of curiosity, have you rebuilt the configure script on
the system you're using to build it, or are you using the same one that
was originally supplied?
[color=blue]
>On Wed, 3 Sep 2008 11:39:53 +0100
>David Bolt <blacklist-me@davjam.org> wrote:
>[color=green]
>>What's the errors you're getting? So far, I've been able to compile it
>>just fine on the 32bit releases of 10.1, 10.3 and 11.0, the PPC release
>>of 10.3 and the 64bit releases of 10.1, 10.2, 10.3 and 11.0.
>>[/color]
>
>The first error, almost immediately after entering 'make', was:
>
> cc1: error: unrecognized command line option "-Wmulticharacter"[/color]
My guess is that the configure script is old and the now-unsupported
option is added to the Makefile. Try using aclocal and autoconf to
update the configure script and try again. I did that a long time ago,
although I can't recall why, and have had no problems building at all.
[color=blue]
>As I mentioned to Houghi, I will probably spend some time on this on
>Friday and will let you know how it goes.[/color]
Please do. I'm curious to know what's causing the problems, and how you
solve them.
Regards,
David Bolt
--
[url]www.davjam.org/lifetype/[/url] [url]www.distributed.net:[/url] OGR@100Mnodes, RC5-72@15Mkeys
SUSE 10.1 32b | | openSUSE 10.3 32b | openSUSE 11.0 32b
| openSUSE 10.2 64b | openSUSE 10.3 64b | openSUSE 11.0 64b
RISC OS 3.6 | TOS 4.02 | openSUSE 10.3 PPC | RISC OS 3.11
-
Re: log colorizer?
On Thu, 4 Sep 2008 12:06:05 +0100
David Bolt <blacklist-me@davjam.org> wrote:
[color=blue]
>
>The version I have is version 0.2.1. Which version are you building?[/color]
Same version. That's the latest available (2003).
[color=blue]
>And, purely out of curiosity, have you rebuilt the configure script on
>the system you're using to build it, or are you using the same one that
>was originally supplied?
>[/color]
I rebuilt it, but I think the configure.ac file is too old and needs
some hand-updating first. There was no change between before and after
running aclocal and autoconf.
[color=blue]
>
>I'm curious to know what's causing the problems, and how you
>solve them.
>[/color]
As am I! ;-)
--
Kevin Nathan (Arizona, USA)
Linux Potpourri and a.o.l.s. FAQ -- (temporarily offline)
Open standards. Open source. Open minds.
The command line is the front line.
Linux 2.6.25.11-0.1-pae
10:10pm up 6 days 16:24, 20 users, load average: 0.85, 0.49, 0.49
-
Re: log colorizer?
houghi wrote:
[color=blue]
> I use ccze to get a bit of color in my logfiles when running a tail on
> them. However I am afraid that this tool will be out of date in the not
> so near future. Are there any other more recent tools thta will do the
> same?
>
> A search gave me just one that is even older and less maintained.
>
> houghi[/color]
What about MultiTail ?
[url]http://www.vanheusden.com/multitail/[/url]
Didn't check it, just found it on Wikipedia in 'tail (Unix)' article.
But according to the page the latest update is from 2008/05/19.
puki
-
Re: log colorizer?
puki wrote:
[color=blue]
> houghi wrote:
>[color=green]
>> I use ccze to get a bit of color in my logfiles when running a tail on
>> them. However I am afraid that this tool will be out of date in the not
>> so near future. Are there any other more recent tools thta will do the
>> same?
>>
>> A search gave me just one that is even older and less maintained.
>>
>> houghi[/color]
>
> What about MultiTail ?
> [url]http://www.vanheusden.com/multitail/[/url]
>
> Didn't check it, just found it on Wikipedia in 'tail (Unix)' article.
> But according to the page the latest update is from 2008/05/19.
>
> puki[/color]
I even found the 5.2.2 version of MultiTail (which should be the latest) on
Packman repositories trough YaST.
puki
-
Re: log colorizer?
puki wrote:[color=blue]
> What about MultiTail ?
> [url]http://www.vanheusden.com/multitail/[/url][/color]
WOW! I mean WOW! This is great. This can do what I want and so much,
much, much more
[color=blue]
> Didn't check it, just found it on Wikipedia in 'tail (Unix)' article.
> But according to the page the latest update is from 2008/05/19.[/color]
Install with `OCICLI http://tinyurl.com/5lzden` or look at
[url]http://software.opensuse.org/search?baseproject=ALL&p=1&q=multitail[/url]
Or just click on [url]http://tinyurl.com/5lzden[/url]
Do not forget to read the multitail pages and also them man page and be
overwelmed with what is possible.
Looks great.
--
houghi [url]http://www.houghi.org[/url]
My experience with SuSE Linux 9.1
[color=blue]
> The businessworld is like prison and M$ made everybody their bitch.[/color]
-
Re: log colorizer?
On Thu, 4 Sep 2008, Kevin Nathan wrote:-
[color=blue]
>On Thu, 4 Sep 2008 12:06:05 +0100
>David Bolt <blacklist-me@davjam.org> wrote:[/color]
[color=blue][color=green]
>>I'm curious to know what's causing the problems, and how you
>>solve them.
>>[/color]
>
>As am I! ;-)[/color]
Actually, I was being a little cruel because I do know what's causing
the problems, and what I did to cure them. You need to apply the
following patch:
--- ./configure.ac 2003-05-13 19:09:30.000000000 +0100
+++ ../ccze-0.2.1.mine/configure.ac 2006-09-17 22:21:49.000000000 +0100
@@ -84,7 +84,7 @@
AC_TYPE_SIZE_T
AC_TYPE_SIGNAL
-AC_CHECK_TYPE(error_t, int)
+dnl AC_CHECK_TYPE(error_t, int)
dnl **********************
dnl * Library functions
And:
--- ./src/Makefile.in 2003-05-13 19:09:30.000000000 +0100
+++ ../ccze-0.2.1.mine/src/Makefile.in 2006-09-17 21:55:19.000000000 +0100
@@ -22,7 +22,7 @@
-Wbad-function-cast -Wsign-compare -Wchar-subscripts \
-Wcomment -Wformat -Wformat-nonliteral -Wformat-security \
-Wimplicit -Wmain -Wmissing-braces -Wparentheses \
- -Wreturn-type -Wswitch -Wmulticharacter \
+ -Wreturn-type -Wswitch \
-Wmissing-noreturn -Wmissing-declarations @WFLAGS_3X@
WFLAGS_ICC = -Wall -wd193,279,810,869,1418,1419
WFLAGS_3X = -Wsequence-point -Wdiv-by-zero -W -Wunused \
And then there should be no problems building it.
Of course, if you're wanting to build an RPM from it using rpmbuild,
you'll need to edit the spec file as it's using the old Copyright: tag,
and building with it will fail.
Alternatively, you can find my source RPM package, with a replacement
spec file and those patches here:
<URL:http://www.davjam.org/~davjam/linux/repositories/10.3/suse/srpms/ccze-0.2.1-1.9.suse103.src.rpm>
And the pre-built binary packages built using that source RPM here:
<URL:http://www.davjam.org/~davjam/linux/repositories/10.1/suse/i686/ccze-0.2.1-1.9.suse101.i686.rpm>
<URL:http://www.davjam.org/~davjam/linux/repositories/10.2/suse/x86_64/ccze-0.2.1-1.9.suse102.x86_64.rpm>
<URL:http://www.davjam.org/~davjam/linux/repositories/10.3/suse/i686/ccze-0.2.1-1.9.suse103.i686.rpm>
<URL:http://www.davjam.org/~davjam/linux/repositories/10.3/suse/ppc/ccze-0.2.1-1.9.suse103.ppc.rpm>
<URL:http://www.davjam.org/~davjam/linux/repositories/10.3/suse/x86_64/ccze-0.2.1-1.9.suse103.x86_64.rpm>
<URL:http://www.davjam.org/~davjam/linux/repositories/11.0/suse/i686/ccze-0.2.1-1.9.suse110.i686.rpm>
<URL:http://www.davjam.org/~davjam/linux/repositories/11.0/suse/x86_64/ccze-0.2.1-1.9.suse110.x86_64.rpm>
Regards,
David Bolt
--
[url]www.davjam.org/lifetype/[/url] [url]www.distributed.net:[/url] OGR@100Mnodes, RC5-72@15Mkeys
SUSE 10.1 32b | | openSUSE 10.3 32b | openSUSE 11.0 32b
| openSUSE 10.2 64b | openSUSE 10.3 64b | openSUSE 11.0 64b
RISC OS 3.6 | TOS 4.02 | openSUSE 10.3 PPC | RISC OS 3.11
-
Re: log colorizer?
David Bolt wrote:[color=blue]
> Alternatively, you can find my source RPM package, with a replacement
> spec file and those patches here:[/color]
Could you send me your spec and source file? That way I can easily put
them on the build server an people can install with the
one-click-install
I will obviously build for anything it will work on. So also packages
for Madriva, CentOS and RedHat.
(And why don't you have an account there? ;-) )
--
houghi [url]http://www.houghi.org[/url]
My experience with SuSE Linux 9.1
[color=blue]
> The businessworld is like prison and M$ made everybody their bitch.[/color]
-
Re: log colorizer?
houghi wrote:[color=blue]
> Install with `OCICLI http://tinyurl.com/5lzden` or look at
> [url]http://software.opensuse.org/search?baseproject=ALL&p=1&q=multitail[/url]
> Or just click on [url]http://tinyurl.com/5lzden[/url]
>
> Do not forget to read the multitail pages and also them man page and be
> overwelmed with what is possible.[/color]
It realllly kicks ass. I am probably going to put a 4x4 screen on one of
my screens. By reading there and some clicking, I saw some other neat
CLI tools. The first is htop [url]http://htop.sourceforge.net/[/url]
Installable from openSUSE and looks neat.
The other is Saidar
[url]http://software.opensuse.org/search?p=1&baseproject=ALL&q=saidar[/url] and a
screenshot [url]http://www.debuntu.org/wp-content/uploads/2006/06/saitar.png[/url]
houghi
--
This space left blank intentionaly
-
Re: log colorizer?
On Fri, 5 Sep 2008, houghi wrote:-
[color=blue]
>(And why don't you have an account there? ;-) )[/color]
I do have an account, but I just didn't bother using it. However, the
prodding's finally been enough to actually sit down and work out how to
use the CLI osc and the web interface together. To that end, I've
uploaded ccze, and a few other packages, into my home projects and am
now getting used to the differences between how I'm used to working, and
how the build service works.
Regards,
David Bolt
--
[url]www.davjam.org/lifetype/[/url] [url]www.distributed.net:[/url] OGR@100Mnodes, RC5-72@15Mkeys
SUSE 10.1 32b | | openSUSE 10.3 32b | openSUSE 11.0 32b
| openSUSE 10.2 64b | openSUSE 10.3 64b | openSUSE 11.0 64b
RISC OS 3.6 | TOS 4.02 | openSUSE 10.3 PPC | RISC OS 3.11
-
Re: log colorizer?
David Bolt wrote:[color=blue]
>
>
> On Fri, 5 Sep 2008, houghi wrote:-
>[color=green]
>>(And why don't you have an account there? ;-) )[/color]
>
> I do have an account, but I just didn't bother using it. However, the
> prodding's finally been enough to actually sit down and work out how to
> use the CLI osc and the web interface together. To that end, I've
> uploaded ccze, and a few other packages, into my home projects and am
> now getting used to the differences between how I'm used to working, and
> how the build service works.[/color]
W00t! [url]http://software.opensuse.org/search?baseproject=ALL&p=1&q=ccze[/url] I
can imagine that especially rebuilding for factory can be extremely easy
now.
One thing i have not figured out is how to add other peoples packages to
your own project. The reson this would be interesting is that way you
can build your own repo, without the need to maintain everything
yourself and then you need to only add yourself as repo and have all the
things you want.
Yes, I can anderstand that it is a serious adaption of how you used to
work and how you work now. I asume you have already found the
documentation on [url]https://build.opensuse.org/documentation/obs/[/url] and
[url]http://en.opensuse.org/SUSE_Build_Tutorial[/url] so this is more material for
others.
houghi
--
This was written under the influence of the following:
| Artist : Within Temptation
| Song : The Heart Of Everything
| Album : The Heart Of Everything
-
Re: log colorizer?
houghi wrote:
....[color=blue]
>
> One thing i have not figured out is how to add other peoples packages to
> your own project. The reson this would be interesting is that way you
> can build your own repo, without the need to maintain everything
> yourself and then you need to only add yourself as repo and have all the
> things you want.[/color]
I think I've done it before. It is important because I've been bitten
by adding somebody's personal repo and later finding it totally
blown away (gone).
-
Re: log colorizer?
Chris Cox wrote:[color=blue]
> I think I've done it before. It is important because I've been bitten
> by adding somebody's personal repo and later finding it totally
> blown away (gone).[/color]
I think they have changed things, because it looks as if it works now.
I just log in on the build server and go to my home project. I click on
'Link Package fronm other Project'.
I open a new tab and do a search on [url]http://software.opensuse.org/search[/url]
for whatever I want. At the result I click on 'Go to OBS Project' There
I see the project name e.g. home:davjamXX and the package, e.g. ccze.
These things I paste into the first tab.
Now I can easily add my own repo home:houghi as a repo and have the
software I want.
houghi
--
This was written under the influence of the following:
| Artist : Eagles
| Song : One Of These Nights
| Album : Eagles Greatest Hits