113
Chapter 12
Working with Log Files
If you disable NNTP and ICP log splitting, NNTP and ICP transactions are placed in the same log file as HTTP
and FTP transactions. Using the previous example hosts and assuming the Squid log format, Traffic Server
generates these log files:
Traffic Server also enables you to create XML-based custom log formats that offer even greater control over
log file generation based on protocol and hostname. For more information, see
Using custom formats‚ on
page 103
.
Setting log splitting options
You can set log splitting options by using Traffic Manager or by editing a configuration file manually. Both
procedures are provided below.
To set log splitting options from Traffic Manager:
1. Access Traffic Manager from your browser (refer to
Accessing Traffic Manager‚ on page 8
).
2. On the Configure tab, click the Logging button.
3. Scroll to the Log Splitting section of the Logging page (shown below).
4. Click the NNTP Log Splitting: On button to record all NNTP transactions in a separate log file.
Click the NNTP Log Splitting: Off button to record all NNTP transactions in the same log file as HTTP/
FTP transactions.
5. Click the ICP Log Splitting: On button to record all ICP transactions in a separate log file.
Click the ICP Log Splitting: Off button to record all ICP transactions in the same log file as HTTP/FTP
transactions.
6. Click the HTTP Host Log Splitting: On button to record all HTTP/FTP transactions for each origin server
listed in
log_hosts.config
file in a separate log file.
Click the HTTP Host Log Splitting: Off button to record all HTTP/FTP transactions for each origin
server listed in
log_hosts.config
file in the same log file.
7. Click the Make These Changes button.
To set log splitting options manually:
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
records.config
file located in the Traffic Server’s
config
directory with Vi.
Log file name
Description
squid-uni.edu.log
All entries for
uni.edu
squid-company.com.log
All entries for
company.com
squid.log
All other entries