There are several methods to capture router syslogs for diagnostic purposes. They are:
- Use DrayTek’s Syslog Tool
- Saving Syslog to attached USB disk
- Use Syslog Explorer (router diagnostic web interface)
Method 1: Use DrayTek’s Syslog Tool
Software requirement: This method requires DrayTek’s Syslog Tool which can be downloaded from: https://www.draytek.com.au/support/downloads/#utility
1. To enable router syslog function, login to the router and go to System Maintenance >> SysLog/ Mail Alert configuration menu and enter the required details shown below:
2. Click on the OK button to save.
3. Open DrayTek Syslog utility and ensure the details in the diagram below are correctly displayed:
4. Click on the save icon at the top left corner and the following will display:
5. Create a syslog file name and click on the OK button to save for diagnostic purposes.
Method 2: Save Syslog to attached USB disk
1. To enable USB Disk function, login to the router and go to System Maintenance >> SysLog/ Mail Alert configuration menu and select USB Disk:
2. Insert the USB disk into the router USB port as shown below:
3. Click on the USB User Management >> click on the number from the Index list:
4. Select Enable and click OK to save
5. Go to USB Application >> USB Device Status Under Disk tab, check the connection status for the attached USB drive.
6. To view the captured syslog, go to USB Application >> File Explorer menu and Select Syslog The Syslog’s folder will be created automatically as shown below:
7. Double click on the Syslog folder and look for the file with the extension .log in the folder. The filename also consists of the file number, date and time of the Syslog. For example:
8. Double click on the Syslog’s file to download it to the computer. The file can be used for diagnostic purposes when needed.
Method 3: Use Syslog Explorer
1. Login to the DrayTek’s router. Go to Diagnostics >> Syslog Explorer and enable the Web Syslog, choose Syslog Type and the Display Mode as shown below:
2. Once the Syslog has been captured, Export the file to the local computer and store it safely for diagnostic purposes.
Method 4: Telnet
Note: It is recommended to use the Telnet software that can save the log files for diagnostic purposes.
Telnet to the router and log in
Example: telnet 192.168.1.1
Log command usage
log [-cfhiptwx?][-F a|c|f|w]
-c for call log
-f for IP filter log
-F flush log buffer
-Fa flush all logs
-Fc flush the call log
-Ff flush the IP filter log
-Fw flush the wan log
-h for this usage help
-p for PPP/MP log
-t display to the end
-w for WAN log
-x for packet body hex dump
To flush all the current logs use the command: log -Fa
To view the WAN logs use the command: log -w
Enter quit to exit from the Telnet session.