4.3. Installing syslog-ng on FreeBSD

To install syslog-ng on the FreeBSD operating systems, complete the following steps as root.

Procedure 4.3. Installing syslog-ng on FreeBSD systems

  1. Use your username and password received together with your syslog-ng Premium Edition license to download the following binaries. Make sure to download the package specific for the processor architecture of the host.

  2. Unpack the downloaded syslog-ng package into the / directory. Issue the following commands as root:

    cd / 
    tar xfz /<path_to_the_packages>/syslog-ng-pe_<version>_<arch>.tgz /opt
    tar xfz /<path_to_the_packages>/libdbi8_<version>_<arch>.tgz /opt/syslog-ng
  3. Rename the /opt/syslog-ng/etc/syslog-ng.conf.example file to syslog-ng.conf. Edit the configuration file as needed.

    mv /opt/syslog-ng/etc/syslog-ng.conf.example /opt/syslog-ng/etc/syslog-ng.conf
  4. Copy the /opt/syslog-ng/doc/syslog-ng.rc.d file into the /etc/rc.d directory and set its properties to 755.

    cp /opt/syslog-ng/doc/syslog-ng.rc.d /etc/rc.d
    chmod 755 /etc/rc.d/syslog-ng.rc.d
  5. Stop syslogd. Issue the following command:

    /etc/rc.d/syslogd stop
  6. Edit the /etc/rc.conf file with a text editor (e.g., vi) and add the following lines:

    syslogd_enable="NO"
    syslogng_enable="YES"
  7. Start syslog-ng.

    /etc/rc.d/syslog-ng start

© 2007 BalaBit IT Security
Please send your comments or documentation bugs to: documentation@balabit.com