Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
static class 3 61
hasOne  challenge 59 125
xamarin c# deserialize Json containing nested object 2 81
Acrinis True image 2 58
Dependencies in Software Design In software development, the idea of dependencies (http://en.wikipedia.org/wiki/Coupling_%28computer_programming%29) is an issue of some importance. This article seeks to explain what dependencies are and where they …
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…
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 switch statements in the C programming language.

911 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

23 Experts available now in Live!

Get 1:1 Help Now