Community discussions

MikroTik App
 
Pigsfoot
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 84
Joined: Sat Oct 25, 2014 1:16 am

overwrite logs to disk when full

Sat May 22, 2021 11:03 am

Hi,
I would like to write my error logs to the internal disk and understand there are limits. I was going to set the lines per file to 1000 and Stop on Full.

Is there a way to say when i reach 1000 lines the oldest entries are overwritten. That way i get a fairly up to date log file that runs constantly without using up to much storage.

Thanks
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: overwrite logs to disk when full  [SOLVED]

Sat May 22, 2021 11:22 am

Hi,
I would like to write my error logs to the internal disk and understand there are limits. I was going to set the lines per file to 1000 and Stop on Full.

Is there a way to say when i reach 1000 lines the oldest entries are overwritten. That way i get a fairly up to date log file that runs constantly without using up to much storage.

Thanks
Are you read what have you write?
Simply do not set "Stop on Full", not?
 
Pigsfoot
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 84
Joined: Sat Oct 25, 2014 1:16 am

Re: overwrite logs to disk when full

Sat May 22, 2021 12:01 pm

Immagino che abbia molto senso. A volte le cose più semplici sono le più difficili da vedere. Grazie :-)
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: overwrite logs to disk when full

Sat May 22, 2021 12:02 pm

Immagino che abbia molto senso. A volte le cose più semplici sono le più difficili da vedere. Grazie :-)
Figurati

Who is online

Users browsing this forum: No registered users and 54 guests