Installing Log.io on CentOS

Published on Author admin

Installing Log.io on CentOS
log.io:

 
Real-time log monitoring
in your browser
Powered by node.js + socket.io

Log.io uses nodeJS, so first of all we need to install Node JS on a CentOS machine with the dependencies. You should have root or sudo access for it.

Also, we will need curl and openssl:

Next we need to install npm and packages such as socket.io.
Follow steps below to install NPM:

Here I found a problem with the sertificates. And was needed to add “–insecure” to the curl command, like:
curl –insecure -Ssl

The next command will fix it:

After restart NPM installation:

The next error comes with CentOS 5.x, at installation needs puthon > 2.5. it is not enough to intall python2.6 or greater, will need to do a trick:

and relogin to the terminal.

Installing Log.io:

Starting Log.io server to ensure it works:

As my server was installed under root and user for installation was also root(probably it is not very secure, but it is a test server), configs are in the folder:

/root/.log.io/harvester.conf

But is is a good idea to create a separate user for logio, then configs you will find in home dir folder ~/.log.io/harvester.conf

Sample config:

Start the server:

Start log harvesting:

Check:

http://yourhostname:28778/

Done 🙂