command "logging persistent size 100000000 filesize 200000" in ASR1K

Hi For the command "logging persistent size 100000000 filesize 200000", what do the two numbers( size 100000000 and filesize 200000) stand for? What is difference between the two? Thank you
Who is Participating?
Predrag JovicConnect With a Mentor Network EngineerCommented:
100000000 bytes is maximum total space on flash for logging
maximum singe file size is 200000 bytes
So you can have total 500 files and each file can have size of 200000 bytes
500 * 200000 bytes = 100000000 bytes

Cisco article for more details Configuration Examples for SYSLOG Writing to Flash
eemoonAuthor Commented:
Thank you so much for your fast reply. you are right. The additional question is usually there is one file in there, in what situation it could has more than one file ( until 500 file) in there ?
Predrag JovicConnect With a Mentor Network EngineerCommented:
Few months ago I listened to the explanation why files should have smaller size and not be one big file, I am not sure that I remembered it correctly, so handle this information with caution. :)
The point, if I remember correctly, is in overwriting old entries when log gets maximum file size. There is a problem to keep file not growing too large involved in that, and process of file rotation. In this process oldest file is getting overwritten, so typically it is better to have at least few smaller files.

Since it is similar for Juniper and Cisco XR platform (at least) - Juniper article (the first one that I found)
eemoonAuthor Commented:
Very good explanation. Thank you
Predrag JovicNetwork EngineerCommented:
You're welcome.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.