Macromedia flash media server 2-managing flash media server ユーザーズマニュアル

ページ / 238
Logging client connections and other system events
35
Access log file
Flash Media Server 2 maintains an access log that includes statistics about client connections 
and stream activity. Flash Media Server 2 also maintains application logs for application 
activities and application logs for diagnostic logs. The application and diagnostic logs are an 
addition to operating system logs that log error and informational messages about Flash 
Media Server 2 operations.
The access log records information about requests by Flash Player and Flash Media Server 2 
application instances. Using these logs, you can find out when a user connected to the server, 
the total bandwidth consumed during the session, and information about resources such as 
the streams accessed by the connection. You can use this information to determine which 
applications are the most frequently used. 
The default access log is access.xx.log, which is located in the Flash Media Server 2 logs 
directory. The default configuration for Flash Media Server 2 creates a single access log per 
server. You can also configure Flash Media Server 2 to create a separate file per vhost. When 
logging is configured on a per-vhost basis, all logs for a particular vhost are found in a 
subdirectory within the logs directory. The name of the subdirectory matches the vhost name. 
Substitution strings can be found in the [] brackets, YYYY, MM, DD, and NN representing 
year, month, date, and version. You can use the substitution string to customize the filename 
of the access log.
To configure the server to create separate log files for each vhost, set the value of the 
Scope
 tag 
in the Server.xml file to “vhost” (see the description of the tag 
For more information on logging, see 
.
Flash Media Server 2 defines event categories, and for each category it defines events that can 
be recorded. Logging can be customized to record all events or only specific events. This 
determines how much information is collected.
The following table lists the access events defined in the Access logs.
Event
Category
Description
connect-
pending
application
Client connects to the server, waiting for the script to 
authenticate.
connect
application
Client connects to the server.
disconnect
application
Client disconnects.
publish
application
Client publishes a live stream.
unpublish
application
Client unpublishes a live stream.
play
application
Client plays a recorded or live stream.