CHAPTER 5 CLI Commands
Media Flow Manager Administrator’s Guide
128
logging
Copyright © 2010, Juniper Networks, Inc.
point to use. Truncation is done from the right, so you always get the <n> most
significant digits.
•
whole-digits
—Control the number of digits to the left of the decimal point; options
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
—Manage log files.
•
delete
—Delete log files:
•
current
—Delete all current log files.
•
oldest
—Force immediate deletion of the specified number of oldest local log
files.
•
rotation
—Configure automatic rotation of local logging files.
•
criteria
—Configure what criteria decides when to automatically rotate local log
files on local persistent storage. There are three mutually exclusive options:
−
frequency
—Rotate based on time:
daily
(at midnight),
weekly
, or
monthly
(first day, at midnight). Default is
daily
.
−
size
—Rotate log files that pass the specified
size
threshold.
−
size-pct
—Rotate logs that pass the specified disk percentage.
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
—Force an immediate rotation of the local log files. This does not affect the
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.
•
max-num
—Configure how many old local log files to keep. If the number of log
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
—Upload a local log file to a remote host (specified with
URL
or
scp
path);
specify which (available ) log file first:
•
current
—The current log file.
•
1
—Archived, compressed log file "messages.1.gz".
•
2
—Archived, compressed log file "messages.2.gz".
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
for the
scp
URL
format and requirements.
•
format
—Set log messages format. The
no
variant resets the format to default
(
standard
), whether or not
welf
is used with it. Arguments:
•
standard
(default)—Squid standard format.
•
welf
—Web trends Enhanced Log Format. Use
fw-name
to specify the firewall name
that should be associated with each message logged in WELF format. If no firewall
Содержание MEDIA FLOW MANAGER 2.0.2 - ADMINISTRATOR S GUIDE AND CLI
Страница 6: ...Media Flow Manager Administrator s Guide VI Copyright 2010 Juniper Networks Inc...
Страница 12: ...TABLE OF CONTENTS Media Flow Manager Administrator s Guide XII Copyright 2010 Juniper Networks Inc...
Страница 16: ...LIST OF FIGURES XVI Copyright 2010 Juniper Networks Inc...
Страница 152: ...CHAPTER 5 CLI Commands Media Flow Manager Administrator s Guide 152 write Copyright 2010 Juniper Networks Inc...