Solved

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

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

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

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

Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
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…
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.

773 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