Junos OS

last person joined: yesterday 

Ask questions and share experiences about Junos OS.
  • 1.  About logs in junos

    Posted 05-06-2014 05:29

    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.  RE: About logs in junos
    Best Answer

     
    Posted 05-06-2014 05:39

    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.



  • 3.  RE: About logs in junos

    Posted 05-06-2014 13:30

    Hi,

    Great thanks a lot !