473,395 Members | 1,452 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

vb.net event logs saving file

I'm automating a piece of my app to allow my customers to send me a
copy of their event logs (for diagnostics) on demand just through the
click of a button. I know I can use the EventLog/EventObjEntry objects
and write the event entries to another flat file or xml or something
like that, but I think that will take way too long to run based on just
iterating through the entries and writing to a file.

What I'd like to do is basically what you can do in EventViewer, just
make another copy of the .evt file and send that. The catch I have is
how to determine programatically the file name of the log from the log
name. For example, the "Application" log is
\system32\config\appevent.evt. Is there some way to determine this for
my custom logs, so I can then just do a file.copy of the file and send
that. Is it a hard rule that all event logs are stored in
\system32\config ? What if the name of the log is > 8 characters ?

Or is there a better way I'm not thinking of. Basically, all I'm
trying to do is get several event logs and other debugging files sent
to me w/o the customer having to get the files manually and send thru
email or something.

Thanks,
Mark

Jul 21 '05 #1
0 1427

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: David Bear | last post by:
I would like to develop some tools to better understand/analyze windows event logs. What I've done is export the event log as a delimited file, then try to use awk or python to parse the info....
0
by: Gnaneshwar Babu | last post by:
Hi I am facing a problem with extracting event logs of win32 to a file. Am using the following code to extract eventlogs to file use Win32::EventLog; $handle=Win32::EventLog->new("System",...
1
by: Z3Stealth | last post by:
I am writing a function in C# that will export the Application and System event logs to a file for viewing on another PC. I am using the EventLog class, and am able to browse the events in the...
2
by: Strah | last post by:
Is there a way to make my VB.NET application aware when user is logging off? I would like to have my app save some data to the network's database before the user logs off without closing...
1
by: marfi95 | last post by:
I'm automating a piece of my app to allow my customers to send me a copy of their event logs (for diagnostics) on demand just through the click of a button. I know I can use the...
0
by: marfi95 | last post by:
I'm automating a piece of my app to allow my customers to send me a copy of their event logs (for diagnostics) on demand just through the click of a button. I know I can use the...
7
by: =?Utf-8?B?U3RldmVU?= | last post by:
I have a small app which tries reading the system, application, and security event logs within Vista. Many of the event logs return with a generic sentance indicating that: "The description for...
7
by: danrabydotcom | last post by:
I have an application that reaches out and gathers stats, if those stats are out of bounds, it logs them. Currently I have a string builder thats accumulates all logs durring the session and...
1
by: PRR | last post by:
I have a functions (rather events).. which write to event logs every 3 to 5 seconds..There are 5 to 10 functions which do this .. writing to event logs... i m aware of the fact that writing to event...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.