I want to install syslog-ng on my CentOS Stream 9, can anyone please help me to installing this on my workspace:(
2 Replies
First you will be need CentOS Stream 9 installed on an x86_64 host
As EPEL is still practically empty, you do not have to enable that to install syslog-ng. Just enable my repo and install the packages you need. Sub-packages automatically install the base syslog-ng package. For example the following commands install syslog-ng together with its http() destination:
cd /etc/yum.repos.d/
wget https://copr.fedorainfracloud.org/coprs/czanik/syslog-ng-centos9-experiment/repo/centos-stream-9/czanik-syslog-ng-centos9-experiment-centos-stream-9.repo
dnf install syslog-ng-http
There is one little problem: log rotation. If you want proper log rotation, remove the rsyslog package which conflicts with the syslog-ng-logrotate package and then install the sub-package for log rotation:
dnf erase rsyslog
dnf install syslog-ng-logrotate
I think this will be help you:)
Hey thanks #Amit for your suggestion is it been now installed..