From 1409c5537e22607e6ea286aa6d2d9fbdd29c88f2 Mon Sep 17 00:00:00 2001 From: Shaunak Kashyap Date: Thu, 27 Jun 2019 05:53:52 -0400 Subject: [PATCH] Fixiing URI in call to logstash.GetVersion --- metricbeat/module/logstash/node/node.go | 2 +- metricbeat/module/logstash/node_stats/node_stats.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/metricbeat/module/logstash/node/node.go b/metricbeat/module/logstash/node/node.go index 8088867bc6d..734fad4c23a 100644 --- a/metricbeat/module/logstash/node/node.go +++ b/metricbeat/module/logstash/node/node.go @@ -66,7 +66,7 @@ func New(base mb.BaseMetricSet) (mb.MetricSet, error) { } if ms.XPack { - logstashVersion, err := logstash.GetVersion(http, nodePath) + logstashVersion, err := logstash.GetVersion(http, ms.HostData().SanitizedURI+nodePath) if err != nil { return nil, err } diff --git a/metricbeat/module/logstash/node_stats/node_stats.go b/metricbeat/module/logstash/node_stats/node_stats.go index 319ecd50389..bdd8a80ec3e 100644 --- a/metricbeat/module/logstash/node_stats/node_stats.go +++ b/metricbeat/module/logstash/node_stats/node_stats.go @@ -68,7 +68,7 @@ func New(base mb.BaseMetricSet) (mb.MetricSet, error) { } if ms.XPack { - logstashVersion, err := logstash.GetVersion(http, nodeStatsPath) + logstashVersion, err := logstash.GetVersion(http, ms.HostData().SanitizedURI+nodeStatsPath) if err != nil { return nil, err }