How to Install Elasticsearch+logstash+kibana on CentOS

gamzatti
Vote 0 Votes

How to Install Elasticsearch+logstash+kibana on CentOS


- Install Elasticsearch by following.


https://www.elastic.co/guide/en/elasticsearch/reference/5.3/rpm.html



- Configure Elasticsearch
https://www.elastic.co/guide/en/elasticsearch/reference/5.3/settings.html


/etc/elasticsearch/elasticsearch.yml 
network.host: 153.126.171.84


- Start Elasticsearch

/etc/rc.d/init.d/elasticsearch start

$ curl localhost:9200
{
  "name" : "yPjLETS",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "fFp2Z0L8RxyKa7f26TEPng",
  "version" : {
    "number" : "5.3.1",
    "build_hash" : "5f9cf58",
    "build_date" : "2017-04-17T15:52:53.846Z",
    "build_snapshot" : false,
    "lucene_version" : "6.4.2"
  },
  "tagline" : "You Know, for Search"
}

c.f.
logfile:
	/var/log/elasticsearch/


- Install logstash by following.
https://www.elastic.co/guide/en/logstash/5.3/installing-logstash.html#_yum

yum install logstash


- start logstash

initctl start logstash


- Install kibana

 cd /var/www/html/html/


wget https://artifacts.elastic.co/downloads/kibana/kibana-5.0.0-linux-x86_64.tar.gz

 tar zxvf kibana-5.0.0-linux-x86_64.tar.gz 
 mv kibana-5.0.0-linux-x86_64/ kibana
 chown -R apache:apache kibana/
 
 c.f.


https://www.elastic.co/guide/en/beats/libbeat/5.3/kibana-installation.html
https://www.elastic.co/guide/en/kibana/current/targz.html



- Setting kibana

/var/www/html/html/kibana/config/kibana.yml
server.host: "www.reverse-edge.com"
logging.quiet: true

c.f.


https://www.elastic.co/guide/en/kibana/current/settings.html
http://qiita.com/windows222/items/57423a420d57399cbc3e

  


- Run kibana

 ./bin/kibana
 


- Allow 5601 port using iptable

 -A INPUT -p tcp -m tcp --dport 5601 -j ACCEPT 


- access kibana
http://www.reverse-edge.com:5601
c.f. https://www.elastic.co/guide/en/kibana/current/access.html


 

Leave a comment

About this Entry

This page contains a single entry by gamzatti published on April 24, 2017 12:47 AM.

Vulnerable sample code -XSS- was the previous entry in this blog.

Install MySQL to CentOS7 using RPM is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.