Juniper JUNOS OS 10.3 - SYSTEM LOG MESSAGES REFERENCE 7-12-2010 Reference Manual page 11

System log messages reference
Table of Contents

Advertisement

Table of Contents
Part 1
Chapter 1
Copyright © 2010, Juniper Networks, Inc.
About This Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . lvii
Junos Documentation and Release Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . lvii
Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . lviii
Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . lviii
Supported Platforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . lviii
Using the Examples in This Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . lix
Merging a Full Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . lix
Merging a Snippet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . lx
Documentation Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . lx
Documentation Feedback . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . lxii
Requesting Technical Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . lxii
Self-Help Online Tools and Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . lxii
Opening a Case with JTAC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . lxiii
Overview
Configuring System Log Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
System Logging Configuration Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Minimum and Default System Logging Configuration . . . . . . . . . . . . . . . . . . . . . . . 4
Minimum System Logging Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Default System Log Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Configuring System Logging for a Single-Chassis System . . . . . . . . . . . . . . . . . . . . 7
Specifying the Facility and Severity of Messages to Include in the Log . . . . . . 8
Directing Messages to a Log File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Logging Messages in Structured-Data Format . . . . . . . . . . . . . . . . . . . . . . 11
Directing Messages to a User Terminal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Directing Messages to the Console . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Directing Messages to a Remote Machine or the Other Routing Engine . . . . . 12
Specifying an Alternative Source Address for System Log Messages . . . 13
Changing the Alternative Facility Name for Remote Messages . . . . . . . . 13
Examples: Assigning an Alternative Facility . . . . . . . . . . . . . . . . . . . . . . . 15
Adding a Text String to System Log Messages . . . . . . . . . . . . . . . . . . . . . 16
Adding a String . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Configuring the Size and Number of Log Files . . . . . . . . . . . . . . . . . . . . . . . . . 17
Including Priority Information in System Log Messages . . . . . . . . . . . . . . . . . . 18
Including the Year or Millisecond in Timestamps . . . . . . . . . . . . . . . . . . . . . . . 21
Using Regular Expressions to Refine the Set of Logged Messages . . . . . . . . . 22
Disabling Logging of a Facility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Examples: Configuring System Logging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
xi

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os 10.3 - software

Table of Contents