Hello,
how can I write here e.g. from line 1 to 100?
e.g.
/system/logging/remove numbers= 1-100
:for i from=0 to=50 do={ :put $i }
Flags: X - disabled, I - invalid, * - default
# TOPICS ACTION PREFIX
0 X* info memory
1 * error memory
2 * warning memory
3 * critical echo
4 dhcp logserver MikroTik
5 !debug logserver MikroTik
!packet
6 hotspot logserver MikroTik
:put [/system logging find]
*1;*2;*3;*4;*5;*6;*7
/system logging
:foreach i in=[find] do={remove $i}
/system logging
:foreach i in=[find default=no] do={remove $i}
# all
/log print
# filter by topic (~ mean a regular expression, in most cases that means a "partial match")
/log print where topics~"debug"
# filter by message contents
/log print where message~"changed"
/log print file=
Totally. I'm just more thinking how many log rules could you have that require scripting... Either wayFrom this in OPs post "/system/logging/remove", I do assume he is talking about deleting configuration of logging, not logging entries (that can not be deleted).
[$op [find~"log|logging"] $solution]