103
Chapter 12
Working with Log Files
4. To use the Netscape Common format, edit the following variables:
5. To use the Netscape Extended format, edit the following variables:
6. To use the Netscape Extended2 format, edit the following variables:
7. Save and close the
records.config
file.
8. Run the command
traffic_line -x
to apply the configuration changes.
Using custom formats
In addition to the standard log file formats, Traffic Server also supports two models for specifying custom log
files:
•
Traditional (simple)
•
XML-based (highly configurable)
Using the XML-based format, you can also create summary log files.
Create a custom log specification if you need data for analysis that is not available in the standard formats.
You can decide what information to record for each Traffic Server transaction, and using the XML-based
custom format, you can create filters to define which transactions to log.
Variable
Description
proxy.config.log2.common_log_enabled
Set this variable to 1 to enable the Netscape Common log
file format.
proxy.config.log2.common_log_is_ascii
Set this variable to 1 to enable ASCII mode.
Set this variable to 0 to enable binary mode.
proxy.config.log2.common_log_name
Enter the name you want to use for Netscape Common
event log files. The default is
common
.
proxy.config.log2.common_log_header
Enter the header text you want to display at the top of the
Netscape Common log files.
Variable
Description
proxy.config.log2.extended_log_enabled
Set this variable to 1 to enable the Netscape Extended log
file format.
proxy.config.log2.extended_log_is_ascii
Set this variable to 1 to enable ASCII mode.
Set this variable to 0 to enable binary mode.
proxy.config.log2.extended_log_name
Enter the name you want to use for Netscape Extended
event log files. The default is
extended
.
proxy.config.log2.extended_log_header
Enter the header text you want to display at the top of the
Netscape Extended log files.
Variable
Description
proxy.config.log2.extended2_log_enabled
Set this variable to 1 to enable the Netscape Extended2
log file format.
proxy.config.log2.extended2_log_is_ascii
Set this variable to 1 to enable ASCII mode.
Set this variable to 0 to enable binary mode.
proxy.config.log2.extended2_log_name
Enter the name you want to use for Netscape Extended2
event log files. The default is
extended2
.
proxy.config.log2.extended2_log_header
Enter the header text you want to display at the top of the
Netscape Extended2 log files.