114
Chapter 12
Working with Log Files
3. Edit the following variables:
4. Save and close the
records.config
file.
5. Run the command
traffic_line -x
to apply the configuration changes.
Editing the log_hosts.config file
The default
log_hosts.config
file is located in Traffic Server’s
config
directory. To record HTTP/FTP
transactions for different origin servers in separate log files, you must specify each origin server’s hostname
on a separate line in the file.
To edit the log_hosts.config file:
1. Telnet into the HP web cache appliance and select Shell Access as described in
Overview of Access
Methods‚ on page 7
.
2. Open the
log_hosts.config
file located in Traffic Server’s
config
directory with Vi.
3. Enter the hostname of each origin server on a separate line in the file. For example:
webserver1
webserver2
webserver3
4. Save and close the
log_hosts.config
file.
5. Run the command
traffic_line -x
to apply the configuration changes.
records.config Variable
Description
proxy.config.log2.separate_icp_logs
Set this variable to 1 to record all ICP transactions in a
separate log file. Set this variable to 0 to record all ICP
transactions in the same log file as HTTP/FTP transactions.
proxy.config.log2.separate_nntp_logs
Set this variable to 1 to record NNTP transactions in a
separate log file. Set this variable to 0 to record all NNTP
transactions in the same log file as HTTP/FTP transactions.
proxy.config.log2.separate_host_logs
Set this variable to 1 to record HTTP/FTP transactions for
each host listed in log_hosts.config file in a separate log file.
Set this variable to 0 to record all HTTP/FTP transactions for
each host listed in the log_hosts.config file in the same log
file.
NOTE
If Traffic Server is clustered and if you enable log file collation, HP recommends that
you use the same
log_hosts.config
file on every Traffic Server node in the cluster.