EasyManuals Logo

Juniper JUNOS OS 10.3 - SYSTEM LOG MESSAGES REFERENCE 7-12-2010 User Manual

Juniper JUNOS OS 10.3 - SYSTEM LOG MESSAGES REFERENCE 7-12-2010
748 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #89 background imageLoading...
Page #89 background image
[edit system]
syslog {
file alarms {
kernel warning;
}
}
Configure the handling of messages of various types, as described in the comments.
Information is logged to two files, to the terminal of user alex, to a remote machine, and
to the console:
[edit system]
syslog {
/* write all security-related messages to file /var/log/security */
file security {
authorization info;
interactive-commands info;
}
/* write messages about potential problems to file /var/log/messages: */
/* messages from “authorization” facility at level “notice” and above, */
/* messages from all other facilities at level “warning” and above */
file messages {
authorization notice;
any warning;
}
/* write all messages at level “critical and above to terminal of user “alex” if */
/* that user is logged in */
user alex {
any critical;
}
/* write all messages from the “daemon” facility at level info and above, and */
/* messages from all other facilities at level “warning” and above, to the */
/* machine monitor.mycompany.com */
host monitor.mycompany.com {
daemon info;
any warning;
}
/* write all messages at level “error” and above to the system console */
console {
any error;
}
}
Configure the handling of messages generated when users issue Junos OS CLI commands,
by specifying the interactive-commands facility at the following severity levels:
info—Logs a message when users issue any command at the CLI operational or
configuration mode prompt. The example writes the messages to the file
/var/log/user-actions.
notice—Logs a message when users issue the configuration mode commands rollback
and commit. The example writes the messages to the terminal of user philip.
warning—Logs a message when users issue a command that restarts a software
process. The example writes the messages to the console.
25Copyright © 2010, Juniper Networks, Inc.
Chapter 1: Configuring System Log Messages

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Juniper JUNOS OS 10.3 - SYSTEM LOG MESSAGES REFERENCE 7-12-2010 and is the answer not in the manual?

Juniper JUNOS OS 10.3 - SYSTEM LOG MESSAGES REFERENCE 7-12-2010 Specifications

General IconGeneral
BrandJuniper
ModelJUNOS OS 10.3 - SYSTEM LOG MESSAGES REFERENCE 7-12-2010
CategorySoftware
LanguageEnglish

Related product manuals