rootstock has asked for the wisdom of the Perl Monks concerning the following question:

hi, there is a solaries log server which receive all message from a good number of routers. now the problem is the minor messages are too many . i want to make a filter by perl to filter the unimportant message. is there a log modules in perl could do so? please give me some advice, thank you very much.

Replies are listed 'Best First'.
Re: log server modules
by sauoq (Abbot) on Jul 29, 2003 at 17:19 UTC

    Assuming you mean syslog files, you can find Parse::Syslog on CPAN. I tried it out once and was not very happy with it though. I don't recall the details of my disappointment.

    -sauoq
    "My two cents aren't worth a dime.";
    
Re: log server modules
by MidLifeXis (Monsignor) on Jul 29, 2003 at 17:43 UTC
    I have used SWATCH in the past, but was not terribly impressed. It may, however, meet your needs.
Re: log server modules
by blue_cowdawg (Monsignor) on Jul 29, 2003 at 17:21 UTC

    The problem I am going to have in answering your question is basicly one of problem definition. What do you consider as important messages and what do you consider as unimportant?

    As far as CPAN modules are concerned there are a boatload of them that you can choose from depending the fine tuned problem set is that you are trying to solve.

    Personally I normally just open the log file I am in interested in scanning and do pattern matching on what I am looking for.


    Peter @ Berghold . Net

    Sieze the cow! Bite the day!

    Test the code? We don't need to test no stinkin' code! All code posted here is as is where is unless otherwise stated.

    Brewer of Belgian style Ales