Feedback
|
Table Of Contents
Restrictions for SYSLOG Writing to Flash
Information About SYSLOG Writing to Flash
How to Configure SYSLOG Writing to Flash
Writing Logging Messages to an ATA Disk
Copying Logging Messages to an External Disk
Configuration Examples for SYSLOG Writing to Flash
Writing Logging Messages to an ATA Disk: Example
Copying Logging Messages to an External Disk: Example
SYSLOG Writing to Flash
The SYSLOG Writing to Flash feature enables system logging messages to be saved on the router's advanced technology attachment (ATA) Flash disk. Messages saved on the ATA drive persist even when the router is rebooted.
Feature History for the SYSLOG Writing to Flash Feature
Finding Support Information for Platforms and Cisco IOS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS software image support. Access Cisco Feature Navigator at http://www.cisco.com/go/fn. You must have an account on Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at the login dialog box and follow the instructions that appear.
Contents
•
Restrictions for SYSLOG Writing to Flash
•
Information About SYSLOG Writing to Flash
•
How to Configure SYSLOG Writing to Flash
•
Configuration Examples for SYSLOG Writing to Flash
Restrictions for SYSLOG Writing to Flash
The Logging buffered Must Be Enabled
Before the SYSLOG Writing to Flash feature can be enabled with the logging persistent command, you must enable the logging of messages to an internal buffer with the logging buffered command. For additional information, refer to the "Writing Logging Messages to an ATA Disk" section, and to the "Related Documents" section.
Available ATA Disk Space Constrains the Size and Number of Stored Log Files
The amount of ATA disk space allocated to system logging messages constrains the number of logging files that can be stored. When the allocation threshold is passed, the oldest log file in the directory is deleted to make room for new system logging messages. To permanently store system logging messages, you must archive them to an external device. For more information, refer to the "Copying Logging Messages to an External Disk" section.
Information About SYSLOG Writing to Flash
The SYSLOG Writing to Flash feature adds a router's ATA disk as a storage destination for logging messages. When using this feature, be sure to understand the following concepts:
System Logging Messages
System logging messages include error and debug messages generated by application programming interfaces (APIs) on the router. Typically, logging messages are stored in a router's memory buffer; when the buffer is full, older messages are overwritten by new messages. All logging messages are erased from the memory buffer when the router reboots.
ATA Flash Disks
ATA Flash disks are PC cards included with some Cisco routers, which are used to provide nonvolatile data storage. The greater the capacity of the ATA Flash disk, the more data, such as logging messages, it can hold. Log messages written to an ATA Flash disk persist when the router reboots.
How to Configure SYSLOG Writing to Flash
This section contains the following procedures:
•
Writing Logging Messages to an ATA Disk (required)
•
Copying Logging Messages to an External Disk (optional)
Writing Logging Messages to an ATA Disk
To to enable the SYSLOG Writing to Flash feature and write logging messages to an ATA disk, perform the following steps:
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
logging buffered [buffer-size | severity-level]
4.
logging persistent [url {disk0:/directory | disk1:/directory}] [size filesystem-size]
[filesize logging-file-size]DETAILED STEPS
Copying Logging Messages to an External Disk
To copy logging messages from the ATA disk to an external disk, perform the following steps:
SUMMARY STEPS
1.
enable
2.
copy
DETAILED STEPS
Configuration Examples for SYSLOG Writing to Flash
This section contains the following configuration examples:
•
Writing Logging Messages to an ATA Disk: Example
•
Copying Logging Messages to an External Disk: Example
Writing Logging Messages to an ATA Disk: Example
The following example shows how to write up to 134217728 bytes (128 MB) of logging messages to the syslog directory of disk 0, specifying a file size of 16384 bytes:
Router(config)# logging persistent url disk0:/syslog size 134217728 filesize 16384Copying Logging Messages to an External Disk: Example
To copy logging messages from the router's ATA disk to an external disk, use the copy command:
Router# copy disk0:/syslog ftp://myuser/mypass@192.21.1.129/syslogAdditional References
The following sections provide references to SYSLOG Writing to Flash.
Related Documents
Standards
Standards TitleNo new or modified standards are supported by this feature and support for existing standards has not been modified by this feature.
—
MIBs
RFCs
RFCs TitleNo new or modified RFCs are supported by this feature and support for existing RFCs has not been modified by this feature.
—
Technical Assistance
Command Reference
This section documents new commands. All other commands used with this feature are documented in the Cisco IOS Release 12.0 command reference publications.
•
logging persistent
logging persistent
To enable the storage of logging messages on the router's advanced technology attachment (ATA) disk, use the logging persistent command in global configuration mode. To disable logging message storage on the ATA disk, use the no form of this command.
logging persistent [url {disk0:/directory | disk1:/directory}] [size filesystem-size]
[filesize logging-file-size]no logging persistent
Syntax Description
Defaults
url: disk0:/syslog
size filesystem-size: 10% of total space
filesize logging-file-size: 262144
Command Modes
Global configuration
Command History
Usage Guidelines
The logging persistent command enables the storage of syslog data on a router's ATA Flash disk. Because the syslog data must be copied from the router's internal memory buffer, make sure to enable logging buffered prior to enabling logging persistent.
Note
Any filtering of syslog messages written to the router's internal memory buffer results in filtering of syslog messages written to the router's ATA Flash disk.
Examples
The following example shows how to write up to 134217728 bytes (128 MB) of logging messages to the syslog directory of disk 0, with a file size of 16384 bytes:
Router(config)# logging persistent url disk0:/syslog size 134217728 filesize 16384Related Commands
Copyright © 2003 Cisco Systems, Inc. All rights reserved.
Feedback
