It’s possible to do some filtering, e.g. this at first sight works as expected:
/log print where topics~"account"
Another field offered by tab-completition is “time”, so I guess it’s possible to use that. But how exactly, I can’t tell. Having encountered RouterOS scripting before, I expect it to be something unintuitive and cumbersome.
without see your actual log configuration, this probably simply do what you want…
change first line of the script with…
/log print file=logs where buffer=memory
/system logging action
set [find where target=memory] memory-lines=1
:delay 1s
set [find where target=memory] memory-lines=1000
<<<insert the remaining script here>>>
schedule it at 23:59 and you have the last day logs only
The below script used to work in v6:
/log print where time>( [system clock get time] - 1h )
So you can schedule to run the script at the end of the day like below just don’t get negative in the subtraction.
/log print where time>( [system clock get time] - 23h50m )