Solved

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

Posted on 2011-03-22
3
228 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
  • 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Console based application in Linux 1 76
map interface methods 3 52
sameEnds challenge 25 71
Math Question 1 52
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…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now