112
Chapter 12
Working with Log Files
Splitting event log files
By default, Traffic Server uses standard log formats and generates separate log files for HTTP/FTP, NNTP,
and ICP transactions. Under most circumstances, this default behavior offers the most flexibility for collecting
and analyzing log files. However, you can disable log splitting if you prefer to log all transactions for all
protocols in the same log file.
NNTP log splitting
When NNTP log splitting is enabled (the default behavior), Traffic Server records NNTP transactions in a
separate log file with a name that contains
nntp
. For example, if you enable the Squid format, traffic Server
records all NNTP entries in the
squid-nntp.log
file.
When you disable NNTP log splitting, Traffic Server records NNTP transactions in the same log file as HTTP
and FTP transactions.
ICP log splitting
When ICP log splitting is enabled (the default behavior), Traffic Server records ICP transactions in a separate
log file with a name that contains
icp
. For example, if you enable the Squid format, all ICP transactions are
recorded in the
squid-icp.log
file.
When you disable ICP log splitting, Traffic Server records all ICP transactions in the same log file as HTTP
and FTP transactions.
HTTP host log splitting
HTTP host log splitting enables you to record HTTP/FTP transactions for different origin servers in separate
log files. When HTTP host log splitting is enabled, Traffic Server creates a separate log file for each origin
server listed in the
log_hosts.config
file.
When NNTP, ICP, and host log splitting are all enabled, Traffic Server generates separate log files for HTTP/
FTP transactions, based on the origin server, and places all NNTP and ICP transactions in their own respective
log files.
For example, suppose the
log_hosts.config
file contains the two origin servers
uni.edu
and
company.com
, and the Squid format is enabled. Traffic Server generates the following log files:
NOTE
If you are using a standard log file format (such as Squid or Netscape), Traffic Server
always records HTTP and FTP transactions in the same log file. You cannot generate
separate log files for transactions using these two protocols.
Log file name
Description
squid-uni.edu.log
All HTTP and FTP transactions for
uni.edu
squid-company.com.log
All HTTP and FTP transactions for
company.com
squid-nntp.log
All NNTP transactions for all hosts
squid-icp.log
All ICP transactions for all hosts
squid.log
All HTTP and FTP transactions for other hosts