Install kibana and logstash in Ubuntu

Source: Internet
Author: User
Tags openssl version kibana logstash install redis

Preparations

Installation: OpenSSL

Uninstall old version

Apt-Get remove OpenSSL

Apt-Get autoremove OpenSSL

 

Download the latest version

Wget http://www.openssl.org/source/openssl-1.0.1i.tar.gz

Tar-zxvf openssl-1.0.1i.tar.gz

CD/opt/openssl-1.0.1i

./Config -- prefix =/usr/local/SSL

Make & make install

Establish a soft connection

Ln-S/usr/local/SSL/bin/OpenSSL/usr/bin/OpenSSL
Ln-S/usr/local/SSL/include/OpenSSL/usr/include/OpenSSL

Refresh dynamic configuration
Vim/etc/lD. So. conf

Insert a row at the end of the text
/Usr/local/SSL/lib
Ldconfig-V

Test
OpenSSL version-

 

Install the PCRE Library

Wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.33.tar.gz

Tar-zxvf pcre-8.33.tar.gz

CD pcre-8.33

../Configure -- prefix =/usr/local/pcre-8.33

Make & make install

 

Install zlib

Wget http://zlib.net/zlib-1.2.8.tar.gz

Tar-zxvf zlib-1.2.8.tar.gz

CD zlib-1.2.8

../Configure -- prefix =/usr/local/zlib-1.2.8

Make & make install

 

Install nginx

Wget http://nginx.org/download/nginx-1.6.1.tar.gz

Tar-zxvf nginx-1.6.1.tar.gz

CD nginx-1.6.1

. /Configure -- prefix =/usr/local/nginx -- The with-http_ssl_module -- With-OpenSSL =/opt/openssl-1.0.1i -- With-PCRE =/opt/pcre-8.33 -- With-zlib =/opt/zlib-1.2.8

 

Nginx command

Start:/usr/local/nginx/sbin/nginx

Restart:/usr/local/nginx/sbin/nginx-s reload

Stop:/usr/local/nginx/sbin/nginx-s stop

View the main process: netstat-ntlp

Check whether the startup is successful: netstat-ano | grep 80

 

Required to install Ruby to run kibana

Sudo apt-Get update

Wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz

./Configure -- prefix =/usr/local/Ruby

Make & make install

Environment Settings

VI/etc/environment

Add the ruby path to the environment variable and save/etc/environment, as shown below:
Path = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: /usr/local/Ruby/bin"
After modifying the environment variable file, you must run the source command to make the modification take effect immediately. The command is as follows:
$ Source/etc/environment

 

To check whether the installation is successful, enter the following command for testing:
$ Ruby-V

 

After confirming that the installation is successful, run the following command to add command links. Currently, I am not sure what the purpose of creating these links is. According to the ruby "convention is greater than configuration" principle, it should be an agreement. (Keyboardota)
$ Sudo ln-S/usr/local/Ruby/bin/Ruby/usr/local/bin/Ruby
$ Sudo ln-S/usr/local/Ruby/bin/gem/usr/bin/gem

 

To put it simply, the specific workflow is that the logstash agent monitors and filters logs, and sends the filtered logs to redis (redis only processes the queue and does not store the logs ), logstash index collects logs and submits them together
Full-text search service elasticsearch can use elasticsearch for Custom Search and use kibana to display pages in combination with custom search. It is a flowchart on the kibana official website.

 

Or:

Apt-Get install ruby-full

 

Required for Ruby extension Installation

Wget http://production.cf.rubygems.org/rubygems/rubygems-2.4.1.tgz

Tar-zxvf rubygems-2.4.1.tgz

CD rubygems-2.4.1

Ruby setup. Rb

 

Install redis to process log queues

Http://download.redis.io/releases/redis-2.8.13.tar.gz

Tar-zxvf redis-2.8.13.tar.gz

CD redis-2.8.13

Make

Vim redis. conf

Daemonize Yes

Start: src/redis-server redis. conf

 

Install elasticsearch

Wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.3.2.tar.gz

Tar-zxvf elasticsearch-1.3.2.tar.gz

CD elasticsearch-1.3.2

Start: Bin/elasticsearch start

 

Install kibana and logstash in Ubuntu

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.