Small script to send frequently Log files to email.

Video manual

Text manual

First go to Winbox Files and check that you have file log.0.txt
If file not exists like in screenshot in bottom, need to make configuration in Logging
Go to System
Logging
And change Action "memory" in Topics to Action "disk"
Like this
Next go to System
Scripts section
Press "Add" button
Fill script name, and write script in Source field

Script from screenshot

/tool e-mail send file=log.0.txt to=your@email.com subject="$[/system identity get name] LogFile"
After script written, press OK
Next we need to configure schedule for script sending
Go to System
Schedule
Press "Add" button to add new schedule
Fill schedule name
Start Date: (when scripts starts first time)
Start Time: (in what time script starts first time)
Interval: I choose 1d 00:00:00 that means that script will run every 24 hours
Press "OK"
All done. need to wait for first email
First email with log file in attachment
Mikrotik ping script to check host online or offline
How to create password for Mikrotik email client in Google 2 factor authentication

Leave a Comment

Your email address will not be published. Required fields are marked *