473,320 Members | 2,071 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,320 software developers and data experts.

Exporting the System/Application event log

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 log. What I would like to do
is export that data to a .evt file, so that the log can be opened and viewed
in the Event Viewer. I was unable to find a way to accomplish this with the
methods provided in the EventLog class. Is there a way to export the logs to
a .evt file so that Event Viewer can read them?
Nov 16 '05 #1
1 2736
Any ideas, anyone?

"Z3Stealth" wrote:
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 log. What I would like to do
is export that data to a .evt file, so that the log can be opened and viewed
in the Event Viewer. I was unable to find a way to accomplish this with the
methods provided in the EventLog class. Is there a way to export the logs to
a .evt file so that Event Viewer can read them?

Nov 16 '05 #2

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

Similar topics

0
by: Chris | last post by:
Hi, I want my app to log various info to the Application Event Log. However I do not want my users to be Administrators. Can anybody point me to some documentation on how to add the correct...
0
by: J M | last post by:
I have Windows2000 Application Event Log file in CSV format with all kinds of entries However I need to process following types of records for print logs and generate report: 9/19/2003,8:15:57...
4
by: Aaron Hackney | last post by:
Hello. I am writing a service that I would like to have write access to the Application event log. Since the service is running as a system account, it would appear that I do not have access....
0
by: Tom Wingert | last post by:
Hi, I am having a problem with getting My.Log.WriteException to write to the Event Log in ASP.Net 2.0 with a web service. When an error occurs, My.Log.WriteException doesn't log anything to the...
2
by: Garth Wells | last post by:
What's the easiest way to write to the Application Event Log using C# in .Net 2.0? Thanks
3
by: sk.rasheedfarhan | last post by:
Hi all, According to my project requirement I have to write the NT Event information of SQL Server into EventLog viewer. For more clear I want to write the following information into...
6
by: JeffDotNet | last post by:
Writing to a registered source in the Application event log I have an asp.net framework 2.0 app that I created on a winxp machine and now I am deploying it to IIS6 on a win server2003 machine. ...
2
by: lucifer | last post by:
Hi we have Sun Java System Application Server Platform Edition 9.0 running in our office but I have to work in Php but dont know how to run php on the server. .So can any body tell me how can i...
2
by: TC | last post by:
I installed an ASP.NET application on my web server, but it doesn't work. When I browse to a page, I get an error message. The message doesn't say much, but it does tell me: An error message...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.