Vinay Paul. CONTENTS:- What is Event Log Service ? Types of event logs and their purpose. How and when the Event Log is useful? What is Event Viewer?

Slides:



Advertisements
Similar presentations
IT Technical Support South Nottingham College. Aims Knowledge of the Registry Discuss the tools available to support a technician Gain an understanding.
Advertisements

Networking Essentials Lab 3 & 4 Review. If you have configured an event log retention setting to Do Not Overwrite Events (Clear Log Manually), what happens.
Lesson 17: Configuring Security Policies
11 TROUBLESHOOTING Chapter 12. Chapter 12: TROUBLESHOOTING2 OVERVIEW  Determine whether a network communications problem is related to TCP/IP.  Understand.
Optimizing Windows Vista Performance Lesson 10. Skills Matrix Technology SkillObjective DomainObjective # Introducing ReadyBoostTroubleshoot performance.
Module 10: Troubleshooting Network Access. Overview Troubleshooting Network Access Resources Troubleshooting LAN Authentication Troubleshooting Remote.
2.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 2: Installing Windows Server.
Hands-On Microsoft Windows Server 2003 Administration Chapter 10 Monitoring and Troubleshooting Windows Server 2003.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 11: Monitoring Server Performance.
Chapter 11 - Monitoring Server Performance1 Ch. 11 – Monitoring Server Performance MIS 431 – created Spring 2006.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Chapter 16 Chapter 16: Troubleshooting. Chapter 16 Learning Objectives n Develop your own problem-solving strategy n Use the Event Viewer to locate and.
11 MONITORING MICROSOFT WINDOWS SERVER 2003 Chapter 3.
MCITP Guide to Microsoft Windows Server 2008 Server Administration (Exam #70-646) Chapter 14 Server and Network Monitoring.
Hands-On Microsoft Windows Server 2003 Administration Chapter 6 Managing Printers, Publishing, Auditing, and Desk Resources.
Maintaining and Updating Windows Server 2008
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network Chapter 14: Troubleshooting Windows Server 2003 Networks.
Check Disk. Disk Defragmenter Using Disk Defragmenter Effectively Run Disk Defragmenter when the computer will receive the least usage. Educate users.
Hands-On Microsoft Windows Server 2008 Chapter 11 Server and Network Monitoring.
CH 13 Server and Network Monitoring. Hands-On Microsoft Windows Server Objectives Understand the importance of server monitoring Monitor server.
Windows Server 2008 Chapter 11 Last Update
Maintaining Host Security Logs.  Security logs are invaluable for verifying whether the host's defenses are operating properly.  Another reason to maintain.
Event Viewer Was of getting to event viewer Go to –Start –Control Panel, –Administrative Tools –Event Viewer Go to –Start.
CONTENTS:-  What is Event Log Service ?  Types of event logs and their purpose.  How and when the Event Log is useful?  What is Event Viewer?  Briefing.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Automatic Software Testing Tool for Computer Networks ARD Presentation Adi Shachar Yaniv Cohen Dudi Patimer
M ONITORING SERVER PERFORMANCE Unit objectives Use Task Manager to monitor server performance and resource usage Use Event Viewer to identify and troubleshoot.
Virtual Memory Tuning   You can improve a server’s performance by optimizing the way the paging file is used   You may want to size the paging file.
Network and Active Directory Performance Monitoring and Troubleshooting NETW4008 Lecture 8.
1 Chapter Overview Monitoring Server Performance Monitoring Shared Resources Microsoft Windows 2000 Auditing.
Monitoring and Troubleshooting Chapter 17. Review What role is required to share folders on Windows Server 2008 R2? What is the default permission listed.
Ch 11 Managing System Reliability and Availability 1.
Chapter 17: Watching Your System BAI617. Chapter Topics Working With Event Viewer Performance Monitor Resource Monitor.
®® Microsoft Windows 7 for Power Users Tutorial 8 Troubleshooting Windows 7.
Hands-On Microsoft Windows Server 2008
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network Chapter 7: Domain Name System.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Hands-On Microsoft Windows Server 2008 Chapter 12 Managing System Reliability and Availability.
Managing and Monitoring Windows 7 Performance Lesson 8.
Module 7: Fundamentals of Administering Windows Server 2008.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
Module 10: Monitoring ISA Server Overview Monitoring Overview Configuring Alerts Configuring Session Monitoring Configuring Logging Configuring.
Windows Vista Inside Out Chapter 22 - Monitoring System Activities with Event Viewer Last modified am.
Module 2: Installing and Maintaining ISA Server. Overview Installing ISA Server 2004 Choosing ISA Server Clients Installing and Configuring Firewall Clients.
Computer Emergency Notification System (CENS)
What’s New in WatchGuard XCS v9.1 Update 1. WatchGuard XCS v9.1 Update 1  Enhancements that improve ease of use New Dashboard items  Mail Summary >
Maintaining and Updating Windows Server Monitoring Windows Server It is important to monitor your Server system to make sure it is running smoothly.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
Chapter 10 Chapter 10: Managing the Distributed File System, Disk Quotas, and Software Installation.
Troubleshooting Security Issues Lesson 6. Skills Matrix Technology SkillObjective Domain SkillDomain # Monitoring and Troubleshooting with Event Viewer.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 14: Windows Server 2003 Security Features.
Using Event Viewer Event Levels Creating Custom Views Windows Logs Monitoring Performance.
Module 8 : Configuration II Jong S. Bok
CH 13 Server and Network Monitoring. Hands-On Microsoft Windows Server Objectives Understand the importance of server monitoring Monitor server.
Configuring and Troubleshooting Identity and Access Solutions with Windows Server® 2008 Active Directory®
Understand Audit Policies LESSON Security Fundamentals.
Hands-On Microsoft Windows Server 2008 Chapter 5 Configuring Windows Server 2008 Printing.
Hands-On Microsoft Windows Server 2008 Chapter 7 Configuring and Managing Data Storage.
ITMT 1371 – Window 7 Configuration 1 ITMT Windows 7 Configuration Chapter 8 – Managing and Monitoring Windows 7 Performance.
Maintaining and Updating Windows Server 2008 Lesson 8.
Web Server Administration Chapter 11 Monitoring and Analyzing the Web Environment.
Windows Vista Configuration MCTS : Maintenance and Optimization.
Chapter Objectives In this chapter, you will learn:
Module Overview Installing and Configuring a Network Policy Server
Hands-On Microsoft Windows Server 2008
MONITORING MICROSOFT WINDOWS SERVER 2003
Chapter 2: The Linux System Part 5
Modern PC operating systems
PLANNING A SECURE BASELINE INSTALLATION
The Troubleshooting theory
Presentation transcript:

Vinay Paul

CONTENTS:- What is Event Log Service ? Types of event logs and their purpose. How and when the Event Log is useful? What is Event Viewer? Briefing Event Structure. Different Event Types Example Event Logging Functions References

The Event Log Service (ELS) is a component of the Windows operating system used to record and monitor significant events in a common and unified way. Many applications record errors and events in various proprietary error logs. These proprietary error logs have different formats and display different user interfaces. Moreover, you cannot merge the data to provide a complete report. Therefore, you need to check a variety of sources to diagnose problems.

To handle this problem, we have Event logging mechanism. It provides a standard, centralized way for applications (and the operating system) to record important software and hardware events. The event-logging service stores events from various sources in a single collection called an event log. The Event Viewer enables you to view logs; the programming interface also enables you to examine logs. The ELS acts as a mediator between the source of an event (an application, device driver, etc.) and the log file in which the event is written.

All the classes required for logging events to the windows event log are in the System. Diagnostics package. The most important class is the EventLog class. This allows reading and writing of event log entries. However, before any logs can be written an EventSource must be defined. A single line of event logging can greatly ease the tracking down of all exceptions that are not being specifically caught by the application code. The following line of code can be used: EventLog.WriteEntry("MyLogname",Server.GetLastError(). ToString(),EventLogEntryType.Error);

The ELS supports three default event logs, each of which has a specific purpose: The System Log: The System log records significant events that occur within components of the operating system (for example, a failure within a device driver). The Application log: The Application log records events from applications (for example, an unexpected application failure).

The Security log: The Security log provides a record of audited security activity (for example, accessing a protected file). Additional logs may be needed depending on the configuration of the Windows computer. For example: A computer configured as a Domain Name System(DNS) server, will have a DNS server log.

Event Log Event logs store records of significant events on behalf of the system and applications running on the system. Because the logging functions are general purpose, you must decide what information is appropriate to log. Generally, you should log only information that could be useful in diagnosing a hardware or software problem. Event logging is not intended to be used as a tracing tool. Choosing Events to Log: Resource problems: If an application gets into a low-memory situation (caused by a code bug or inadequate memory) that degrades performance, logging a warning event when memory allocation fails might provide a clue about what went wrong.

Hardware problems: If a device driver encounters a disk controller time-out, a power failure in a parallel port, or a data error from a network or serial card, logging information about these events can help the system administrator diagnose hardware problems. The device driver logs the error. Bad sectors : If a disk driver encounters a bad sector, it may be able to read from or write to the sector after retrying the operation, but the sector will go bad eventually. Therefore, if the disk driver can proceed, it should log a warning; otherwise, it should log an error event. If a file system driver finds a large number of bad sectors, fixes them, and logs warning events, logging information of this type might indicate that the disk is about to fail.

Information events: A server application (such as a database server) records a user logging on, opening a database, or starting a file transfer. The server can also log error events it encounters (cannot access file, host process disconnected, and so on), a corruption in the database, or whether a file transfer was successful. Event Viewer: Event Viewer is a Windows component that logs program, security and system events on your computer. You can use the Event viewer to manage the event logs, gather information about the software problems and monitor system events. To open the Event Viewer, go to Start -> Run -> eventvwr.

The ELS uses a standardized structure to represent all events, irrespective of the log in which the event will be stored. The following is the structure of an event:- Event Log Service

Event source name: This is the name of the event source used to log the event.(Typically name of the application). Message: This component gives description of the event, which may be used in determining the cause of a problem. Event type: There are five types of events that can be logged. All event classifications have well-defined common data and can optionally include event-specific data. The application indicates the event type when it reports an event. Event identifier and event category: The event identifier and category are application-specific numeric values. Binary data: The event may contain binary data that is of use to someone trying to resolve the problem that caused this event to occur

The Event types are classified into the following different types. Information - This type indicates a successful operation of an application. An example is a successful loading of a new virus definition file by antivirus software. Warning - This type indicates that there could be a potential problem in the future. The entries help in taking preventive measures. Error - This type indicates a significant problem. It lets us know if there was a failure in a critical task. Success Audit - This type indicates that an audited security event is successfully completed. For example, when a user authenticates successfully, there may be an entry of this type. Failure Audit - This type indicates that there was a failure of an audited security event.

Implementing the Event Logging mechanism in a.NET WebService.  using System. Diagnostics; Let us examine a WebMethod that potentially throws an exception. /// /// A Web method that divides two integers /// /// Numerator /// Denominator [WebMethod] public void DivideNumbers(int intNumerator, int intDenominator) { double dResult;

try { dResult = intNumerator / intDenominator; } catch (Exception e) { //Write to Event Log WriteToEventLog(e.Message, EventLogEntryType.Error); } When an exception occurs, it calls the WriteToEventLog method to write to the Event Log.

BackupEventLog: Saves the specified event log to a backup file. BackupEventLog ClearEventLog: Clears the specified event log, and optionally saves the current copy of the log to a backup file. ClearEventLog CloseEventLog: Closes a read handle to the specified event log. CloseEventLog GetEventLogInformation: Retrieves information about the specified event log. GetEventLogInformation GetNumberOfEventLogRecords: Retrieves the number of records in the specified event log. GetNumberOfEventLogRecords ReportEvent: Writes an entry at the end of the specified event log. ReportEvent Event Logging Functions

References ASP Alliance: MSDN: Oreilly.Programming.Dot.NET.Security. by Adam Freeman, Allen Jones

THANK YOU