Media Flow Controller CLI Commands : accesslog

accesslog
Use these commands to set access log options. The accesslog records all command executions. See “Service Log Options” on page 93 for task details including information on log rotation. See “Service Log (accesslog)” on page 118 for usage information, status codes and sub-codes.
accesslog
copy <SCP>
filename {access.log | <filename>}
format {<field1 field2 …> | clf | display | ncsa | ncsa-ext}
on-the-hour {disable | enable}
rotate {filesize-MB <integer> | time-interval <hour(s)>}
syslog replicate {enable | disable}
Type accesslog to enter accesslog configuration mode; only accesslog commands are available. Type exit to leave accesslog configuration mode. Notes:
copy—Set auto-upload (when the set rotate filesize-MB criteria is reached) for access log using SCP (secure channel protocol), to the server specified using hostname. If username and password are provided, Media Flow Controller uses that for authentication of the SCP session. Use no accesslog copy to disallow auto upload. See the “Command Arguments Key” on page 161 for the scp URL format and requirements.
filename—Configure the name of the file where the access log is stored. Default is accesslog.<num>.yyyymmdd_hour:min:sec (numbered sequentially).
format—Specify a format for the access log; see Table 22, next for format field options. Default is %h %V %u %t %r %s %b "%{Referer}i" "{User-Agent}i" %y.
<field1 field2 ...>—Choose available field options, described in Table 22, next.
clf—Common Log Format: %h %V %u %t %r %s %b
display—Either enable (default) or disable the display of the format in the log.
ncsa—National Center for Supercomputing Applications, default format (given above) without the %y field.
ncsa-ext—Default format (given above).
on-the-hour—Set hourly log rotation. Default is no (disabled).
rotate—Media Flow Controller allows access log rotation based on file size or time. If copy auto-upload has been configured, the log is uploaded to the specified copy URL; if copy auto-upload has not been configured, the log is replaced with a new log.
filesize-MB—Set rotation based on file size. Media Flow Controller creates "access.log.1," "access.log.2" and so on all the way to "access.log.10," after which it wraps around. By default, each file size is 100MB. Juniper Networks highly recommends not increasing the size; huge file transfers take a lot of time, and if there is a system reset, large volumes of data are at risk.
time-interval—Set rotation based on time. Specify a time in hours after which the access log is rotated.
syslog replicate—Specify whether or not the access log messages are seen as part of SYSLOG also. Default is no (disabled), access log is not seen as part of SYSLOG.
show accesslog
Display access log settings.
Note! Media Flow Controller accesslog is enabled by default and cannot be disabled.
Note! View the Media Flow Controller accesslog through the Management Console, Logs > Service Log page.

Report an Error
Media Flow Controller Administrator's Guide and CLI Command Reference
Copyright © 2010 Juniper Networks, Inc.