Skip to content

[COPY] Elasticsearch plugins guides #1410

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ author:
contributor:
name: Tyler Langlois
link: https://tjll.net
description: 'This guide will show how to install a variety of useful Elasticsearch plugins.'
description: 'This guide shows how to install a variety of useful Elasticsearch plugins.'
og_description: 'Elasticsearch supports a wide variety of plugins which enable more powerful search features. This guide will explore how to manage, install, and use these plugins to better leverage Elasticsearch for different use cases.'
external_resources:
- '[Elastic Documentation](https://www.elastic.co/guide/index.html)'
Expand Down Expand Up @@ -82,7 +82,7 @@ The remainder of this guide will walk through several plugins and common use cas

There are a number of tools that can be used to issue this request. The simplest approach would be to use `curl` from the command line:

`curl -H'Content-Type: application/json' -XPOST localhost:9200/exampleindex/doc/1 -d '{ "message": "this the value for the message field" }'`
curl -H'Content-Type: application/json' -XPOST localhost:9200/exampleindex/doc/1 -d '{ "message": "this the value for the message field" }'

Other alternatives include the [vim-rest-console](https://github.com/diepm/vim-rest-console), the Emacs plugin [es-mode](https://github.com/dakrone/es-mode), or the [Console](https://www.elastic.co/guide/en/kibana/current/console-kibana.html) plugin for Kibana. Use whichever tool is most convenient for you.

Expand Down
16 changes: 8 additions & 8 deletions docs/databases/elasticsearch/install_elasticsearch_centos.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ shortguide: true
[elasticsearch-6.x] name=Elastic 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
{{< /file-excerpt >}}

3. Update the yum cache to ensure any new packages become available:
3. Update the yum cache to ensure the latest packages will be installed:

sudo yum update
Debian Based Distributions
Expand All @@ -32,17 +32,17 @@ shortguide: true

wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -

5. Install the elasticsearch package:
5. Install the `elasticsearch` package:

sudo yum install -y elasticsearch

6. Set the JVM heap size to approximately half of your server's available memory. For example, if your server has 1GB of RAM, change the Xms and Xmx values in the /etc/elasticsearch/jvm.options file to 512m, and leave the other values in this file unchanged:
6. Set the JVM heap size to approximately half of your server's available memory. For example, if your server has 1GB of RAM, change the Xms and Xmx values in the `/etc/elasticsearch/jvm.options` file to `512m`, and leave the other values in this file unchanged:

{{< file "/etc/elasticsearch/jvm.options" aconf >}}
-Xms512m -Xmx512m
{{< /file >}}

7. Start and enable the elasticsearch service:
7. Enable and start the `elasticsearch` service:

sudo systemctl enable elasticsearch
sudo systemctl start elasticsearch
Expand All @@ -51,7 +51,7 @@ shortguide: true

curl localhost:9200

The Elasticsearch REST API should return a JSON response similar to the following:
The Elasticsearch REST API should return a JSON response similar to the following:

{{< output >}}
{
Expand All @@ -71,6 +71,6 @@ shortguide: true
}
{{</ output >}}

{{< note >}}
Elasticsearch may take some time to start up. If you need to determine whether the service has started successfully or not, you can use the `systemctl status elasticsearch` command to see the most recent logs.
{{< /note >}}
9. To determine whether or not the service has started successfully, view the most recent logs:

systemctl status elasticsearch
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ published: 2018-01-09
shortguide: true
---


The Elastic package repositories contain the necessary Elasticsearch package.

1. Install the official Elastic APT package signing key:

wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
Expand All @@ -36,14 +33,14 @@ The Elastic package repositories contain the necessary Elasticsearch package.

sudo apt-get install -y elasticsearch

6. Set the JVM heap size to approximately half of your server's available memory. For example, if your server has 1GB of RAM, change the `Xms` and `Xmx` values in the `/etc/elasticsearch/jvm.options` file to 512m. Leave the other values in this file unchanged:
6. Set the JVM heap size to approximately half of your server's available memory. For example, if your server has 1GB of RAM, change the `Xms` and `Xmx` values in the `/etc/elasticsearch/jvm.options` file to `512m`. Leave the other values in this file unchanged:

{{< file "/etc/elasticsearch/jvm.options" conf >}}
-Xms512m
-Xmx512m
{{< /file >}}

7. Start and enable the `elasticsearch` service:
7. Enable and start the `elasticsearch` service:

sudo systemctl enable elasticsearch
sudo systemctl start elasticsearch
Expand Down Expand Up @@ -72,6 +69,6 @@ The Elastic package repositories contain the necessary Elasticsearch package.
}
{{</ output >}}

{{< note >}}
Elasticsearch may take some time to start up. If you need to determine whether the service has started successfully or not, you can use the `systemctl status elasticsearch` command to see the most recent logs.
{{< /note >}}
9. To determine whether or not the service has started successfully, view the most recent logs:

systemctl status elasticsearch