Juniper MEDIA FLOW CONTROLLER 2.0.4 - ADMINISTRATOR S GUIDE AND CLI Administrator's Manual page 230

Administrator’s guide and cli command reference
Table of Contents

Advertisement

Configuring and Using Media Flow Controller Logs and Alarms
The precision can be controlled with the two digits commands which control the number
of digits to the right (fractional) and left (whole) of the decimal point; all = no limit. Except
for the year, all of these digits are redundant with syslog's own datetime.
logging fields seconds enable
logging fields seconds whole-digits {1 | 6 | all}
logging fields seconds fractional-digits {1 | 2 | 3 | 6}
9. Configure when log files on local persistent storage should be automatically rotated.
Choose one of two mutually exclusive options: rotation based on time, or active log file
size. Default is time = daily (once per day at midnight).
logging files rotation criteria frequency {daily | weekly | monthly}
logging files rotation criteria size <log_file_size_threshold>
logging files rotation criteria size-pct
<log_file_size_percent_threshold>
10. Configure how many old log files are kept. When the number of log files exceeds this
number (either at rotation time, or when this setting is lowered), the system deletes as
many as necessary to bring it down to this number, starting with the oldest.
logging files rotation max-num <maximum_number_of_files_to_keep>
11. Force an immediate rotation of the all log files.
logging files rotation force
12. Delete a specified number of the oldest log files.
logging files delete oldest [<number of files to delete>]
13. Upload a log file to a remote host. The word current specifies the current log file. To
specify an archived log file, give its number instead, as displayed by show log files.
logging files upload {current | <file number>} <URL>
14. View a local log file. If <file_number> is specified, view an archived log file, where the
number is from 1 up to the number of archived log files (10 is the default maximum
allowed); the higher the number, the more recent the log file. If [not] matching <regex> is
specified, the file is filtered to only include lines either matching, or not matching, the
provided regular expression.
show log [files <file_number>] [[not] matching <regex>]
15. Display the last few lines of the current log file, and then continue to display new lines as
they come in, until you press Ctrl+C. If [not] matching <regex> is specified, only log lines
matching, or not matching, the provided regular expression are printed.
regex entries in single quotes.
show log continuous [[not] matching <regex>]
16. Display logging configuration settings or a list of local log files.
show logging
show log files
Example:
test-vos (config) # logging local notice
test-vos (config) # logging level cli commands notice
test-vos (config) # logging 123.54.10.12
test-vos (config) # logging 123.54.10.12 trap emerg
test-vos (config) # logging local override class mgmt-front priority info
test-vos (config) # logging 123.54.10.12 trap override class mgmt-front
priority info
test-vos (config) # logging 123.54.10.12 trap none
test-vos (config) # logging receive
230
Media Flow Controller System Logging Overview
Media Flow Controller Administrator's Guide
Note!
Enclose all regex entries in single quotes.
Note!
Copyright © 2010, Juniper Networks, Inc.
Enclose all

Advertisement

Table of Contents
loading

This manual is also suitable for:

Media flow controller 2.0.4

Table of Contents