Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: log parser

by alex_fatu (Novice)
on Jun 17, 2013 at 08:09 UTC ( #1039289=note: print w/ replies, xml ) Need Help??


in reply to Re: log parser
in thread log parser

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


Comment on Re^2: log parser
Re^3: log parser
by Anonymous Monk on Jun 17, 2013 at 08:41 UTC

    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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1039289]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2014-09-20 08:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (157 votes), past polls