在 Logstash 客户端上设置 Elasticsearch 节点名称
Set Elasticsearch node name on Logstash client
当我的 logstash 索引器连接到 Elasticsearch 时,它们显示为 "logstash-localhost-xxxxx-xxxxx",其中 x 是数字。有谁知道如何设置节点名称或让它们显示主机名?我在 CentOS 6 上,正在从官方存储库安装 v1.5。
您需要为 LS 中的 elasticsearch
输出指定 node_name
:https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-node_name
node_name
Value type is string
There is no default value for this setting.
The node name Elasticsearch will use when joining a cluster.
By default, this is generated internally by the ES client.
当我的 logstash 索引器连接到 Elasticsearch 时,它们显示为 "logstash-localhost-xxxxx-xxxxx",其中 x 是数字。有谁知道如何设置节点名称或让它们显示主机名?我在 CentOS 6 上,正在从官方存储库安装 v1.5。
您需要为 LS 中的 elasticsearch
输出指定 node_name
:https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-node_name
node_name
Value type is string There is no default value for this setting. The node name Elasticsearch will use when joining a cluster.
By default, this is generated internally by the ES client.