Junos
Junos

About logs in junos

‎05-06-2014 05:28 AM

Hi,

I have setted the logs on the EX that I have at work. I would like to know if there is a logrotate / cron system to delete them by default or are they getting bigger and bigger ?

file messages {
    any any;
    authorization info;
}

thanks

2 REPLIES 2
Junos
Solution
Accepted by topic author herouka
‎08-26-2015 01:27 AM

Re: About logs in junos

‎05-06-2014 05:38 AM

Initially, the logs are written in messages file. Once this file reaches the max size(default 128KB), it is compressed and renamed to messages.0.gz. Once messages file reaches again the max size, messages.0.gz is renamed to messages.1.gz and messages is compressed and renamed to messages.0.gz. And so on until you reach the maximum number of files(10 by default). After that, the oldest log file is lost as new logs needs to be generated and there is a limitation on the number of the files where logs can be written.

Junos

Re: About logs in junos

‎05-06-2014 01:30 PM

Hi,

Great thanks a lot !