Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 23620

Beginner Basics • Re: How to remove strings from ROS logs

$
0
0
You cannot delete lines from log.

What you could do (with some IMHO not-so-trifling scripting) would be (periodically, let's say once a day):
1) print the log "as is" to file
2) clear the log
3) modify the file removing the lines you want to exclude
Then - again periodically let's say once a week - delete the log files.

Or you could exclude from logging all "info" data (maybe too much), or the ones with interface topic, using the /system logging topics:
https://wiki.mikrotik.com/wiki/Manual:System/Log

but there isn't AFAIK some form of filtering based on content of the log entry.

Statistics: Posted by jaclaz — Sat Jan 20, 2024 2:32 pm



Viewing all articles
Browse latest Browse all 23620

Latest Images

Trending Articles



Latest Images