Created
November 5, 2015 19:14
-
-
Save anthonygtellez/a827db73545b71148ea1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install EPEL for the addiitonal YUM Repos: | |
$ wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
Use yum to install the rpm into the local system: | |
$ yum locallinstall epel-release-latest-7.noarch.rpm | |
Syslog-ng requires the libnet dependency: | |
$ wget http://mirror.centos.org/centos/7/os/x86_64/Packages/libnet-1.1.6-7.el7.x86_64.rpm | |
Again use yum to install the rpm into the local system: | |
$ yum locallinstall libnet-1.1.6-7.el7.x86_64.rpm | |
Use yum to install syslog-ng & dependendicy | |
$ yum install syslog-ng syslog-ng-libdbi | |
disable rsyslog: | |
$ chkconfig rsyslog off | |
verify check config | |
$ chkconfig --list rsyslog | |
enable syslog-ng logger: | |
$ chkconfig syslog-ng on | |
verify change to check config: | |
$ chkconfig --list syslog-ng | |
Stop the rsyslog service: | |
$ service rsyslog stop | |
Start the syslog-ng service: | |
$ service syslog-ng start | |
Check the configuration of syslog-ng: | |
$ cd /etc/syslog-ng/ | |
copy the make a copy of the file that ships with syslog-ng | |
$ cp syslog-ng.conf syslog-ng.conf.orgin | |
edit the default configuration and customize it for your environment: | |
$ vi syslog-ng.conf | |
Once you've made the changes to the configuration file restart the service so the new rules will run in the daemon. | |
$ service syslog-ng restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment