-
Notifications
You must be signed in to change notification settings - Fork 5k
Closed
Labels
Description
Looking at the code of the Logstash module I believe the module is also affected by a similar bug defined in #15258 for Kibana. I also looked at the Elasticsearch module but I think this one is OK.
beats/metricbeat/module/logstash/node/node.go
Lines 55 to 81 in d545f69
| func New(base mb.BaseMetricSet) (mb.MetricSet, error) { | |
| ms, err := logstash.NewMetricSet(base) | |
| if err != nil { | |
| return nil, err | |
| } | |
| if ms.XPack { | |
| logstashVersion, err := logstash.GetVersion(ms) | |
| if err != nil { | |
| return nil, err | |
| } | |
| arePipelineGraphAPIsAvailable := logstash.ArePipelineGraphAPIsAvailable(logstashVersion) | |
| if err != nil { | |
| return nil, err | |
| } | |
| if !arePipelineGraphAPIsAvailable { | |
| const errorMsg = "The %v metricset with X-Pack enabled is only supported with Logstash >= %v. You are currently running Logstash %v" | |
| return nil, fmt.Errorf(errorMsg, ms.FullyQualifiedName(), logstash.PipelineGraphAPIsAvailableVersion, logstashVersion) | |
| } | |
| } | |
| return &MetricSet{ | |
| ms, | |
| }, nil | |
| } |