Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
The stupid question is the question not asked
 
PerlMonks  

Re: parsing problem

by Anonymous Monk
on May 01, 2012 at 08:06 UTC ( #968212=note: print w/ replies, xml ) Need Help??


in reply to parsing problem

Hi :)

<code></code> tags, they're for both code and DATA

For date/time regex see Regexp::Common::time

For some ideas on parsing, see Template::Extract - Use TT2 syntax to extract data from documents

<p> DEBUG [% count %] [% datetime%],[% seconds %] [[% firstpart %]] [% + rest %] </p>

So you might write this, esp since your log format seems to be line-oriented

DEBUG (?<count>\d+) (?<datetime>$reDateTime),(?<seconds>\d+) \[ (?<fir +stpart>[^\]]+)\](?<rest>.*)$

Things get easier if you can get a hold of the original log format specification, it will resemble the above examples

pic is short for picture (as in photograph), pick means to choose ( or pierce )


Comment on Re: parsing problem
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2013-06-20 02:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many continents have you visited?









    Results (678 votes), past polls