Sun ONE logo      Previous      Contents      Index      Next     

Sun ONE Web Server 6.1 Administrator's Guide

The Logs Tab


The Logs Tab allows you to configure your access and error logs, view them, and archive them.

The Logs Tab contains the following pages:


The View Access Log Page

If you are accessing this page from the Administration Server, see The View Access Log Page in the Administration Server section.

If you are accessing this page from the Virtual Server Manager, see The View Access Log Page in the Virtual Server Manager section.

The View Access Log page allows you to configure a customized view of the information about requests to the server instance and the responses from the server. You can also view logs through the Virtual Server Manager.

For more information, see the following sections:

The following elements are displayed:

Number of entries. Specifies the number of entries to retrieve (starting with the most recent).

Only show entries with. Specifies a string or a character to filter the log entries. Case is important; the case of the string or character specified in this field must match the case of the entry in the access log. For example, if you want to see only access log entries that contain POST, type “POST.” If all the virtual servers are logged to one main log file, and you have set up the log file to log the virtual server ID, enter the virtual server ID in this field to get just the entries for a single virtual server.

OK. Displays the log entries in the lower section of this page.

Reset. Erases your changes and resets the elements in the page to the values they contained before your changes.

Help. Displays online help.


The View Error Log Page

If you are accessing this page from the Administration Server, see The View Error Log Page in the Administration Server section.

If you are accessing this page from the Virtual Server Manager, see The View Error Log Page in the Virtual Server Manager section.

The View Error Log allows you to configure a customized view of the errors the server has encountered as well as the informational messages about the server, such as when the server was started and who has tried unsuccessfully to log in to the server. You can also view logs through the Virtual Server Manager.

For more information, see the following sections:

The following elements are displayed:

Number of errors to view? Specifies the number of entries to retrieve (starting with the most recent).

Only show entries with. Specifies a string or a character to filter the log entries. Case is important; the case of the string or character specified in this field must match the case of the entry in the error log. For example, if you want to see only those error messages that contain warning, type “warning.”

OK. Displays the log entries in the lower section of this page

Reset. Erases your changes and resets the elements in the page to the values they contained before your changes.

Help. Displays online help.


The Archive Log Files Page

The Archive Log page allows you to automatically rotate your access and error log files at regular intervals. When you archive log files, the server renames the current log files and then creates new log files with the original names. You can archive or delete the old log files, which are saved as the original file name followed by the date and time the file was archived. For example, access might become access.200307152400.

The Archive Log File page allows you to archive your log files immediately or specify days and times when archiving will take place.

When you archive logs, you archive all logs for all virtual servers.

For more information, see Archiving Log Files.

The following elements are displayed:

Internal daemon log rotation. Specifies whether to use Sun ONE Web Server internal system daemon log settings for log rotation.

Cron based log rotation. Specifies whether to use the operating system’s cron (or job scheduling) facility to schedule log archiving.


Note

Before archiving the log files, you must shut down the The Cron Control Page (UNIX/Linux) from the Administration Server.


OK. Saves your entries.

Reset. Erases your changes and resets the elements in the page to the values they contained before your changes.

Help. Displays online help.


The Access Log Preferences Page

The Access Log Preferences page allows you to specify what information is recorded in your server’s logs. Server log files can help you monitor your server’s activity and troubleshoot problems.

For more information, see Setting Access Log Preferences.


Note

You should not change the log format of a log that is already in use.


The following elements are displayed:

Editing. Specifies a resource to which custom logging is applied. If you choose a directory, custom logging applies only when the server receives a URL for that directory or any file in that directory. If you want to set up logging for individual virtual servers, use The Logging Settings Page in the Class Manager.

Go. Click this button to load data.

Browse. Allows you to browse your file system. After clicking this button, the The Choose a Part of Your Server Page page displays. Clicking the Options button on this page displays browse options. For information on the browse option, see The Browse Files On Your Server Page.

Wildcard. Specifies a wildcard pattern. the path used must be an absolute path to the file. For information on using wildcard patterns, see Wildcards Used in the Resource Picker.

Log client accesses? Specifies whether to include client accesses in your log files.

Log File. Specifies the absolute path for the access log file. As a default, the log files are kept in the logs directory in the server root. If you specify a partial path, the server assumes the path is relative to the logs directory in the server root.

If you are editing the entire server, the default value for this field is $accesslog, the variable that denotes the access log file for the server and virtual servers in the configuration file.

Record. Specifies whether the server should record domain names or IP addresses of the systems accessing the server in the access log.

Format. Specifies which type of log file format to use in the access log. You can select from the following:

Custom Format. Allows you to create a customized format for your access log. For more information about the parameters you should use for your custom format, see Setting Access Log Preferences.

OK. Saves your entries.

Reset. Erases your changes and resets the elements in the page to the values they contained before your changes.

Help. Displays online help.


The Choose a Part of Your Server Page

The Choose a Part of Your Server page is used to choose a particular file or a directory on which you want to configure remote file manipulation.

After you choose either a directory or a file, this page will lead back to The Remote File Manipulation Page to proceed with rest of the configuration for remote file manipulation. The following elements are displayed:

Back. Click the Back button to return to the previous page.

choose entire directory: Click the choose entire directory link to display the File Manipulation page, used to allow clients to perform remote file manipulation tasks on your server. For more information about performing remote file manipulation tasks, see The Remote File Manipulation Page.

Options. Click the Options button to display the Browse Files On Your Server page where you choose browsing options.For information on the browse option, see The Browse Files On Your Server Page.

Help. Displays online help.


The Browse Files On Your Server Page

The Browse Files On Your Server page allows you to browse the files on your server. The following elements are displayed:

Back. Click this button to return to the previous page.

List from. Specify the path for the directory you want to browse, and then choose from the following options:

OK. Click OK to display results.

Reset. Erases your changes and resets the elements in the page to the values they contained before your changes.

Help. Displays online help.


The Error Log Preferences Page

The Error Log Preferences page allows you to configure what information is recorded in your server’s error logs. Server error log files can help you monitor your server’s activity and troubleshoot problems.

For more information, see Setting Access Log Preferences.

The following elements are displayed:

Error Log File Name. Specifies the file that stores messages from the server

Log Level. Specifies the amount of information that can be logged in the errors log. The options are:

Log VSID. Check this if you want virtual server IDs to be displayed in the virtual server logs. This is useful if multiple VS elements share the same log file.

LogStdout. Check this if you want stdout output to be redirected to the errors log.

Log Stderr. Check this if you want stderr output to be redirected to the errors log.

Log To Console (UNIX only). Check this to redirect log messages to the console.

Use System Logging. Check this if you want to use the UNIX syslog service or Windows Event Logging to produce and manage logs.

Create Console (Windows Only). Check this to create a Windows console for stderr output.

OK. Saves your entries.

Reset. Erases your changes and resets the elements in the page to the values they contained before your changes.

Help. Displays online help.


The Generate Report Page

The Generate Report page allows you to generate a report about a server’s activity using the log analyzer. Use the log analyzer to generate statistics about your server, such as a summary of activity, most commonly accessed URLs, times during the day when the server is accessed most frequently, and so on. You can also run the log analyzer from the Server Manager or the command line.


Note

Before running the log analyzer, you should archive the server logs. For more information about archiving server logs, see Archiving Log Files.


For more information, see Running the Log Analyzer.

The following elements are displayed:

Server name. Specifies the name of the server for which to generate the report.

Output type. Specifies whether the report should be output to an HTML file or to a plain text (ASCII) file.

Log File. Specifies the log file or files to generate the report from. To select more than one file, hold the Control key when clicking on the file.

Output file. Specifies the absolute path to where the report should go. If you leave this field blank, the analyzer displays the results on the screen. For large log files, you should save the results to a file because displaying the output on the screen may take a long time.

Totals. Specifies whether you want to generate totals for statistics. Choose “Do not generate totals” if you do not want to generate totals for statistics. If you choose to generate totals, specify the items from the following list for which you would like to generate totals:

General Statistics. Specifies whether to generate general statistics. Choose “Do not generate general statistics” if you do not want to generate general statistics. If you choose to generate statistics, choose from the following:

Generate Lists. Specifies whether to generate lists. Choose Do not generate any list if you do not want to generate any lists. If you choose to generate lists, specify the items from the following list for which you would like to generate lists:

Output Order. Specifies the order of the output. Prioritize the following items from 1 to 3 in the order that you would like each section to appear in the report. If you chose to not generate any of them, the section will automatically be left out.

OK. Saves your entries.

Reset. Erases your changes and resets the elements in the page to the values they contained before your changes.

Help. Displays online help.



Previous      Contents      Index      Next     


Copyright 2004 Sun Microsystems, Inc. All rights reserved.