Parsing DBV log output to get only errored lines

Using powershell and dbv i got a list of log files with testing formation about integrity of oracle database files (*.dbf) that are located on computer.
One example file is attached (1_O1_MF_SYSAUX_52WRB0WR_.log)

I'm interested with section of this file:
Total Pages Examined         : 126720
Total Pages Processed (Data) : 59521
Total Pages Failing   (Data) : 0
Total Pages Processed (Index): 47677
Total Pages Failing   (Index): 0
Total Pages Processed (Other): 10292
Total Pages Processed (Seg)  : 0
Total Pages Failing   (Seg)  : 0
Total Pages Empty            : 9230
Total Pages Marked Corrupt   : 0
Total Pages Influx           : 0
Highest block SCN            : 4263640677 (0.4263640677)

And, actually, i need only lines, contained: "Total Pages Failing" , "Total Pages Marked Corrupt", "Total Pages Influx"

Using powershell i got:
select-string -path 'F:\_DBckeck_\logs\1_O1_MF_SYSAUX_52WRB0WR_.log' -pattern "Total Pages Failing", "Total Pages Marked Corrupt", "Total Pages Influx" | format-table -property Line

Line
----
Total Pages Failing   (Data) : 0
Total Pages Failing   (Index): 0
Total Pages Failing   (Seg)  : 0
Total Pages Marked Corrupt   : 0
Total Pages Influx           : 0

Open in new window


But also i need to get only lines, when all these five (5 lines) are not equal to zero (0), i mean - have numbers greater then 0 (zero).
1-O1-MF-SYSAUX-52WRB0WR-.log
LVL 2
Petr PoleshkoSystems administratorAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

footechCommented:
Perhaps something like this?
Get-Content .\1-O1-MF-SYSAUX-52WRB0WR-.log |
 Where { $_ -match "Total Pages (?:(Failing|Marked Corrupt|Influx)).+?: (?<count>[0-9]+)" } |
 Where { [int]$Matches.count -gt 0 }

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Petr PoleshkoSystems administratorAuthor Commented:
I wanted to get what i got, thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Powershell

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.