halo
can help me.
i stuck to find script filter logging time 24 hours ago and topics=ppp and message=connected and save become new file txt
this is script i created and running but just can filter topics ppp and message connected
I am asking, because that is relatively complex to execute…
Alternatively, it could be quite easy to write a script that exports the Log entries of the DAY.
In other words, a script that exports the Logs of the “Today 22.01.2025” instead of the “24 Hours”
Hi, thank you its working for me now i must learn your script its new for me. before i open this forum i try do this
:foreach Log in=filter do={
global formattedDate do={
:local date [/system clock get date]
:local month [:pick $date 5 7]
:local day [:pick $date 8 10]
:local year [:pick $date 0 4]
:return [($year . “-” . $month . “-” . ($day - 1))]
:set formattedDate [$formattedDate]
:put [$formattedDate]
}
:local Yesterday [$formattedDate]
/log print file=ppp_test_logs.txt where time~“Yesterday” && topics~“ppp” && message~“connected”
}