cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3755
Views
15
Helpful
3
Replies

How to continiously write syslog to flash?

JuergenW
Level 1
Level 1

Hello All,

 

on our Cisco 3650 switches I can easly and continiously write the syslog to the local flash file system with the command

logging file flash:systemlog 409600 informational

. But this does not work on an

ASR 1001-X router.

 

How can I continiously write the syslog to flash?

 

Thanks!

Juergen

1 Accepted Solution

Accepted Solutions

I belive you need to use below command to work for you.

 

 logging buffered  [buffer-size | severity-level] 

 logging persistent [url harddisk:/directory] [size filesystem-size] [filesize logging-file-size]

 

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/esm/configuration/xe-16-6/esm-xe-16-6-book/log-local-nonvol.html

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

View solution in original post

3 Replies 3

balaji.bandi
Hall of Fame
Hall of Fame

As per IOS XE it should work, what is the version of IOS XE running on this ASR, what is the error you getting ?

 

 

below command reference :

 

https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3850/software/release/3se/system_management/configuration_guide/b_sm_3se_3850_cg/b_sm_3se_3850_cg_chapter_01100.html

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

The version is: 

Cisco IOS Software [Fuji], ASR1000 Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 16.9.3, RELEASE SOFTWARE (fc2)

 

And here the error:

router #condig)#logging file flash:systemlog 409600 informational
                                     ^
% Invalid input detected at '^' marker.

 

See also help:

router (config)#logging ?
Hostname or A.B.C.D IP address of the logging host
alarm Configure syslog for alarms
buffered Set buffered logging parameters
buginf Enable buginf logging for debugging
cns-events Set CNS Event logging level
console Set console logging parameters
count Count every log message and timestamp last occurance
delimiter Append delimiter to syslog messages
discriminator Create or modify a message discriminator
dmvpn DMVPN Configuration
esm Set ESM filter restrictions
exception Limit size of exception flush output
facility Facility parameter for syslog messages
filter Specify logging filter
history Configure syslog history table
host Set syslog server IP address and parameters
message-counter Configure log message to include certain counter value
monitor Set terminal line (monitor) logging parameters
on Enable logging to all enabled destinations
origin-id Add origin ID to syslog messages
persistent Set persistent logging parameters
queue-limit Set logger message queue size
rate-limit Set messages per second limit
reload Set reload logging level
server-arp Enable sending ARP requests for syslog servers when first configured
snmp-authfail Enable logging on the message of %SNMP-3-AUTHFAIL
snmp-trap Set syslog level for sending snmp trap
source-interface Specify interface for source address in logging transactions
trap Set syslog server logging level
userinfo Enable logging of user info on privileged mode enabling

 

I belive you need to use below command to work for you.

 

 logging buffered  [buffer-size | severity-level] 

 logging persistent [url harddisk:/directory] [size filesystem-size] [filesize logging-file-size]

 

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/esm/configuration/xe-16-6/esm-xe-16-6-book/log-local-nonvol.html

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Review Cisco Networking products for a $25 gift card