473,804 Members | 3,373 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

EventlLog - How to Query all the different logs

Tom
Is there an object that I can query that will return to me the different logs
in the EventLog? I know by default there exist a System, Security and
Application Eventl log.

But, I'd like to bind all the different logs dynamically to a dropDownList
control.

Just not sure which object to use.

I looked at Object EventLog but it did not have a method or property to
return the different logs within the Eventlog.

Thanks

Tom

PS I looked at
Nov 17 '05 #1
2 1235
"Tom" <To*@discussion s.microsoft.com > wrote in message
news:E4******** *************** ***********@mic rosoft.com...
Is there an object that I can query that will return to me the different
logs
in the EventLog? I know by default there exist a System, Security and
Application Eventl log.


Hi. You can pull the list from the Registry at:

HKLM\SYSTEM\Con trolSet001\Serv ices\Eventlog

-- Alan
Nov 17 '05 #2

"Tom" <To*@discussion s.microsoft.com > wrote in message
news:A3******** *************** ***********@mic rosoft.com...
Alan:

Thanks I can do that but do you know why the object model doesn't supply a
method or property?

Thanks

Tom


There is...

EventLog.GetEve ntLogs();

Willy.

Nov 17 '05 #3

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

Similar topics

3
2837
by: MX1 | last post by:
Here's a type of query I'm always having trouble with. There are 4 fields in a web access log table. User | Date | Time | Destination I want to show all the instances of a user hitting a particular web site, but I only want a single entry to represent that visit (not the 10 or 15 that represent every graphic that was obtained from the page as is typical with imported web logs).
4
1631
by: Brian Lowe | last post by:
I'm using Forms authentication with my user data in a SQL db. I have pages in the main appliaction folder accessible to anonymous users and I've set security to deny annonymous users access to pages in several sub folders (e.g. admin). I've set up a login page where users trying to access any /admin/ page are diverted to and on successful login they are redirected back to the page they requested. All is well. Everything works. I want...
1
1239
by: paul.dunstone | last post by:
Hi all I have an issue whereby I have a form which is split up into three different panels on the same page. However, as I requirment the IIS logs must record the three different stages of the form for analysis purposes. Therefore, I have been looking at ways in which I can write to the IIS logs file to append a record for each stage of the form. Can anyway advise me of the best way to achieve this?
2
2666
by: dayjah | last post by:
Hi, We are in the process of setting my mysql replication on mysql ver 4.1.18. However we have noticed an odd bug that occurs every so often. Every hour we issue flush logs to mysql so that we can move the bin logs to our backup server. In our mysql logs we notice the following; 060526 12:00:02 Failed to open log (file '/srv/backup/mysql/mysql-bin.000068', errno 2)
0
1222
by: cmessier | last post by:
Hello all, I'm using ASP.Net 2.0 to create a small web application that uses forms authentication. Currently, when a user logs out, a ReturnUrl is set in the QueryString. However, if at the login screen, I try to login as a different user, it still tries to send me back the ReturnUrl. The desired behavior would be that the login screen always sends the user to the DestinationPageUrl, regardless if the ReturnUrl is in the query...
1
1700
by: Chris Curvey | last post by:
Hi all, I've apparently tied myself up a bit using the logging package. In my project, I have a core set of model and controller classes that set up their logging using logging.fileConfig(). So far, so good. But I use these core classes from a bunch of different places. Sometimes from within a CherryPy server, sometimes batch jobs run from a command line, sometimes from Windows services (also written in
1
2501
by: JA | last post by:
Hi, I know just about nothing about SQL Server. I am getting this error: The log file for database 'my_database' is full. Back up the transaction log for the database to free up some log space. I can't access the transaction logs to back them up. I am told that my ISP's tech support should have it set up to shrink those logs automatically every so often. Is that true?
1
3978
by: bill.dourado | last post by:
Using DB2:- Product identifier SQL08027 Level identifier 03080106 Level DB2 v8.1.14.292 Build level s061108 PTF WR21377 Using the db2adutl query logs showing archived logs every second even though the Task Center schedule is set to run every hour. (archiving
3
2607
by: =?Utf-8?B?Q0QuU21hbGxleQ==?= | last post by:
Is there a command line switch available for the EventViewer which will allow me to specify which directory to view the available logs from? I will have multiple workstations writing to a mirrored set of really large flash drives. The workstations will write to their specific standard .evt files. I need to be able to start EventViewer and specify which workstations's logs to go view at startup. Is this possible w/o creating my own...
0
9705
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, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10310
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10074
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...
0
9138
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7613
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
6847
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
5515
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
5647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2983
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.