Configuring Log Verbosity For Individual Logs Or All Logs; Setting The Timestamp For Log Messages - Juniper JUNOSE SOFTWARE FOR E SERIES 11.3.X - SYSTEM EVENT LOGGING REFERENCE GUIDE 2010-10-04 Reference Manual

Software for e series broadband services routers system event logging reference guide
Hide thumbs Also See for JUNOSE SOFTWARE FOR E SERIES 11.3.X - SYSTEM EVENT LOGGING REFERENCE GUIDE 2010-10-04:
Table of Contents

Advertisement

JunosE 11.3.x System Event Logging Reference Guide

Configuring Log Verbosity for Individual Logs or All Logs

Example

Setting the Timestamp for Log Messages

14
The default verbosity setting for all logs is low. To change the logging verbosity of an
individual log, specify a category when you enter the log verbosity command. To change
the log verbosity of every log, do not specify an event category when you enter the log
verbosity command. However, after you enter the log verbosity command without
specifying a particular event category, all logs are set to the new verbosity. No log verbosity
overrides are saved.
The following example sets all log categories to verbosity medium, and then it sets the
verbosity level for ds3 events to high.
host1(config)#log verbosity medium
host1(config)#log verbosity high ds3
You can use the service timestamps command to format timestamps for log messages.
By default, log messages display universal coordinated time (UTC) without the time
zone.
The following examples illustrate how you can change the timestamp on log messages.
Set the time zone to eastern daylight time (EDT), 5 hours behind UTC, and display the
local time on the log messages.
host1(config)#clock timezone EDT -5
Display UTC, but no time zone, on the log messages.
host1(config)#service timestamps log datetime
host1#exit
host1#show log data category cliCommand severity info
***********************************************************
NOTICE 05/14/2001 18:24:49 cliCommand: "configure terminal", console
NOTICE 05/14/2001 18:24:45 cliCommand: "service timestamps log datetime",
console
***********************************************************
Display UTC and the time zone on the log messages.
host1#configure terminal
host1(config)#service timestamps log datetime show-timezone
host1(config)#exit
host1#show log data category cliCommand severity info
***********************************************************
NOTICE 05/14/2001 18:28:45 UTC EDT cliCommand: "configure terminal",
console
NOTICE 05/14/2001 18:28:42 UTC EDT cliCommand: "service timestamps log
datetime show-timezone", console
***********************************************************
Display no timestamp on the log messages.
host1#configure terminal
host1(config)#no service timestamps
Copyright © 2010, Juniper Networks, Inc.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the JUNOSE SOFTWARE FOR E SERIES 11.3.X - SYSTEM EVENT LOGGING REFERENCE GUIDE 2010-10-04 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Junose 11.3

Table of Contents