Hi,
I need to format the below logs.
Following is the real world example.
Input File.
---INPUT DATA---
---------------------------------
--> Checking Server Hostname <--
---------------------------------
Server Hostname: xxxxxxxxx
---------------------------------------
--> Checking Authentication Domain <--
---------------------------------------
Server is authenticating against: xxxxxxxxx
--------------------------------------
--> Validating DNS Server Entries <--
--------------------------------------
Servers should conform to global ANYCast Standard
DNS Name : xxxxxx [WARNING]
Please check the DNS name.
--------------------------------------
--> Validating APP Server Entries <--
--------------------------------------
Buffer size: [WARNING]
Invalid Log count. Required buffer size is 20.
Output File
--REQUIRED OUTPUT DATA---
Validating DNS Server Entries
--------------------------------------
DNS Name : xxxxxx [WARNING]
Please check the DNS name.
Validating APP Server Entries
--------------------------------------
Buffer size: [WARNING]
Invalid Log count. Required buffer size is 20.
We need capture only the WARNING messages along with the
Heading.
after this I want to send a mail.
Thank You.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/