Quantcast
Image

Search Results for: elasticsearch

How to install Elasticsearch on Ubuntu or Debian

By  •  November 28, 2023

Elasticsearch is available on Github but is not available in the default apt repository for Ubuntu or Debian. However, Elastic, the company behind Elasticsearch, hosts a public repository that …
Read More

How to install Elasticsearch on CentOS, Red Hat or Fedora

By  •  November 28, 2023

Elasticsearch is a popular, free, and open-source product for search and analytics engines, yet it is not available in the default package repository for CentOS, RHEL, or Fedora. However, …
Read More

How to install Elasticsearch on CentOS / Red Hat

By  •  May 28, 2023
  1. Install the latest Java Runtime Environment.

    # yum install -y java-1.8.0-openjdk
  2. Add Elasticsearch repository to yum.
    1. Download and install the public signing key.

      # rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
    2. Add the following lines to /etc/yum.repos.d/elasticsearch.repo.

      [elasticsearch-6.x]
      name=Elasticsearch repository for 6.x packages
      baseurl=https://artifacts.elastic.co/packages/6.x/yum
      gpgcheck=1
      gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
      enabled=1
      autorefresh=1
      type=rpm-md
  3. Install Elasticsearch package along with dependencies.

    # yum install -y elasticsearch
  4. Configure Elasticsearch if necessary by editing /etc/elasticsearch/elasticsearch.yml.
  5. Configure firewall for Elasticsearch service.
    1. Enable network access to port 9200and 9300.

      # firewall-cmd --permanent --add-port=9200/tcp
      # firewall-cmd --permanent --add-port=9300/tcp
    2. Reload firewall rules and keep state information.

      # firewall-cmd --reload
  6. Configure Elasticsearch service to automatically start during boot.

    # systemctl enable elasticsearch
  7. Start Elasticsearch service.

    # systemctl start elasticsearch

    The service will take a while to start

  8. Test if installation is successful.

    $ curl 127.0.0.1:9200
    {
      "name" : "8v4rGQI",
      "cluster_name" : "elasticsearch",
      "cluster_uuid" : "nkZIqfkpSyCdh_jg3nqWfw",
      "version" : {
        "number" : "6.2.2",
        "build_hash" : "10b1edd",
        "build_date" : "2018-02-16T19:01:30.685723Z",
        "build_snapshot" : false,
        "lucene_version" : "7.2.1",
        "minimum_wire_compatibility_version" : "5.6.0",
        "minimum_index_compatibility_version" : "5.0.0"
      },
      "tagline" : "You Know, for Search"
    }

How to install Logstash on Ubuntu or Debian

By  •  November 28, 2023

Logstash is a Java-based application requiring Java Runtime Environment or JRE to be installed for it to run. Both can be installed via apt though Logstash is not hosted …
Read More

How to install Logstash on CentOS, Red Hat or Fedora

By  •  November 28, 2023

Logstash can be installed using yum or dnf though it first requires adding Elasticsearch repository, which is provided by Elastic, the company behind the Elastic Stack. Logstash is a …
Read More

How to install Kibana on Ubuntu or Debian

By  •  November 28, 2023

Elastic (the company behind the Elastic Stack) provides apt repository for Kibana, which you can install Kibana on Ubuntu, Debian, or any other variance that uses apt package manager. …
Read More

How to install Kibana on CentOS, Red Hat or Fedora

By  •  November 28, 2023

There are a few ways to install Kibana, but the best way is probably via your system's default package manager. It's one of the easier methods and allows you …
Read More

How to install kibana in centos / redhat

By  •  May 28, 2018
  1. Add elasticsearch repo to yum
    1. Download and install the public signing key

       rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
    2. /etc/yum.repos.d/elasticsearch.repo

      [elasticsearch-6.x]
      name=Elasticsearch repository for 6.x packages
      baseurl=https://artifacts.elastic.co/packages/6.x/yum
      gpgcheck=1
      gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
      enabled=1
      autorefresh=1
      type=rpm-md
  2. yum install -y kibana
  3. configure elasticsearch /etc/kibana/kibana.yml server.host: “0.0.0.0”
  1. enable firewall

    firewall-cmd --add-port=5601/tcp --permanent
    firewall-cmd --reload
  2. systemctl start kibana

– systemctl enable kibana

  1. test

    curl 127.0.0.1:9200
    {
      "name" : "l_cUCzP",
      "cluster_name" : "elasticsearch",
      "cluster_uuid" : "ueCIZ5AqSEWsMRb7VU90cw",
      "version" : {
        "number" : "6.2.1",
        "build_hash" : "7299dc3",
        "build_date" : "2018-02-07T19:34:26.990113Z",
        "build_snapshot" : false,
        "lucene_version" : "7.2.1",
        "minimum_wire_compatibility_version" : "5.6.0",
        "minimum_index_compatibility_version" : "5.0.0"
      },
      "tagline" : "You Know, for Search"
    }

How to install Logstash on CentOS / Red Hat

By  •  May 28, 2018
  1. Add Elasticsearch repository to yum.

    Logstash package resides in the same repository as Elasticsearch

    1. Download and install the public signing key.

      # rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
    2. Add the following lines to /etc/yum.repos.d/elasticsearch.repo.

      [elasticsearch-6.x]
      name=Elasticsearch repository for 6.x packages
      baseurl=https://artifacts.elastic.co/packages/6.x/yum
      gpgcheck=1
      gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
      enabled=1
      autorefresh=1
      type=rpm-md
  2. Install Logstash package via yum.

    # yum install -y logstash
Top