Community discussions

MikroTik App

Search found 3 matches

by reyota
Wed Jan 31, 2024 6:16 am
Forum: Scripting
Topic: Log Filter
Replies: 66
Views: 15167

Re: Log Filter

I tried to apply this script to CRS with OS version 7.12, but the script sent all the last logs that appeared in CRS and did not select what was written in :local mkwd What do you think is the cause? Run the script from CLI (between {...}) and check if it dumps any errors, the script works fine for...
by reyota
Mon Jan 29, 2024 3:37 pm
Forum: Scripting
Topic: Log Filter
Replies: 66
Views: 15167

Re: Log Filter

:global anydate2isodate do={ :local dtime [:tostr $1] /system clock :local cyear [get date] ; :if ($cyear ~ "....-..-..") do={:set cyear [:pick $cyear 0 4]} else={:set cyear [:pick $cyear 7 11]} :if (([:len $dtime] = 10) or ([:len $dtime] = 11)) do={:set dtime "$dtime 00:00:00"}...
by reyota
Mon Jan 29, 2024 8:49 am
Forum: Scripting
Topic: Monitor Mikrotik log by Telegram
Replies: 65
Views: 45771

Re: Monitor Mikrotik log by Telegram

I tried the complete script posted by rextended but I got the log LogFilter/action:12 (/system scheduler set LogFilter comment="2024-01-29 13:09:30") and the log was sent on my telegram. I'm using ROS v7.12.1, where do I think I need to adjust it?