Juniper MEDIA FLOW MANAGER 2.0.2 - ADMINISTRATOR S GUIDE AND CLI Administrator's Manual page 128

Administrator’s guide and cli command reference
Table of Contents

Advertisement

CHAPTER 5 CLI Commands
point to use. Truncation is done from the right, so you always get the <n> most
significant digits.
whole-digits
are 1, 6, and all (do not limit the number of digits to the left of the decimal point).
Truncation is done from the left, so you always have the <n> least significant digits.
Note that except for the year, all of these digits are redundant with syslog's own
datetime.
files
delete
rotation
upload
specify which (available ) log file first:
format
(standard), whether or not welf is used with it. Arguments:
standard
welf
that should be associated with each message logged in WELF format. If no firewall
128
logging
—Control the number of digits to the left of the decimal point; options
—Manage log files.
—Delete log files:
—Delete all current log files.
current
—Force immediate deletion of the specified number of oldest local log
oldest
files.
—Configure automatic rotation of local logging files.
—Configure what criteria decides when to automatically rotate local log
criteria
files on local persistent storage. There are three mutually exclusive options:
—Rotate based on time: daily (at midnight), weekly, or monthly
frequency
(first day, at midnight). Default is daily.
—Rotate log files that pass the specified size threshold.
size
—Rotate logs that pass the specified disk percentage.
size-pct
If a size criteria is chosen, the file size is checked hourly, so if it passes the
threshold in the middle of the hour it is not rotated right away.
—Force an immediate rotation of the local log files. This does not affect the
force
schedule of auto-rotation if it was done based on time: the next automatic rotation
still occurs at the same time it was previously scheduled. Naturally, if the auto-
rotation was based on size, this delays it somewhat as it reduces the size of the
active log file to zero.
—Configure how many old local log files to keep. If the number of log
max-num
files ever exceeds this number (either at rotation time, or when this setting is
lowered), the system deletes as many as necessary, starting with the oldest, to
bring it down to this number. Default is 10.
—Upload a local log file to a remote host (specified with URL or scp path);
—The current log file.
current
—Archived, compressed log file "messages.1.gz".
1
—Archived, compressed log file "messages.2.gz".
2
To specify an archived log file, give its number as displayed by show log files.
Note the current log file has the name "messages" if you don't specify a new name
for it in the upload URL. The archived log files have the name "messages.<n>.gz"
if you don't specify a new name in the URL, and are compressed with gzip
regardless. See the
"Command Arguments Key" on page 95
format and requirements.
—Set log messages format. The no variant resets the format to default
(default)—Squid standard format.
—Web trends Enhanced Log Format. Use fw-name to specify the firewall name
Media Flow Manager Administrator's Guide
for the scp URL
Copyright © 2010, Juniper Networks, Inc.

Advertisement

Table of Contents
loading

Table of Contents