Editing How to make your NAS a SYSLOG Server
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
This wiki gives step by step instructions on how to add SysLog Server functionality to your NAS by installing [http://www.balabit.com/network-security/syslog-ng/opensource-logging-system/ syslog-ng]. After completing this modification your NAS can log the System messages from other devices on your network (if they support send to SysLog Server functionality). If installed and configured as per this wiki, syslog-ng will not affect your NAS's internal system logging (klogd and syslogd) which will carry on working as normal. | This wiki gives step by step instructions on how to add SysLog Server functionality to your NAS by installing [http://www.balabit.com/network-security/syslog-ng/opensource-logging-system/ syslog-ng]. After completing this modification your NAS can log the System messages from other devices on your network (if they support send to SysLog Server functionality). If installed and configured as per this wiki, syslog-ng will not affect your NAS's internal system logging (klogd and syslogd) which will carry on working as normal. | ||
This wiki was written after making the modification to a DS-207+ and CS-407 | This wiki was written after making the modification to a DS-207+ and CS-407, it will almost certainly work on all other Synology models and firmware versions. | ||
==What is a SysLog Server== | ==What is a SysLog Server== | ||
Line 40: | Line 38: | ||
==Overview of the Modification== | ==Overview of the Modification== | ||
# Create a shared folder on your NAS called "logs" to store the received system log messages | # Create a shared folder on your NAS called "logs" to store the received system log messages | ||
# Install ipkg if you have not previously installed it | # Install ipkg if you have not previously installed it | ||
Line 50: | Line 47: | ||
==The Process== | ==The Process== | ||
#Using an internet browser login to the Management webpage of your NAS as "admin" | #Using an internet browser login to the Management webpage of your NAS as "admin" | ||
#Create a shared folder called "logs" on volume1. You can place it on another volume if you want but from now on I will assume it is on volume1 | #Create a shared folder called "logs" on volume1. You can place it on another volume if you want but from now on I will assume it is on volume1 | ||
Line 72: | Line 68: | ||
The code below tells syslog-ng to monitor port 49152 for UDP packets, this port should be free unless you have already configured that port for something else. If you want to use another port you can change it but do not attempt to use port 514 as it is disabled by the internal syslogd. Also if the device sending the Syslog data only supports TCP packets then you may need to change that, see this wiki's discussion page for more info. | The code below tells syslog-ng to monitor port 49152 for UDP packets, this port should be free unless you have already configured that port for something else. If you want to use another port you can change it but do not attempt to use port 514 as it is disabled by the internal syslogd. Also if the device sending the Syslog data only supports TCP packets then you may need to change that, see this wiki's discussion page for more info. | ||
The code below tells syslog-ng to create a new file for storing log messages every day, you can change the log file name if required, but beware of using a static name as the log file can grow too large if you do not have some method of clearing/rotating it. | The code below tells syslog-ng to create a new file for storing log messages every day, you can change the log file name if required, but beware of using a static name as the log file can grow too large if you do not have some method of clearing/rotating it. | ||
Line 95: | Line 89: | ||
#When ipkg has finished uninstalling syslog-ng close the [[Modifications|Command Line Interface]] session. | #When ipkg has finished uninstalling syslog-ng close the [[Modifications|Command Line Interface]] session. | ||
#If you want too you can delete the files in the shared folder "logs" and then use the Management web page to remove the "logs" shared folder that you created. | #If you want too you can delete the files in the shared folder "logs" and then use the Management web page to remove the "logs" shared folder that you created. | ||