📧 Send MikroTik Log Files to Email Automatically

This guide shows you how to send log files from your MikroTik router to your email daily.

🎥 Video Manual

📝 Text Manual


1. Check for Log File

  1. Open Winbox.
  2. Go to the Files section.
  3. Ensure the file log.0.txt exists.

Screenshot 1 Screenshot 1

If the file doesn't exist, continue to the next step to enable disk logging.


2. Enable Logging to Disk

  1. Go to System > Logging.
  2. Find the rows where Action is set to memory.
  3. Change those Action values to disk. Screenshot 1 Screenshot 1 Screenshot 1 Screenshot 1

3. Create Script to Email Log File

  1. Go to System > Scripts.
  2. Click the Add button.
  3. Fill in the script details.
  4. Click OK.

Name: SendLogs
Source:

 /tool e-mail send file=log.0.txt to=your@email.com subject="$[/system identity get name] LogFile"

Screenshot 1 Screenshot 1 Screenshot 1 Screenshot 1


4. Schedule the Script

  1. Go to System > Scheduler.
  2. Click the Add button.
  3. Fill in the schedule details:
  4. Name: DailyLogEmail
  5. Start Date: [Choose today’s date]
  6. Start Time: [Choose preferred time]
  7. Interval: 1d 00:00:00 (runs every 24 hours)
  8. On Event:
  9. Click OK.
 /system script run SendLogs 

Screenshot 1 Screenshot 1 Screenshot 1


✅ Done!

Your router will now send the log.0.txt file to your email every day. The first email will arrive after the script runs for the first time.