Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: log parser

by Anonymous Monk
on Jun 17, 2013 at 07:50 UTC ( #1039286=note: print w/replies, xml ) Need Help??


in reply to log parser

btw..this is the script with 1 min search result:

It doesn't do any searching at all

See perlintro, see ack

Replies are listed 'Best First'.
Re^2: log parser
by Happy-the-monk (Abbot) on Jun 17, 2013 at 07:57 UTC

    The link to "ack" is unfortunately broken.
    What did you mean it to point at, Anonymous Monk?

    Cheers, Sören

    Added later: Thanks for the links, Anonymous Monk

    (hooked on the Perl Programming language)

      Like some kind of ack or ack -- dang, its not like checking links is hard for a computer :)
Re^2: log parser
by alex_fatu (Novice) on Jun 17, 2013 at 08:09 UTC
    maybe, for me, the word "search" means something else. let me put it this way:

    i tested on a directx log with size=1.8 Go and i manually inserted word "eroare" in some lines.
    when running that script..word "eroare" it's printed on perl cmd if the script finds that word in directx.log.

    thank you.
    Alex

      maybe, for me, the word "search" means something else. let me put it this way:

      :) My turn

      input_record_separator separates "records" , like by default it does "lines" , you can't use it to parse logs, you can't use it to search

      For searching you need index/rindex/Regular expressions

        thank you for your ans.
        i'll read the perl intro and try to use regexp/index.

        Alex
Re^2: log parser
by perlfan (Curate) on Jun 17, 2013 at 10:52 UTC
    y u no like grep?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1039286]
help
Chatterbox?
[ambrus]: Today I accidentally cut my hand while carrying a computer. On the display part of the motherboard that sticks out at the back of the chasis and has ports, there's this thin metal sheet with holes cut for the ports, to guide plugs into the sockets.
[ambrus]: This sheet has sharp needle-like parts, 0.004 long and less than 0.001 wide, that can get bent to point outwards, and one of these cut into my palm when I lifted the box.
[ambrus]: So now when I choose what motherboard to buy for my new home computer, I have one more specific property to guide me. Useful, because there's so many different boards to choose from.
[Corion]: Well, no computer will start up without the blood sacrifice being made!

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (10)
As of 2017-01-16 19:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (151 votes). Check out past polls.