service timestamps
Configuring Log Filters
host1(config)# log severity debug bgpevents ?
access-class
Select an access list for the filter
in
Select import/in direction for the filter
out
Select export/out direction for the filter
peer
Select a peer IP address for the filter
route-map
Select a route map for the filter
router
Identify an instance of a virtual router
<cr>
host1(config)# log severity debug bgpevents access-class ?
WORD
The access list
host1(config)# log severity debug bgpevents access-class ListOne ?
filtering-router
Identify virtual router where access-class/route-map are defined
in
Select import/in direction for the filter
out
Select export/out direction for the filter
route-map
Select a route map for the filter
<cr>
Copyright © 2010, Juniper Networks, Inc.
host1#exit
host1#show log data category cliCommand severity info
***********************************************************
NOTICE 134 cliCommand: "configure terminal", console
NOTICE 133 cliCommand: "no service timestamps", console
***********************************************************
Use to format timestamps for log messages.
For information about setting local times and time zones, see JunosE System Basics
Configuration Guide.
The show log data command displays the log data with the current timestamp format.
The show log data nv-file command displays the log data with the timestamp format
in effect at the time the log record was written.
Use the no version to remove timestamps from log messages.
See service timestamps.
Many event categories contain filters so you can further refine the type of information
that the system logs. For example, when logging BGP connections, you can limit the
information logged to a specific access class, peer, route map, or virtual router.
You define filters when you set the log severity for an event category. The online Help
shows the options you can set for each filter.
NOTE: You can use the packet flow monitoring feature to create user-defined
classification parameters that specify the packet data that is logged. See
Packet Tagging Overview.
The following example creates a filter that logs BGP connection information at the debug
severity level on traffic that matches access list ListOne, and is incoming traffic to virtual
router default.
Chapter 1: System Logging Overview
15