Monday, August 12, 2019

.::: Install elasticsearch, Kibana, Logtash, logtash, filebeat , Hearbeat :::.


1. Install Java
[root@radius-teguht data]# rpm -ivh jdk-12.0.1_linux-x64_bin.rpm

2. Install elasticsearch
[root@radius-teguht data]# wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.8.2.rpm
[root@radius-teguht data]# rpm -ivh elasticsearch-6.8.2.rpm

2.1 Configure elasticsearch.service

[root@radius-teguht elasticsearch]# cat /usr/lib/systemd/system/elasticsearch.service
[Unit]
Description=Elasticsearch
Documentation=http://www.elastic.co
Wants=network-online.target
After=network-online.target

[Service]
RuntimeDirectory=elasticsearch
...............
LimitFSIZE=infinity
LimitMEMLOCK=infinity
# Disable timeout logic and wait until process is stopped
..........
[root@radius-teguht elasticsearch]#

2.2 Configure sysconfig for Elasticsearch.
[root@radius-teguht elasticsearch]# cat /etc/sysconfig/elasticsearch
..................
MAX_LOCKED_MEMORY=unlimited
.............
[root@radius-teguht elasticsearch]#

2.3 Activation Elasticsearch

[root@radius-teguht elasticsearch]# systemctl daemon-reload
[root@radius-teguht elasticsearch]# systemctl enable elasticsearch
[root@radius-teguht elasticsearch]# systemctl start elasticsearch
[root@radius-teguht elasticsearch]#

2.4 Testing elasticsearch

[root@radius-teguht elasticsearch]# curl -XGET 'localhost:9200/_nodes?filter_path=**.mlockall&pretty'
{
  "nodes" : {
    "rsk7ryZbSmSrofEnqpuh_g" : {
      "process" : {
        "mlockall" : true
      }
    }
  }
}
[root@radius-teguht elasticsearch]# curl -XGET 'localhost:9200/?pretty'
{
  "name" : "rsk7ryZ",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "KgDtnm9BS0a957hXgtXJ-Q",
  "version" : {
    "number" : "6.8.2",
    "build_flavor" : "default",
    "build_type" : "rpm",
    "build_hash" : "b506955",
    "build_date" : "2019-07-24T15:24:41.545295Z",
    "build_snapshot" : false,
    "lucene_version" : "7.7.0",
    "minimum_wire_compatibility_version" : "5.6.0",
    "minimum_index_compatibility_version" : "5.0.0"
  },
  "tagline" : "You Know, for Search"
}
[root@radius-teguht elasticsearch]#

3. Install kibana
[root@radius-teguht data]# wget https://artifacts.elastic.co/downloads/kibana/kibana-6.8.2-x86_64.rpm
[root@radius-teguht data]# rpm -ivh kibana-6.8.2-x86_64.rpm

3.1 configure kibana
[root@radius-teguht elasticsearch]# cd /etc/kibana/
[root@radius-teguht kibana]# cat /etc/kibana/kibana.yml
# Kibana is served by a back end server. This setting specifies the port to use.
.......
server.port: 5601
server.host: "10.10.10.10"
elasticsearch.url: "http://localhost:9200"
.......
[root@radius-teguht kibana]# systemctl enable kibana
[root@radius-teguht kibana]# systemctl restart kibana
[root@radius-teguht kibana]#

4. Install file beat
[root@radius-teguht kibana]# wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-6.8.2-x86_64.rpm
[root@radius-teguht data]# rpm -ivh filebeat-6.8.2-x86_64.rpm
[root@radius-teguht data]#

<<< Configure later >>>

5. Install logtash
[root@radius-teguht kibana]# wget https://artifacts.elastic.co/downloads/logstash/logstash-6.8.2.rpm
[root@radius-teguht data]# rpm -ivh logstash-6.8.2.rpm
[root@radius-teguht data]#
<<< Configure later >>>

6. Install metricbeat
[root@radius-teguht data]# wget https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-6.8.2-x86_64.rpm
[root@radius-teguht data]# rpm -ivh metricbeat-6.8.2-x86_64.rpm
[root@radius-teguht data]#
<<< Configure later >>>

7. Install hearbeat
[root@radius-teguht kibana]# wget https://artifacts.elastic.co/downloads/beats/heartbeat/heartbeat-6.8.2-x86_64.rpm
[root@radius-teguht data]# rpm -ivh metricbeat-6.8.2-x86_64.rpm
[root@radius-teguht data]#
<<< Configure later >>>

No comments:

Post a Comment

Popular Posts