Solved

How to make an Automated script to convert Custom Log into Windows 2k3or8 Event Log

Posted on 2011-03-22
3
253 Views
Last Modified: 2012-05-11
Hi Guys,

I have a project in my hand that I need to Convert Custom log (which doesn't even have log level) to a Windows Event Log(SYSTEM)

so I can use the event log to monitor alerts for my monitoring system.

I feel this can be done by scripting and running while the log is writing in real time.


the custom log is actually very limited to change around since it doesn't have the source.

and the new log is created every 24hours. this is the tricky part that the log name is genereated with new time and date stamp.
0
Comment
Question by:ndoorsinteractive
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 37

Accepted Solution

by:
TommySzalapski earned 500 total points
ID: 35201255
Why not just write to the event log directly? Depending on what kind of C and compiler you are using, it could be really easy.
Using C/C++ with VS: http://www.codeproject.com/KB/system/mctutorial.aspx
Using Visual C++/C#: http://msdn.microsoft.com/en-us/library/system.diagnostics.eventlog.aspx
0
 
LVL 37

Expert Comment

by:TommySzalapski
ID: 35201282
You could just parse the created log files and write the events to the event log.

Or you could just change the formatting to match
http://msdn.microsoft.com/en-us/library/bb309026(v=vs.85).aspx
0
 

Author Comment

by:ndoorsinteractive
ID: 35708036
Thank you
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
Introduction This question got me thinking... (http://www.experts-exchange.com/questions/28707487/GLOBALS.html) Why shouldn't we use Globals? This is a simple question without a simple answer.  How do you explain these concepts to a programmer w…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
Suggested Courses

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question