Advertisement

11.06.2003 at 05:59AM PST, ID: 20789791
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.6

Looking for a method to take a raw log file and format it into HTML

Asked by stevecamp in Perl Programming Language

Tags:

Hi

My question is, I would like to find a way to take a log file on a unix server and have a script that parses that log file and pipes it into HTML for easier viewing. The format that the log file takes currently looks like this:

servername MEMORY.MEMORY.MEMPageFreed ALARM:value=285 at 11/04/2003 13:17:23  --  cse1
servername MEMORY.MEMORY.MEMPageFreed WARN:value=86 at 11/04/2003 13:18:06  --  cse1
servername FILESYSTEM.root.FSCapacity ALARM:value=96 at 11/04/2003 13:18:30  --  ucse1
servername FILESYSTEM.stage.FSCapacity ALARM:value=98 at 11/04/2003 13:18:26  --  cse1

The log file entries above (4 separate ones) detail when a certain threshold is reached for a server parameter, for example when a filesystem breaches 95%. The log file is generated from an application called Patrol which monitors all systems for a multitude of paramaters and warns or alarms when they reach certain values. Not to get off the subject anymore than that, is there a way to read that file and output it to HTML on that server?

To slightly complicate things, these values are generated in real-time, could be written to the log in a matter of seconds or minutes, depending on if a value is reached. Therefore, the script would need to somehow continually read from the file or be activated when the log file is updated somehow.

Would it also be possible to parse the file in such a way that only the lines in the file where the value amount is, say, greater than 95 for example be viewable in the report? I am a real beginner with Perl programming and programming in general so any help on this would be greatly appreciated.

Thanks.

Start Free Trial
[+][-]11.06.2003 at 10:51AM PST, ID: 9695895

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.06.2003 at 12:16PM PST, ID: 9696575

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.06.2003 at 01:12PM PST, ID: 9696911

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.06.2003 at 01:16PM PST, ID: 9696946

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.07.2003 at 07:03AM PST, ID: 9701580

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.11.2003 at 09:39AM PST, ID: 9723885

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.13.2003 at 10:03AM PST, ID: 9741359

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Perl Programming Language
Tags: alarm
Sign Up Now!
Solution Provided By: rootkiddy
Participating Experts: 2
Solution Grade: A
 
 
[+][-]11.13.2003 at 12:12PM PST, ID: 9742313

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.13.2003 at 12:13PM PST, ID: 9742325

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44