CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced: Re: [KevinR] Help Parsing a line please.: Edit Log



cuboidgraphix
User

Jan 14, 2009, 12:30 PM


Views: 6554
Re: [KevinR] Help Parsing a line please.


In Reply To
post some sample lines of data inside of the code tags to retain the formatting.

To me it looks like you could maybe use the split() function but without a better understanding of the data and what the columns represent its hard to say.


Header:

Code
# Index    Status Activity Date/Time             Source    Severity FaultName


Data:

Code
# 90148 Nak    Active   "14 Jan 09 00:00:57" "O%:CBS1:BSM1:BSMPerfandUtil1" MINOR "CPU Usage exceeded the Threshold" 
# 90148 Nak Clear "14 Jan 09 00:07:59" "O%:CBS1:BSM1:BSMPerfandUtil1" MINOR "CPU Usage exceeded the Threshold"
# 90148 Ack Clear "14 Jan 09 00:07:59" "O%:CBS1:BSM1:BSMPerfandUtil1" MINOR "CPU Usage exceeded the Threshold"
# 1692545 Nak Active "14 Jan 09 01:48:32" "O%:CBS1:Cells1:MC800BTS1029:MCBTSSubsystem1:Root1:CEM2" MINOR "SWERR log threshold exceeded at CEM, please upload the log // [XCEM] SWERR Log"



(This post was edited by cuboidgraphix on Jan 14, 2009, 12:42 PM)


Edit Log:
Post edited by cuboidgraphix (User) on Jan 14, 2009, 12:42 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives