2440: 141 Web Site Administration Web Server Monitoring and Analysis Instructor: Enoch E. Damson.

Slides:



Advertisements
Similar presentations
1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
Advertisements

© 2006 KDnuggets [16/Nov/2005:16:32: ] "GET /jobs/ HTTP/1.1" "
 2003 Prentice Hall, Inc. All rights reserved. Chapter 21 – Web Servers (IIS and Apache) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3 System.
Server-Side vs. Client-Side Scripting Languages
1 Configuring Web services (Week 15, Monday 4/17/2006) © Abdou Illia, Spring 2006.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 11: Monitoring Server Performance.
Web Servers How do our requests for resources on the Internet get handled? Can they be located anywhere? Global?
Chapter 11 Monitoring and Analyzing the Web Environment.
Chapter Apache Installation in Linux- Mandrake. Acknowledgment The following information has been obtained directly from
How Clients and Servers Work Together. Objectives Learn about the interaction of clients and servers Explore the features and functions of Web servers.
CP476 Internet Computing Browser and Web Server 1 Web Browsers A client software program that allows you to access and view Web pages on the Internet –Examples.
Introduction 2: Internet, Intranet, and Extranet J394 – Perancangan Situs Web Program Sudi Manajemen Universitas Bina Nusantara.
E-insights, LLC © 2000 All rights reserved. Understanding Web Traffic Michael Whelan Part 1 of 2.
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 21: Publishing Your Pages on the Web.
Sharepoint Portal Server Basics. Introduction Sharepoint server belongs to Microsoft family of servers Integrated suite of server capabilities Hosted.
Linux Operations and Administration
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.
Ch 11 Managing System Reliability and Availability 1.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Chapter 7: Using Windows Servers to Share Information.
1 Web Server Concepts Dr. Awad Khalil Computer Science Department AUC.
4-1 INTERNET DATABASE CONNECTOR Colorado Technical University IT420 Tim Peterson.
Server tools. Site server tools can be utilised to build, host, track and monitor transactions on a business site. There are a wide range of possibilities.
Lecturer: Ghadah Aldehim
An introduction to Apache. Different Types of Web Servers Apache is the default web server for may Unix servers. IIS is Microsoft’s default web server.
14 Publishing a Web Site Section 14.1 Identify the technical needs of a Web server Evaluate Web hosts Compare and contrast internal and external Web hosting.
JavaScript, Fourth Edition Chapter 12 Updating Web Pages with AJAX.
9/15/2015© 2008 Raymond P. Jefferis IIILect Application Layer.
Copyright ®xSpring Pte Ltd, All rights reserved Versions DateVersionDescriptionAuthor May First version. Modified from Enterprise edition.NBL.
XHTML Introductory1 Linking and Publishing Basic Web Pages Chapter 3.
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Copyright 2000 eMation SECURITY - Controlling Data Access with
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 21 - Web Servers (IIS, PWS and Apache) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3.
HOW WEB SERVER WORKS? By- PUSHPENDU MONDAL RAJAT CHAUHAN RAHUL YADAV RANJIT MEENA RAHUL TYAGI.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
Course ILT Internet/intranet support Unit objectives Use the Internet Information Services snap-in to manage IIS, Web sites, virtual directories, and WebDAV.
Chapter 1: The Internet and the WWW CIS 275—Web Application Development for Business I.
Module 10: Monitoring ISA Server Overview Monitoring Overview Configuring Alerts Configuring Session Monitoring Configuring Logging Configuring.
Database-Driven Web Sites, Second Edition1 Chapter 5 WEB SERVERS.
MySQL and PHP Internet and WWW. Computer Basics A Single Computer.
Guide to Linux Installation and Administration, 2e1 Chapter 10 Managing System Resources.
Overview Managing a DHCP Database Monitoring DHCP
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network, Enhanced Chapter 5: Managing and Monitoring DHCP.
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.
Module 13: Performing Preventive Maintenance. Overview Performing Daily Exchange Maintenance Performing Scheduled Exchange Maintenance Performing On-Demand.
ECEN “Internet Protocols and Modeling”, Spring 2012 Course Materials: Papers, Reference Texts: Bertsekas/Gallager, Stuber, Stallings, etc Class.
1 UNIT 13 The World Wide Web Lecturer: Kholood Baselm.
Configuring and Troubleshooting Identity and Access Solutions with Windows Server® 2008 Active Directory®
Free Powerpoint Templates Page 1 Free Powerpoint Templates Users and Documents.
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
Web Server Administration Chapter 11 Monitoring and Analyzing the Web Environment.
JavaScript and Ajax (Internet Background) Week 1 Web site:
Module 6: Administering Reporting Services. Overview Server Administration Performance and Reliability Monitoring Database Administration Security Administration.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 Chapter 22 World Wide Web (HTTP) Chapter 22 World Wide Web (HTTP) Mi-Jung Choi Dept. of Computer Science and Engineering
1 UNIT 13 The World Wide Web. Introduction 2 The World Wide Web: ▫ Commonly referred to as WWW or the Web. ▫ Is a service on the Internet. It consists.
Web Server Administration Chapter 11 Monitoring and Analyzing the Web Environment.
Windows Server 2003 { First Steps and Administration} Benedikt Riedel MCSE + Messaging
Web and Proxy Server.
IS333D: MULTI-TIER APPLICATION DEVELOPMENT
IIS.
Configuring Internet-related services
Presentation transcript:

2440: 141 Web Site Administration Web Server Monitoring and Analysis Instructor: Enoch E. Damson

Monitoring and Analyzing Systems Monitoring operating systems, Web servers, applications, etc typically involves analyzing log files Log files – contain information recorded by the operating system in response to certain events Monitoring and Analyzing the Web Server Environment2

Monitoring Operating Systems Logs are used to detect problems OS, application, or security problems Various tools can monitor performance Monitoring and Analyzing the Web Server Environment3

Monitoring Windows Performance monitoring allows you to compare system performance over time Windows Task Manager highlights CPU and memory usage You can modify services to notify you if a service fails Monitoring and Analyzing the Web Server Environment4

Windows Event Viewer The event viewer contains six event types shown in the left pane Monitoring and Analyzing the Web Server Environment5

Windows Event Logs System and application events display three levels of messages Information Warning Error Because many messages can be generated, a filter focuses on what you want to see Over time, the logs fill up so you should clear them or save them Monitoring and Analyzing the Web Server Environment6

Monitoring Linux Logging is controlled by the syslogd daemon Below are some facilities which represent daemons using syslogd Monitoring and Analyzing the Web Server Environment7

Eight Levels of Message Priorities in syslogd Monitoring and Analyzing the Web Server Environment8

Web Server Log Files Files that keep track of Web server transactions Most Web servers write two log files to disk: Access log – contains a line for each Web server request Error log – contains a line for each generated error response When log files grow: A common practice is to put the log files on a separate drive or partition A better solution is to rotate the log files Rename or remove the log files at regular intervals (weekly, monthly, etc) Monitoring and Analyzing the Web Server Environment9

Web Server Log File Formats Most Web servers support at least two logging formats: Common Logfile Format (CLF) Extended Logfile Format (ELF) Most Web servers also allow the administrator to specify a custom format, along with the above formats A standard logfile format makes it easier for users to understand files from different servers Allows third-party logfile analysis tools to support many different Web servers Monitoring and Analyzing the Web Server Environment10

Common Logfile Format (CLF) The NCSA and CERN Web servers first used this file format Many Web servers now support this format (IIS, Apache, Netscape Enterprise, etc) Each line in the file represents a unique request Has a fixed format with seven fields to be logged: remotehost rfc1413 authuser [date] “request” status bytes Monitoring and Analyzing the Web Server Environment11

Common Logfile Format… remotehost – remote (client) hostname or IP number rfc1413 – remote username rfc1413 defines a protocol used to determine the identity of a client that requests a resource from the server Seldom used on Internet servers because it slows the server’s response A “-” is entered into the log if the server is unable to determine a userid authuser – when required, the username by which the user has authenticated is provided A “-” is used for normal unrestricted requests [date] – date and time of the request Enclosed in brackets for potential spaces “request” – HTTP request line exactly as it came from the client Enclosed in quotes for potential spaces status – HTTP status code returned to the client bytes – content length of document transferred Example: [24/Oct/2006:09:11: ] "GET /test.asp HTTP/1.1" Monitoring and Analyzing the Web Server Environment12

