On Ubuntu 16.04:
apt-get install syslog-ng-core git
Clone from git repository:
git clone https://github.com/jgedeon120/syslog-ng-deployment.git /etc/syslog-ng/conf.d/
Reload syslog-ng and check for errors or conflicts:
systemctl reload syslog-ng
tail /var/log/syslog
The following are global or default config files for syslog-ng-deployment.
Contains the file path for syslog-ng configs, default is /etc/syslog-ng/
Contains the system default options for syslog-ng. These are basically the global options for syslog-ng found in the syslog-ng.conf file. The installed syslog-ng.conf does not need to be edited now.
This file sets the parameters for the syslog receiver to receive syslog messages over the network.
This file sets the base log path where syslog messages are to be written to. This definition includes a site location if needed and defined in the site filter configuration file in the filters directory.
This file has the include statements needed for syslog-ng to read the configuration files in the directories for this project.
This folder contains all the destination configurations. The destination is where the syslog messages are to be written to.
This folder contains all the filter configurations. The filters are used to define the messages that are coming in.
This folder contains the logging statements for the messages coming in. Where the message is coming from, the filters to match with and where to write the message. Most will end with the configuration of flags(final), which tells syslog-ng there is nothing more to do with that message.
This folder contains the parsers so that syslog-ng can understand common structured data that is coming in via syslog. Like CEF and LEEF.
This folder contains the rewrite configurations for syslog-ng. An example is matching the network the syslog sending device is coming from and setting the site name the device is at. This information is used by the logging statement to adjust the writing path of the message.
This folder contains the templates used by the destination configuration on how to write the message using the syslog-ng macros.