log colorizer? - Suse

This is a discussion on log colorizer? - Suse ; 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 ...

+ Reply to Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 20 of 43

Thread: log colorizer?

  1. 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?

  2. Re: log colorizer?

    houghi wrote:

    > 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


    Have a look here:

    http://www.linuxjournal.com/article/4430

    Colortail...


    P.S. Newest rpm I found that would install easily is here:

    http://rpm.pbone.net/index.php3/stat....i586.rpm.html

    It's a PLD version but works fine in openSUSE...

  3. Re: log colorizer?

    On Tue, 2 Sep 2008 14:04:38 +0200
    houghi wrote:

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


    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.


    >A search gave me just one that is even older and less maintained.
    >


    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


  4. Re: log colorizer?

    Michael Soibelman wrote:
    > houghi wrote:
    >
    >> 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

    >
    > Have a look here:
    >
    > http://www.linuxjournal.com/article/4430
    >
    > Colortail...


    That article is from 2001. :-(

    > P.S. Newest rpm I found that would install easily is here:
    >
    > http://rpm.pbone.net/index.php3/stat....i586.rpm.html
    >
    > It's a PLD version but works fine in openSUSE...


    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!

  5. Re: log colorizer?

    Kevin Nathan wrote:
    >>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?

    >
    > 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! :-)


    I probably still use the 32 bit from some previous version that I turned
    into rpm with checkinstall.

    > Is there a particular problem you are having with it?


    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.

    > 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.


    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.

    >>A search gave me just one that is even older and less maintained.
    >>

    >
    > I found a few but didn't look too hard at any of them.


    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!

  6. Re: log colorizer?

    On Tue, 2 Sep 2008, Kevin Nathan wrote:-

    >On Tue, 2 Sep 2008 14:04:38 +0200
    >houghi wrote:
    >
    >>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?
    >>

    >
    >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! :-)


    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

    --
    www.davjam.org/lifetype/ www.distributed.net: 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

  7. Re: log colorizer?

    On Wed, 3 Sep 2008 09:15:23 +0200
    houghi wrote:

    >I probably still use the 32 bit from some previous version that I
    >turned into rpm with checkinstall.
    >


    I can't find my rpm that I built several versions back, so that's why I
    am trying to compile it.


    >Also the website is not up anymore, so that also means that it is
    >abandoned.
    >


    I may take a more involved stab at it. Probably on Friday since I have
    some time off then.


    >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.
    >


    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


  8. Re: log colorizer?

    On Wed, 3 Sep 2008 11:39:53 +0100
    David Bolt wrote:

    >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.
    >


    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


  9. 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?

    >On Wed, 3 Sep 2008 11:39:53 +0100
    >David Bolt wrote:
    >
    >>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.
    >>

    >
    >The first error, almost immediately after entering 'make', was:
    >
    > cc1: error: unrecognized command line option "-Wmulticharacter"


    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.

    >As I mentioned to Houghi, I will probably spend some time on this on
    >Friday and will let you know how it goes.


    Please do. I'm curious to know what's causing the problems, and how you
    solve them.


    Regards,
    David Bolt

    --
    www.davjam.org/lifetype/ www.distributed.net: 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

  10. Re: log colorizer?

    On Thu, 4 Sep 2008 12:06:05 +0100
    David Bolt wrote:

    >
    >The version I have is version 0.2.1. Which version are you building?


    Same version. That's the latest available (2003).


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


    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.

    >
    >I'm curious to know what's causing the problems, and how you
    >solve them.
    >


    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


  11. Re: log colorizer?

    houghi wrote:

    > 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


    What about MultiTail ?
    http://www.vanheusden.com/multitail/

    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

  12. Re: log colorizer?

    puki wrote:

    > houghi wrote:
    >
    >> 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

    >
    > What about MultiTail ?
    > http://www.vanheusden.com/multitail/
    >
    > 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


    I even found the 5.2.2 version of MultiTail (which should be the latest) on
    Packman repositories trough YaST.

    puki

  13. Re: log colorizer?

    puki wrote:
    > What about MultiTail ?
    > http://www.vanheusden.com/multitail/


    WOW! I mean WOW! This is great. This can do what I want and so much,
    much, much more

    > 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.


    Install with `OCICLI http://tinyurl.com/5lzden` or look at
    http://software.opensuse.org/search?...=1&q=multitail
    Or just click on http://tinyurl.com/5lzden

    Do not forget to read the multitail pages and also them man page and be
    overwelmed with what is possible.

    Looks great.
    --
    houghi http://www.houghi.org
    My experience with SuSE Linux 9.1

    > The businessworld is like prison and M$ made everybody their bitch.


  14. Re: log colorizer?

    On Thu, 4 Sep 2008, Kevin Nathan wrote:-

    >On Thu, 4 Sep 2008 12:06:05 +0100
    >David Bolt wrote:


    >>I'm curious to know what's causing the problems, and how you
    >>solve them.
    >>

    >
    >As am I! ;-)


    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:



    And the pre-built binary packages built using that source RPM here:










    Regards,
    David Bolt

    --
    www.davjam.org/lifetype/ www.distributed.net: 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

  15. Re: log colorizer?

    David Bolt wrote:
    > Alternatively, you can find my source RPM package, with a replacement
    > spec file and those patches here:


    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 http://www.houghi.org
    My experience with SuSE Linux 9.1

    > The businessworld is like prison and M$ made everybody their bitch.


  16. Re: log colorizer?

    houghi wrote:
    > Install with `OCICLI http://tinyurl.com/5lzden` or look at
    > http://software.opensuse.org/search?...=1&q=multitail
    > Or just click on http://tinyurl.com/5lzden
    >
    > Do not forget to read the multitail pages and also them man page and be
    > overwelmed with what is possible.


    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 http://htop.sourceforge.net/
    Installable from openSUSE and looks neat.
    The other is Saidar
    http://software.opensuse.org/search?...t=ALL&q=saidar and a
    screenshot http://www.debuntu.org/wp-content/up.../06/saitar.png

    houghi
    --



    This space left blank intentionaly

  17. Re: log colorizer?

    On Fri, 5 Sep 2008, houghi wrote:-

    >(And why don't you have an account there? ;-) )


    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

    --
    www.davjam.org/lifetype/ www.distributed.net: 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

  18. Re: log colorizer?

    David Bolt wrote:
    >
    >
    > On Fri, 5 Sep 2008, houghi wrote:-
    >
    >>(And why don't you have an account there? ;-) )

    >
    > 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.


    W00t! http://software.opensuse.org/search?...ALL&p=1&q=ccze 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 https://build.opensuse.org/documentation/obs/ and
    http://en.opensuse.org/SUSE_Build_Tutorial 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

  19. Re: log colorizer?

    houghi wrote:
    ....
    >
    > 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.


    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).

  20. Re: log colorizer?

    Chris Cox wrote:
    > 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).


    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 http://software.opensuse.org/search
    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

+ Reply to Thread
Page 1 of 3 1 2 3 LastLast