Install and Configure NXLog CE on Ubuntu 20.04

0
242
Install and Configure NXLog CE on Ubuntu 20.04

NXLog is a cross-platform log collection and centralization tool. It collects logs from various types of log sources, formats, and platforms and forwards them securely and reliably to a central log server. In this guide, we are going to learn how to install and configure NXLog CE on Ubuntu 20.04.

NXLog Community Edition is feature-full. Read about these features on their page.

Install and Configure NXLog CE on Ubuntu 20.04

NOTE: NXLog CE for Ubuntu 20.04 is not available yet as of this writing and therefore, this tutorial is not an official guide for installing NXLog CE but rather a series of steps that I took myself to get NXLog CE running on an Ubuntu 20.04.

Download NXLog Debian Binary Package

NXLog is not available on the default Ubuntu 20.04 repos. However, it is available as debian binary package. To install NXLog on Ubuntu 20.04, you need to download this debian binary package.

Hence, navigate to NXLog community edition downloads page and grab Ubuntu 18.04 installer. Grab the link and pull it using wget command.

wget https://nxlog.co/system/files/products/files/348/nxlog-ce_2.10.2150_ubuntu_bionic_amd64.deb

Install NXLog

Once the download is done, you can now install NXLog CE on Ubuntu 20.04.

apt install ./nxlog-ce_2.10.2150_ubuntu_bionic_amd64.deb

During the installation, you will encounter an issue with unmet dependencies;

...
The following packages have unmet dependencies:
 nxlog-ce : Depends: libperl5.26 (>= 5.26.0~rc1) but it is not installable
            Depends: libssl1.0.0 (>= 1.0.0) but it is not installable
E: Unable to correct problems, you have held broken packages.

Install Required Dependencies

For a successful installation of NXLog on Ubuntu 20.04 therefore, you need to install the missing dependencies. You can download and install these packages as follows. The packages would otherwise be installed from Ubuntu 20.04 repos, but that won’t meet the requirements of installing NXLog using Ubuntu 18.04 binary package.

Download and install Perl Modules;

wget http://archive.ubuntu.com/ubuntu/pool/main/p/perl/perl-modules-5.26_5.26.1-6_all.deb
apt install ./perl-modules-5.26_5.26.1-6_all.deb

Download and install Openssl library.

wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5.3_amd64.deb
apt install ./libssl1.0.0_1.0.2n-1ubuntu5.3_amd64.deb

Download and install GNU dbm library;

wget http://archive.ubuntu.com/ubuntu/pool/main/g/gdbm/libgdbm5_1.14.1-6_amd64.deb
apt install ./libgdbm5_1.14.1-6_amd64.deb

Download and install Perl libraries;

wget http://archive.ubuntu.com/ubuntu/pool/main/p/perl/libperl5.26_5.26.1-6_amd64.deb
apt install ./libperl5.26_5.26.1-6_amd64.deb

Install NXLog

You can then try to re-install NXLog;

apt install ./nxlog-ce_2.10.2150_ubuntu_bionic_amd64.deb
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'nxlog-ce' instead of './nxlog-ce_2.10.2150_ubuntu_bionic_amd64.deb'
The following additional packages will be installed:
  libapr1 libdbi1
Suggested packages:
  libdbd-mysql libdbd-pgsql libdbd-sqlite3 libdbd-freetds
The following NEW packages will be installed:
  libapr1 libdbi1 nxlog-ce
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 119 kB/1,325 kB of archives.
After this operation, 4,353 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 /root/nxlog-ce_2.10.2150_ubuntu_bionic_amd64.deb nxlog-ce amd64 2.10.2150 [1,207 kB]
Get:2 http://ke.archive.ubuntu.com/ubuntu focal/main amd64 libapr1 amd64 1.6.5-1ubuntu1 [91.4 kB]
Get:3 http://ke.archive.ubuntu.com/ubuntu focal/main amd64 libdbi1 amd64 0.9.0-5 [27.3 kB]
Fetched 119 kB in 1s (115 kB/s)   
Selecting previously unselected package libapr1:amd64.
(Reading database ... 73723 files and directories currently installed.)
Preparing to unpack .../libapr1_1.6.5-1ubuntu1_amd64.deb ...
Unpacking libapr1:amd64 (1.6.5-1ubuntu1) ...
Selecting previously unselected package libdbi1:amd64.
Preparing to unpack .../libdbi1_0.9.0-5_amd64.deb ...
Unpacking libdbi1:amd64 (0.9.0-5) ...
Selecting previously unselected package nxlog-ce.
Preparing to unpack .../nxlog-ce_2.10.2150_ubuntu_bionic_amd64.deb ...
Unpacking nxlog-ce (2.10.2150) ...
Setting up libdbi1:amd64 (0.9.0-5) ...
Setting up libapr1:amd64 (1.6.5-1ubuntu1) ...
Setting up nxlog-ce (2.10.2150) ...
Adding user nxlog to group nxlog
Processing triggers for systemd (245.4-4ubuntu3.1) ...
Processing triggers for libc-bin (2.31-0ubuntu9) ...

NXLog is now installed on Ubuntu 20.04. Proceed with configuration by following the guide below;

How to configure NXLog to forward syslog logs to central Log server

That marks the end of our guide on how to install and configure NXLog CE on Ubuntu 20.04.

Further Reading

NXLog Community Edition Reference Manual

Related Tutorials

Install and Configure NXLog on Ubuntu 18.04

Configure Rsyslog on Solaris 11.4 to Send logs to Remote Log Server

Configure Syslog on Solaris 11.4 for Remote Logging

How to Configure Remote Logging with Rsyslog on Ubuntu 18.04

LEAVE A REPLY

Please enter your comment!
Please enter your name here