elastic / elastic/beats

Support HAProxy 2.x

Open
#34,845 6 comments 1 reaction 0 assignees View on GitHub
needs_team Stalled
Dominant language
Go
Stars
12.7k
Forks
5k
Avg merge
2d 2h
Merged PRs (30d)
364

Description

**Describe the enhancement:**

According to https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-module-haproxy.html#_compatibility_22, the HAProxy module supports HAProxy versions 1.6, 1.7 and 1.8.

Running HAProxy 2.6, the following error occurs when Metricbeat tries to index events:

```
WARN [elasticsearch] elasticsearch/client.go:414 Cannot index event publisher.Event{Content:beat.Event{Timestamp:time.Date(2023, time.March, 17, 21, 36, 50, 235561684, time.Local), Meta:null, Fields: [...] (status=400): {"type":"mapper_parsing_exception","reason":"failed to parse field [haproxy.stat.check.agent.last] of type [long] in document with id 'LbZK8YYBniYVjaQFG-SZ'. Preview of field's value: 'via agent : up'","caused_by":{"type":"illegal_argument_exception","reason":"For input string: \"via agent : up\""}}, dropping event!
```

**Describe a specific use case for the enhancement or feature:**

All 1.x versions are EOL.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.