Logging

Logging appliance caching activity can be useful for a number of reasons, such as billing for services rendered. Excelerator lets you specify how often a new log file will be started (rolled over), how long log files will be retained, and what the format of the log files will be. For more information, see Logging in Volera Excelerator 2.3 Administration Guide.


Manually Downloading and Deleting Log Files

Whenever possible, we recommend you use the FTP Log Push feature to download and delete log files. See Using FTP Push to Automatically Download and Delete Log Files in Volera Excelerator 2.3 Administration Guide

If you need to manage your log files manually, you should establish a regular schedule and ensure that all those responsible for downloading and deleting log files know the following:

You will want to develop specific procedures for your situation. The following sections contain general ideas for accomplishing these tasks.


Getting Log Filenames

Before you can download or delete a log file, you must know its exact name.

Appliance log filenames can be listed in the browser-based management tool in Monitoring > Cache Logs. They can also be listed from the command line or through a Telnet session using the GET command.

The appliance automatically generates log filenames as follows:

This naming convention accommodates up to 702 log files per day. If the rollover options are set so that all the possible filenames are used in one day, the log file with the ZZ letter identifier is not closed until the start of the next day (unless the logging disk becomes full).

To list log files using FTP, you must know the path to the files. Use the following table to determine the paths to MMS log files.


Table .

File Location

MMS log files in extended format

LOG:ETC/PROXY/DATA/LOGS/SMC/EXTENDED/name

The variable name is the name of the streaming service.


Using the Browser-Based Tool to Get Filenames

You can most easily view log filenames in the browser-based management tool. To do so, click Monitoring > Cache Logs. Select a log format, then select a service.


Using FTP to Get Filenames

The Mini FTP Server in version 1.3 and later supports the CWD command for changing to the target log directories. All appliance versions let you use the LS command in connection with full paths to list log files.

For example, the following command lists transparent and forward proxy log files in extended format:

ls log:etc/proxy/data/logs/smc/extended/ 

For a complete list of log file directory paths, see Getting Log Filenames .


Using the Command Line or Telnet to Get Filenames

You can see a list of log filenames from the command line, but you cannot download files from the command line.

The following table presents some command line/Telnet examples.


Table .

If You Want To Then Enter

See a list of available forward/transparent log files in common format

get comlog forward

See a list of available Web server accelerator log files in common format

get comlog reverse:name

(The variable name is the name of the Web server accelerator.)

See a list of available filtering log files in appliance-filtering common format

get comlog filter

See a list of available forward/transparent log files in extended format

get extlog forward

See a list of available Web server accelerator log files in extended format

get extlog reverse:name

(The variable name is the name of the Web server accelerator.)


Downloading Log Files


Using the Browser-Based Management Tool to Download Log Files

You can download the files in the browser-based management tool as you view them. After you click Download, the browser asks what you want to do with the file. Save it to your designated log file storage location.


Using FTP to Download Log Files

You can use FTP and the GET command to retrieve log files from the storage location. To retrieve a file from storage, you must first obtain the log filename using one of the options explained in Getting Log Filenames .

After you have the log filename, you can transfer the file to your workstation from the storage location. For example, to download a forward proxy common format log file, start an FTP session with the appliance and enter:

get log:/etc/proxy/data/logs/forward/common/filename.log

The filename variable is the name of the log file you are downloading.

NOTE:  You can also use the mget command, but be aware that this command also downloads active log files that are not complete.

NOTE:  The appliance doesn't currently support the FTP server put command.


Deleting Downloaded Log Files

After the log files have been downloaded and saved to another location, delete the files using one of the following options:


Extended Log Field Headers

The following information about field values in extended log files will help you interpret the content of the files:

The information in the following table is supplementary to the W3C Extended Log Format Specification found on the Extended Log File Format Web site. You might find it useful for interpreting the content of extended log field headers.


Table .

Name Description Type Selectable Comments

date

GMT date in YYYY-MM-DD format

non-string

No

 

time

GMT time in HH:MM:SS format

non-string

No

 

c-ip

Client (browser) IP address

non-string

No

 

s-ip

The appliance IP address

non-string

Yes

 

cs-method

HTTP request method

non-string

Yes

 

cs-uri

The URL used by the player to request content

non-string

Yes

The URL must not have spaces per the HTTP specification.

sc-status

For HTTP only

non-string

Yes

 

sc-bytes

Bytes received from player

non-string

No

 

cs-bytes

Bytes sent to player

non-string

No

 

rs-bytes

Bytes received from origin

non-string

No

 

x-fill-proxy-ip

IP address of upstream proxy used for filling requests

non-string

Yes

 

x-origin-ip

IP address of streaming server used for filling requests

non-string

Yes