bea.com | products | dev2dev | support | askBEA
 Download Docs   Site Map   Glossary 
Search

Administration Console Online Help

 Previous Next Contents Index  

 


Server --> Logging --> HTTP

Tasks     Related Topics     Attributes

Overview

The Server—>Logging—>HTTP tab configures HTTP logging for the server. If you enable HTTP logging, the server saves HTTP requests in a separate log file; it does not store HTTP requests in the server log file or the domain log file.

You can also specify the name of the log file that stores HTTP requests and the longevity and format of the data in the file.

Note: If you set up HTTP logging for a virtual host, all HTTP requests for the virtual host are saved in a separate log file.

Tasks

Specifying HTTP Log File Settings for a Server

Related Topics

For more information about log files, refer to Setting Up HTTP Access Logs. This topic includes information about using the extended format in HTTP logs.

For information about VirtualHosts, refer to "Configuring Virtual Hosting" under Configuring WebLogic Server Web Components.

Attributes

Table 1-13

Attribute Label

Description

Value Constraints

Enable HTTP Logging

Enables logging of HTTP requests.

MBean: weblogic.management.
configuration.
WebServerMBean

Attribute: LoggingEnabled

Default: true

Valid values:

  • true

  • false

Configurable: yes

HTTP Log File Name

The HTTP request log file The name of the file that stores HTTP requests. If the pathname is not absolute, the path is assumed to be relative to the root directory of the machine on which the server is running.

This value is relevant only if HTTP logging is enabled.

MBean: weblogic.management.
configuration.
WebServerMBean

Attribute: LogFileName

Default: access.log

Configurable: yes

Format

Specifies the format of the HTTP log file. Both formats are defined by the W3C. With the extended log format, you use server directives in the log file to customize the information that the server records.

MBean: weblogic.management.
configuration.
WebServerMBean

Attribute: LogFileFormat

Default: "common"

Valid values:

  • "common"

  • "extended"

Configurable: yes

Dynamic: yes

Log Buffer Size

The maximum size (in kilobytes) of the buffer that stores HTTP requests. When the buffer reaches this size, the server writes the data to the HTTP log file. Use the LogFileFlushSecs property to determine the frequency with which the server checks the size of the buffer.

MBean: weblogic.management.
configuration.
WebServerMBean

Attribute: LogFileBufferKBytes

Units: kilobytes

Minimum: 0

Maximum: 1024

Default: 8

Configurable: yes

Rotation Type

Criteria for moving old HTTP requests to a separate log file:

  • size. When the log file reaches the size that you specify in MaxLogFileSizeKBytes, the server renames the file as LogFileName.n.

  • date. At each time interval that you specify in LogRotationPeriodMin, the server renames the file as LogFileName.n.

After the server renames a file, subsequent messages accumulate in a new file with the name that you specified in LogFileName.

MBean: weblogic.management.
configuration.
WebServerMBean

Attribute: LogRotationType

Default: "size"

Valid values:

  • "size"

  • "date"

Configurable: yes

Maximum Log File Size

The maximum size (in kilobytes) of the HTTP log file. After the log file reaches this size, the server renames it as LogFileName.n. 0 causes the file to grow indefinitely.

This property is relevant only if you choose to rotate files by size.

MBean: weblogic.management.
configuration.
WebServerMBean

Attribute: MaxLogFileSizeKBytes

Units: kilobytes

Minimum: 0

Default: 0

Configurable: yes

Rotation Period

The interval (in minutes) at which the server saves old HTTP requests to another log file. This value is relevant only if you use the date-based rotation type.

MBean: weblogic.management.
configuration.
WebServerMBean

Attribute: LogRotationPeriodMins

Units: minutes

Minimum: 1

Maximum: 2147483647

Default: 1440

Configurable: yes

Rotation Time

Determines the start time for a time-based rotation sequence. At the time that this value specifies, the server renames the current log file as LogFileName.n. Thereafter, the server renames the log file at an interval that you specify in LogRotationPeriodMins. You can create a recurring start time such as "every Monday at 09:00" or a non-recurring start time such as "9 January, 2002, 09:00."

Use the following java.text.SimpleDateFormat format to specify a date and time: MM-dd-yyyy-k:mm:ss. For information about this format, refer to the <a href="http://java.sun.com/j2se/1.3/docs/api/index.html">J2EE Javadoc</a>.

If the date that you specify has already past, then the day in week (E), hour in day (H), minute in hour (m) and second in minute (s) are used with the current date to recalculate a start time.

MBean: weblogic.management.
configuration.
WebServerMBean

Attribute: LogRotationTimeBegin

Configurable: yes

Flush Every

The interval (in seconds) at which the server checks the size of the buffer that stores HTTP requests. When the buffer exceeds the size that is specified in the LogFileBufferKBytes property, the server writes the data in the buffer to the HTTP request log file.

MBean: weblogic.management.
configuration.
WebServerMBean

Attribute: LogFileFlushSecs

Units: seconds

Minimum: 1

Maximum: 360

Default: 60

Configurable: yes

 

Back to Top Previous Next