Specifications

7-32
Cisco Internet Streamer CDS 2.0-2.3 Software Configuration Guide
OL-13493-04
Chapter 7 Monitoring the Internet Streamer CDS
Transaction Logs
An Extended Squid-style log format example looks like this:
1012429341.115 100 172.16.100.152 TCP_MISS/302 184 GET http://www.cisco.com/cgi-bin/login
DIRECT/www.cisco.com
Apache
The Apache format is the Common Log File (CLF) format defined by the World Wide Web Consortium
(W3C) working group. This format is compatible with many industry-standard log tools. For more
information, see the W3C Common Log Format website at the following URL:
http://www.w3.org/Daemon/User/Config/Logging.html.
The Apache-style log file format is as follows:
URI SE-IP-address bytes-sent object-size bytes-received method status time-received time-to-serve
An Apache-style log file format example looks like this:
http://spcdn-se612-5.se.sanity.spcdn.net/gmedia-0.4gb.wmv SPCDN-SE612-5.spcdn.com
363704065 137 363710748 GET 200 [06/Nov/2007:00:25:32 +0530] 325033158
Custom Format
The transaction-logs format custom command allows you to use a log format string to log additional
fields that are not included in the predefined Extended Squid format or Apache CLF format. The log
format string is a string that can contain the tokens listed in Table 7-26 and that mimics the Apache log
format string. The log format string can contain literal characters that are copied into the log file. Double
backslashes (\\) can be used to represent a literal backslash, and a backslash followed by a single quote
(\’) can be used to represent a literal single quote. A literal double quote cannot be represented as part
of the log format string. The control characters \t and \n can be used to represent a tab and a new line
character, respectively.
The following command can be entered to generate the well-known Apache Combined Log Format:
transaction-logs format custom "%t%r %>s %b"
The following transaction log entry example is configured by using the preceding custom format string:
[11/Jan/2003:02:12:44 -0800] "GET http://www.cisco.com/swa/i/site_tour_link.gif HTTP/1.1" 200
3436
Table 7-26 Custom Format Log Format String Values
Format Token Value
%a IP address of the requesting client.
%A IP address of the SE.
%b Bytes sent, excluding HTTP headers.
%D Time consumed to serve the request in microseconds
%h Remote host (IP address of the requesting client is logged).
%H Request protocol.
%I Bytes received from the client.
%m Request method.
%O Bytes sent to client, including the headers.