Revisiting Ros7: Clear Log

I don't know when this was introduced, but I found there is a new way to clear the log from memory after I upgraded Mikrotik to ROS-v7.20+

Old way:

/system logging action set memory memory-lines=1
/system logging action set memory memory-lines=1000

New way:

/system/logging/action/clear action=memory

Cheers

2 Likes

It was added to 7.20:

  • log - added command to clear memory action entries;
2 Likes

Is there a way to clear the log of disk-written entries?

Preferably clearing both the log and (ideally, optionally) the actual file containing those entries?