/elasticsearch-workshop-hint

Elasticsearch Workshop - May 2020

Apache License 2.0Apache-2.0

Connexion à votre instance linux

  • Installer mobaXterm si vous êtes sur Windows
  • Vos Credentials et IP respectives vous seront envoyés sur le chat
  • Une clé SSH .pem vous sera transmise sur le chat
  • si elle fournie au format .pem : Convertissez-la en .ppk(voir mini tuto)
  • username : centos
  • adresse ip : votre adresse
  • options de connection : clé ssh ppk

Production Tools

Installation de Java & wget

sudo yum install -y java
sudo yum install -y wget

Installation ElasticSearch

  • Centos/RHEL
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.6.2-x86_64.rpm
sudo rpm -i elasticsearch-7.6.2-x86_64.rpm
  • Debian
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.6.2-amd64.deb 
sudo dpkg -i elasticsearch-7.6.2-amd64.deb

Démarrage Service ElasticSearch

sudo service elasticsearch start

Installation Logstash

  • Centos/RHEL
wget https://artifacts.elastic.co/downloads/logstash/logstash-7.6.2.rpm
sudo rpm -i logstash-7.6.2.rpm
  • Debian
wget https://artifacts.elastic.co/downloads/logstash/logstash-7.6.2.deb
sudo dpkg -i logstash-7.6.2.deb

Installation Kibana

  • Centos/RHEL
wget https://artifacts.elastic.co/downloads/kibana/kibana-7.6.2-x86_64.rpm
sudo rpm -i kibana-7.6.2-x86_64.rpm
  • Debian
wget https://artifacts.elastic.co/downloads/kibana/kibana-7.6.2-amd64.deb
sudo dpkg -i kibana-7.6.2-amd64.deb

Configuration accès distant (remplacer localhost / 127.0.0.1 par 0.0.0.0)

  • Editer le fichier de conf
sudo vi /etc/kibana/kibana.yml
# Kibana is served by a back end server. This setting specifies the port to use.
server.port: 5601 <<<<<< VERIFIER CA

# Specifies the address to which the Kibana server will bind. IP addresses and host names are both valid values.
# The default is 'localhost', which usually means remote machines will not be able to connect.
# To allow connections from remote users, set this parameter to a non-loopback address.
server.host: 0.0.0.0 <<<<<< CHANGER CA
  • Sauvegarder

Démarrage Service Kibana

sudo service kibana start

Vérification de votre accès Web