473,626 Members | 3,459 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2806
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
1060
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 rights for this type of access to a standard user, or even better how could I assign these rights to the application only, so the users cannot get into the log and fiddle. Ideally user could view the Application log under instructions from the help...
0
1323
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 AM, Print, Information, None, 10, NT AUTHORITY\SYSTEM, NTBOX112, Document 111, TestFile.doc owned by MoJo(192.168.1.123) was printed on PRINTER1 via port PRINTER1. Size in bytes: 3128; pages printed: 4 9/19/2003,8:19:32 AM, Print, Information,...
4
2221
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. (Security Error). I am following the MSDN howto and it does not appear to have any additional requirements in their howto. If I run this as an application under my credentials (local admin) it runs just fine.
0
1754
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 Event Log. Played around with it and ended up adding the following listeners to catch and write to the event log by adding the following code in the web.config: <system.diagnostics>
2
1052
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
18498
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 Application log file: ------------------------------------------------------------------------------------------------------
6
3396
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. This application has to write to the application event log. After deployment of the application I have verified that my source “MySource” exists in the Application event log. I then wrote some text to the event source in a forms app and...
2
2119
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 run PHP scripts on Sun Java System Application Server Platform Edition 9.0 .I dont have much experience in Sun Java System Application Server Platform Edition 9.0 so plz give the explanation in detail
2
9576
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 detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur. How do I review the "application event log"? Is it a file on...
0
8268
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8202
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8707
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8510
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6125
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5575
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4093
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4202
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1512
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.