{"id":17062,"date":"2015-04-22T14:10:50","date_gmt":"2015-04-22T19:10:50","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=17062"},"modified":"2022-06-03T03:44:24","modified_gmt":"2022-06-03T08:44:24","slug":"install-log-io-on-centos-7","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/install-log-io-on-centos-7\/","title":{"rendered":"Install Log.io on CentOS 7"},"content":{"rendered":"
Log.io is a powerful real-time monitoring tool which allows users\u00a0to watch the log files on their\u00a0server through a web browser. It is powered by Node.js and\u00a0socket.io and it is very easy to install on a Linux VPS<\/a>. Today we are going to show you how to install Log.io on your server in order to monitor the log files through a user-friendly web-based interface.<\/p>\n <\/p>\n First of all, you need to enable the EPEL repository on your CentOS VPS<\/a>. In fact, enabling EPEL on CentOS 7 is fairly easy. You can do that using the following command:<\/p>\n Now, verify that EPEL has been enabled on your server by running the following command:<\/p>\n Once you enable EPEL on your CentOS VPS<\/a> you can update all your system software to the latest version available using the yum package manager. For that purpose, you can run the command:<\/p>\n When you are done with these pre-installation operations, you can move to the next step, which is, installation of Node.js and NPM Packages. Again, this process is fairly easy and can be completed using a single command.<\/p>\n After you install Node.js and NPM, it is time to install Log.io on your server. You can install Log.io using NPM by running the following command:<\/p>\n The installation should take less than one minute. You may have noticed that we used ‘root’ as user and the reason is because\u00a0Log.io requires certain permissions so it can monitor your log files. There are three configuration files:<\/p>\n In most cases, you will have to edit the harvester.conf. In this configuration file, you can specify which log files need to\u00a0be monitored for changes. You can edit the file using your favorite text editor. For example, to edit the harvester.conf file using nano, you can run the following command:<\/p>\n When you are done, you can save the file and close it. Then, you can start the Log.io services in background using the following commands:<\/p>\n In order to access the web interface where you can monitor your log files, open your favorite web browser and navigate to:<\/p>\n Here, the IP-ADDRESS should be replaced with the IP address of your CentOS VPS<\/a>. 28778 is the listening port.<\/p>\n We suggest you to check:<\/p>\n and<\/p>\n for more information about Log.io.<\/p>\n Of course you don\u2019t have to do any of this if you use one of our Linux VPS hosting services<\/a>, in which case you can simply ask our expert Linux admins to install Log.io for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":" Log.io is a powerful real-time monitoring tool which allows users\u00a0to watch the log files on their\u00a0server through a web browser. … <\/p>\nyum install http:\/\/mirror.us.leaseweb.net\/epel\/7\/x86_64\/e\/epel-release-7-5.noarch.rpm<\/pre>\n
yum repolist<\/pre>\n
yum update<\/pre>\n
yum install nodejs npm<\/pre>\n
npm install -g log.io --user \"root\"<\/pre>\n
\nNow it is time to configure Log.io according to your needs. The configuration files are located in the user’s home directory under a hidden directory called ‘.log.io’. In this\u00a0case, to access the configuration files you need to navigate to the ‘~\/.log.io\/’ directory using the following command:<\/p>\ncd ~\/.log.io\/<\/pre>\n
harvester.conf\r\nlog_server.conf\r\nweb_server.conf\r\n<\/pre>\n
nano harvester.conf<\/pre>\n
log.io-server &\r\nlog.io-harvester &<\/pre>\n
http:\/\/IP-ADDRESS:28778\/<\/pre>\n
http:\/\/logio.org\/<\/a><\/pre>\n
https:\/\/github.com\/NarrativeScience\/Log.io<\/a><\/pre>\n