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

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Parse Log Files
by GrandFather (Saint) on Jan 27, 2006 at 21:09 UTC

    This is the right place to get help, but to get good help you have to do a little work first.

    For a start you could provide a little sample of the data that you need to parse like this (note the use of <code> tags, see Writeup Formatting Tips):

    __DATA__ Warning: a warning message Exception: an exception message Message: a message

    Then to really get us excited about helping provide a sample of code that you have written and tell us where you are having trouble.

    Note that it is generally a bad idea to include email addresses in nodes as they can easily be picked up by spammers and other such low life. Most monks wouldn't email you an answer anyway because the next person to have a similar problem won't get the benefit of the question you asked.


    DWIM is Perl's answer to Gödel
Re: Parse Log Files
by atcroft (Abbot) on Jan 27, 2006 at 21:59 UTC

    Welcome to the Monastery, odysee7. I hope your stay here will be a productive and educational one.

    First of all, to your question....

    Regarding your actual question itself, it is a little difficult without at least an example of what you are looking for, data-wise. If the exception messages are one-per-line, then this reduces down to something on the order of

    Now, about your question....

    Again, welcome, and I hope your stay with be a productive, educational, and enjoyable one.

Re: Parse Log Files
by CountZero (Bishop) on Jan 27, 2006 at 21:09 UTC
    Sure, the monks are here to write wonderful programs for free at the request of each and everyone and we don't even ask the applicants to show they have made any effort in trying to do it themselves.

    Isn't that a bit of a strange request from someone whose e-mail address is hosted at a company which writes on their website:

    what we do
    Everstream enables the world’s largest digital service providers to mine, transform, warehouse, and analyze usage data from their interactive platforms.

    One would think that such programs are daily fare for people of Everstream.

    But since we are in a good mood, we will give you some free pointers to start your own research: hashes; angle bracket operator; while-loop;

    BTW: asking a similar question two times in a row will not get you an answer any faster (you can re-open and update your original node if necessary) and will not particualrly enamour you with the Monks here.

    CountZero

    "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

Re: Parse Log Files
by ikegami (Patriarch) on Jan 27, 2006 at 20:59 UTC

    I need help writing a perl script,

    You've come to the right place. What have you done so far? What's your first question?

    I recommend that you start by reading How (Not) To Ask A Question.

      Where do I begin, since I am new to perl and no very little.

        Begin by reading the tutorials section here and asking questions about stuff you don't understand.

        Read through some of the SoPW questions and replies that look interesting.

        Ask questions in the Chatterbox.

        Get or borrow the Camel (Programming Perl) or the Lama (Learning Perl).

        Write some simple Perl programs.


        DWIM is Perl's answer to Gödel
Re: Parse Log Files
by Anonymous Monk on Mar 04, 2011 at 12:11 UTC
    hello there.., i am newbiee to perl..and i have tried some of sample scripts..i have been assigned a task of generating sequence diagrams from log files after parsing.. i want to know how to parse log-files and to generate sequence diagrams from parsed log files..please help me in writing scripts for the required task...