Extended Logfile Format (ELF) Used to log more information or omit certain fields Allows the administrator to specify exactly which fields to log and in what order Each represents a request like CLFs but the beginning of the file also contains some configuration directives Each directive line begins with a # Two directives are required and must precede all entries in the log file: Version – specifies the version of the ELF to use Fields – specifies what data to record in the logfile Monitoring and Analyzing the Web Server Environment13

Extended Logfile Format… Example: #Software: Microsoft Internet Information Services 5.1 #Version: 1.0 #Date: :04:57 #Fields: date time c-ip cs-method cs-uri-stem sc-status sc-bytes cs-version :04: GET /test.asp HTTP/1.1 The fields directive here specifies 8 out of several available fields: date – client request date time – client request time c-ip – client IP address cs-method – HTTP request method cs-uri-stem – file requested by client sc-status – HTTP status code returned to the client sc-bytes – number of bytes sent from server to client cs-version – version of HTTP used by client to connect to the server Monitoring and Analyzing the Web Server Environment14

Error Logs Contains informational messages and debugging information Useful for: Finding problems with the server Debugging server-side programs and new configurations Most server packages allow the administrator to control what types of messages are logged to the error log file The format is usually not configurable like ELFs but allows some flexibility in choosing the severity and type of messages to log E.g only critical messages may be logged if a server is running smoothly Monitoring and Analyzing the Web Server Environment15

Referrers Determines what Web page was used by the client to access a server May be the URL of a search engine or any Web site with a link to the Web server A “-” is used if there was no Referrer header sent The Referrer header is not sent in the following circumstances: The users enters the URL by hand The user clicked on a link to regular file and not a Web page on a public site The user loaded the URL from a bookmark file The Referrer URL is on a private (internal) Web site The user or browser has disabled sending the Referrer header Monitoring and Analyzing the Web Server Environment16

Monitoring IIS IIS has specific counters for use in the Performance Monitor The System event viewer provides specific information IIS has extensive logging capabilities There are default log formats used by various third-party applications that analyze logs Monitoring and Analyzing the Web Server Environment17

Monitoring Apache Error Logs By default, syslogd sends Apache messages to /var/log/boot.log Location of the error log ErrorLog logs/error_log Logs refers to /var/log/httpd You can create a different error log for each virtual host Monitoring and Analyzing the Web Server Environment18

Monitoring Apache Transfer Logs Transfer logs tell you about the use of your Web site The default log is based on a combined format Determined by the CustomLog directive in the configuration file (httpd.conf) There are a number of sample formats By default, logs are stored in /var/log/httpd/access_log Monitoring and Analyzing the Web Server Environment19

Monitoring DNS BIND uses a logging statement that you configure in named.conf BIND defines logging in two parts: Channel defines where logging is sent Category defines what will be sent If the channel is going to a file, use the versions option to define the number of backups Size option sets maximum size of the file print-time adds the date and time to the file Monitoring and Analyzing the Web Server Environment20

BIND Categories Monitoring and Analyzing the Web Server Environment21

Monitoring Exchange Server Exchange server uses the application portion of Event viewer You can enable four types of logs audit – access to mailboxes protocol – commands used for SMTP, etc message tracking – senders and receivers diagnostic – analyze detailed problems Monitoring and Analyzing the Web Server Environment22

Analysis Tools for the Web Server Analysis tools extract system data from logs and format the data For IIS, one of the popular tools is WebTrends Helps you determine the source of Web traffic Determines which pages are most popular Several different reports 123LogAnalyzer is available for both IIS and Apache Many reports are similar to WebTrends Monitoring and Analyzing the Web Server Environment23

Log File Analysis Simply looking at log files can provide a lot of information about activities or requests on a server Simply counting the number of lines in an access log file can help determine the number of hits Log files may be reviewed regularly to find the common errors logged Some of the common errors include: Dead links Requests for non-existing files CGI scripts not working properly Permissions problems Some of the open-source log analyzers are: Analog ( Webalizer ( Report Magic ( Monitoring and Analyzing the Web Server Environment24

Statistics With the help of several log analyzer programs, some of the statistical information that can be extracted include: Most requested pages Top entry pages (the first page clients enter a site through) Most used browsers Bandwidth utilization Most active domains Top referring sites and URLs Error counts Information about search engines (most common search engines, common queries, etc) Some of the widely used commercial log analyzer products include: WebTrends ( Wusage ( A database could also be used to store log information to increase efficiency of logging and report generation Not all Web servers support logging to a database Monitoring and Analyzing the Web Server Environment25