Elasticsearch
What is Elasticsearch
Elasticsearch
is a search engine based on the Lucene library.
Description
Elasticsearch
service will log every Elasticsearch request.
Syntax
[service.<nickname_of_elasticsearchService>]
type="elasticsearch"
Arguments in config file
There are 3
arguments in Elasticsearch
service:
argument | default setting | explanation |
---|---|---|
name |
AW2LChf | The node name |
cluster_name |
elasticsearch | The cluster name |
cluster_uuid |
ay20oRi4SHmlOPAyTrPh6A | The cluster UUID |
Example
[service.elastico]
type="elasticsearch"
name="AW2LChf"
cluster_name="elasticsearch"
cluster_uuid="ay20oRi4SHmlOPAyTrPh6A"
[[port]]
port="tcp/9200"
services=["elastico"]
How to test
curl [IP_ADDRESS]:9200
The test explained
With curl
we make a request to the [IP_ADDRESS]:[SPECIFIED_PORT]. The response curl
returns is the response you would expect from a Elasticsearch
cluster.
The result
The curl
result should look something like this:
{"cluster_name":"elasticsearch","cluster_uuid":"ay20oRi4SHmlOPAyTrPh6A","name":"AW2LChf","tagline":"You Know, for Search","version":{"build_date":"2017-05-29T16:05:51.443Z","build_hash":"2cfe0df","build_snapshot":false,"lucene_version":"6.5.1","number":"5.4.1"}}
Availability
Linux | MacOS | |
---|---|---|
elasticsearch | yes | yes |
Commands implemented
available | |
---|---|
/ | yes |