Parsing error on Metricbeat 8.3 with HAProxy 1.5

I installed Metricbeat 8.3 on CentOS and enabled HAProxy.

Error occured like below.

{"log.level":"debug","@timestamp":"2022-08-29T17:12:03.771+0900","log.logger":"processors","log.origin":{"file.name":"processing/processors.go","file.line":210},"message":"Publish event: {\n  \"@timestamp\": \"2022-08-29T08:12:03.770Z\",\n  \"@metadata\": {\n    \"beat\": \"metricbeat\",\n    \"type\": \"_doc\",\n    \"version\": \"8.3.1\"\n  },\n  \"event\": {\n    \"duration\": 526760,\n    \"dataset\": \"haproxy.info\",\n    \"module\": \"haproxy\"\n  },\n  \"metricset\": {\n    \"name\": \"info\",\n    \"period\": 10000\n  },\n  \"agent\": {\n    \"name\": \"****\",\n    \"type\": \"metricbeat\",\n    \"version\": \"8.3.1\",\n    \"ephemeral_id\": \"f99af63d-8935-4ec8-b9c9-caafe47385ad\",\n    \"id\": \"39051be6-fbc5-496e-9476-bb8f3facc0f7\"\n  },\n  \"ecs\": {\n    \"version\": \"8.0.0\"\n  },\n  \"host\": {\n    \"name\": \"openstack-devel\",\n    \"os\": {\n      \"codename\": \"Core\",\n      \"type\": \"linux\",\n      \"platform\": \"centos\",\n      \"version\": \"7 (Core)\",\n      \"family\": \"redhat\",\n      \"name\": \"CentOS Linux\",\n      \"kernel\": \"3.10.0-862.el7.x86_64\"\n    },\n    \"id\": \"0d8678f01fbc4352ab36e5602b435c86\",\n    \"containerized\": false,\n    \"ip\": [\n      \"10.104.101.31\",\n      \"fe80::da5e:d3ff:fe1f:475e\",\n      \"192.168.10.1\",\n      \"fe80::e63d:1aff:fee1:4b00\",\n      \"fe80::da5e:d3ff:fe1f:475f\",\n      \"fe80::2475:1eff:fef8:fd12\",\n      \"fe80::da5e:d3ff:fe1f:475f\",\n      \"192.168.****\",\n      \"fe80::58a7:a4ff:fef2:d38f\",\n      \"fe80::58a0:2fff:fede:5500\",\n      \"fe80::70ba:78ff:fec5:9cb\",\n      \"fe80::2063:36ff:fefa:1d4\",\n      \"fe80::b447:aeff:fe1d:2cb6\",\n      \"fe80::a8c8:50ff:fed4:150e\",\n      \"fe80::40bb:8bff:fe5d:193\",\n      \"fe80::4859:aff:fe40:26b\",\n      \"fe80::ac30:54ff:fedd:dde0\",\n      \"fe80::9c8d:e6ff:fe73:19ad\",\n      \"fe80::a8b3:5cff:fec2:1376\",\n      \"fe80::a8b5:caff:fe05:d510\",\n      \"fe80::e422:9dff:fe00:fc67\",\n      \"fe80::64a3:68ff:fe59:6c29\",\n      \"fe80::fc16:3eff:fe06:df65\",\n      \"fe80::2c8d:caff:fe42:7ddc\",\n      \"fe80::f8e6:20ff:fe83:3485\",\n      \"fe80::b464:14ff:fef9:5ebc\",\n      \"fe80::800c:f6ff:fe9c:ca4\",\n      \"fe80::1807:a6ff:fe7b:ca74\",\n      \"fe80::c411:e9ff:fe2f:100f\",\n      \"fe80::84d6:bbff:fe60:2211\",\n      \"fe80::58e1:aeff:fe2f:6937\",\n      \"fe80::fc16:3eff:fe7f:ffbf\",\n      \"fe80::ac5f:e5ff:fedc:bf22\",\n      \"fe80::c40a:39ff:fe30:2530\",\n      \"fe80::fcbe:19ff:fef5:d395\",\n      \"fe80::f0f9:a6ff:feb2:32ee\",\n      \"fe80::9c83:1dff:fe19:831a\",\n      \"fe80::6c78:69ff:feac:8dc4\",\n      \"fe80::fcdb:1fff:fecf:6371\",\n      \"fe80::6496:39ff:fe95:693a\",\n      \"fe80::bc15:1bff:fe3e:d772\",\n      \"fe80::9c83:fbff:fe98:963f\",\n      \"fe80::bc7b:6bff:feea:3227\",\n      \"fe80::64a2:44ff:fe12:757e\",\n      \"fe80::a0d5:8cff:fe0a:b46e\",\n      \"fe80::a4a9:60ff:fefa:bb23\",\n      \"fe80::30af:7cff:fe31:c2fb\",\n      \"fe80::bc99:1ff:fefa:6f03\",\n      \"fe80::f811:4ff:fe13:c7ab\",\n      \"fe80::9808:d1ff:fec3:b4d6\",\n      \"fe80::5456:89ff:fe79:a587\",\n      \"fe80::9014:7cff:fe4b:1a50\",\n      \"fe80::204a:1eff:fe65:4ba9\",\n      \"fe80::64c5:78ff:fe14:7ee8\",\n      \"fe80::38b2:5fff:fe66:ba4a\",\n      \"fe80::5cd2:a2ff:fecf:bd1d\",\n      \"fe80::fc16:3eff:feac:7ea5\",\n      \"fe80::fc16:3eff:fed1:7b8c\",\n      \"fe80::5cf6:acff:fea5:efb6\",\n      \"fe80::6450:27ff:fe82:f3b4\",\n      \"fe80::7c7c:72ff:fe58:5974\",\n      \"fe80::c896:f5ff:fe49:a85\",\n      \"fe80::b8e5:11ff:fe06:874\",\n      \"fe80::3c9b:8cff:fe62:2f07\",\n      \"fe80::7b:c8ff:fe87:47da\",\n      \"fe80::dc92:d4ff:fe4b:36ad\",\n      \"fe80::643b:b7ff:fe83:6adf\",\n      \"fe80::28a3:d0ff:fec6:5af4\",\n      \"fe80::fc16:3eff:feb2:e651\",\n      \"fe80::431:8aff:fe99:a3e8\",\n      \"fe80::a87b:3cff:fe19:bf0\",\n      \"fe80::10b4:9fff:fee2:b949\",\n      \"fe80::d494:7aff:fed6:3567\",\n      \"fe80::e8e0:1ff:fe2b:5e21\",\n      \"fe80::d442:44ff:fec8:a4fc\",\n      \"fe80::7804:48ff:fe80:a24\",\n      \"fe80::e4b0:3ff:fe69:797\",\n      \"fe80::fc16:3eff:fecc:fadb\",\n      \"fe80::fc16:3eff:fe3a:f11a\",\n      \"fe80::64fd:90ff:fe96:4a15\",\n      \"fe80::f4ae:d4ff:feca:9e6f\",\n      \"fe80::c8fd:a1ff:fe73:a3d0\",\n      \"fe80::2004:6bff:fecb:80ce\",\n      \"fe80::74e4:f0ff:fec2:a81e\",\n      \"fe80::608f:4bff:fe06:1773\",\n      \"fe80::f0a5:deff:fea8:ddd9\",\n      \"fe80::fc28:35ff:fe78:b5\",\n      \"fe80::ecf6:3ff:fe84:78da\",\n      \"fe80::411:e0ff:fe65:a4a9\",\n      \"fe80::204e:6cff:fec7:6e81\",\n      \"fe80::6c0d:cff:fe50:847a\",\n      \"fe80::fc16:3eff:fe47:5456\",\n      \"fe80::5811:62ff:fe31:3a89\",\n      \"fe80::4b4:5ff:fe31:e3b6\",\n      \"fe80::7cc5:73ff:fef6:f93d\",\n      \"fe80::cc7a:57ff:fe2c:af1b\",\n      \"fe80::fc16:3eff:fe0a:9a69\",\n      \"fe80::f48d:16ff:fe9f:7f53\",\n      \"fe80::c8ab:81ff:fea3:6549\",\n      \"fe80::fc16:3eff:fe68:7e87\",\n      \"fe80::fc16:3eff:fea8:cd3d\",\n      \"fe80::fc16:3eff:fefe:a1fa\"\n    ],\n    \"mac\": [\n      \"02:7b:c8:87:47:da\",\n      \"06:11:e0:65:a4:a9\",\n      \"06:31:8a:99:a3:e8\",\n      \"06:b4:05:31:e3:b6\",\n      \"12:b4:9f:e2:b9:49\",\n      \"1a:07:a6:7b:ca:74\",\n      \"22:04:6b:cb:80:ce\",\n      \"22:4a:1e:65:4b:a9\",\n      \"22:4e:6c:c7:6e:81\",\n      \"22:63:36:fa:01:d4\",\n      \"26:75:1e:f8:fd:12\",\n      \"2a:15:6c:61:e4:d7\",\n      \"2a:a3:d0:c6:5a:f4\",\n      \"2e:8d:ca:42:7d:dc\",\n      \"32:af:7c:31:c2:fb\",\n      \"36:e3:2b:0a:62:4f\",\n      \"3a:b2:5f:66:ba:4a\",\n      \"3e:9b:8c:62:2f:07\",\n      \"42:bb:8b:5d:01:93\",\n      \"4a:59:0a:40:02:6b\",\n      \"52:54:00:de:8d:63\",\n      \"56:56:89:79:a5:87\",\n      \"5a:11:62:31:3a:89\",\n      \"5a:a0:2f:de:55:00\",\n      \"5a:a7:a4:f2:d3:8f\",\n      \"5a:e1:ae:2f:69:37\",\n      \"5e:d2:a2:cf:bd:1d\",\n      \"5e:f6:ac:a5:ef:b6\",\n      \"62:8f:4b:06:17:73\",\n      \"66:3b:b7:83:6a:df\",\n      \"66:50:27:82:f3:b4\",\n      \"66:96:39:95:69:3a\",\n      \"66:a2:44:12:75:7e\",\n      \"66:a3:68:59:6c:29\",\n      \"66:c5:78:14:7e:e8\",\n      \"66:fd:90:96:4a:15\",\n      \"6e:0d:0c:50:84:7a\",\n      \"6e:78:69:ac:8d:c4\",\n      \"72:ba:78:c5:09:cb\",\n      \"76:e4:f0:c2:a8:1e\",\n      \"7a:04:48:80:0a:24\",\n      \"7e:7c:72:58:59:74\",\n      \"7e:c5:73:f6:f9:3d\",\n      \"82:0c:f6:9c:0c:a4\",\n      \"86:d6:bb:60:22:11\",\n      \"92:14:7c:4b:1a:50\",\n      \"9a:08:d1:c3:b4:d6\",\n      \"9e:83:1d:19:83:1a\",\n      \"9e:83:fb:98:96:3f\",\n      \"9e:8d:e6:73:19:ad\",\n      \"a2:d5:8c:0a:b4:6e\",\n      \"a6:a9:60:fa:bb:23\",\n      \"aa:7b:3c:19:0b:f0\",\n      \"aa:b3:5c:c2:13:76\",\n      \"aa:b5:ca:05:d5:10\",\n      \"aa:c8:50:d4:15:0e\",\n      \"ae:30:54:dd:dd:e0\",\n      \"ae:5f:e5:dc:bf:22\",\n      \"b6:47:ae:1d:2c:b6\",\n      \"b6:64:14:f9:5e:bc\",\n      \"ba:e5:11:06:08:74\",\n      \"be:15:1b:3e:d7:72\",\n      \"be:7b:6b:ea:32:27\",\n      \"be:99:01:fa:6f:03\",\n      \"c6:0a:39:30:25:30\",\n      \"c6:11:e9:2f:10:0f\",\n      \"ca:96:f5:49:0a:85\",\n      \"ca:ab:81:a3:65:49\",\n      \"ca:fd:a1:73:a3:d0\",\n      \"ce:7a:57:2c:af:1b\",\n      \"d2:85:89:d2:ac:53\",\n      \"d6:42:44:c8:a4:fc\",\n      \"d6:94:7a:d6:35:67\",\n      \"d8:5e:d3:1f:47:5e\",\n      \"d8:5e:d3:1f:47:5f\",\n      \"de:92:d4:4b:36:ad\",\n      \"e4:3d:1a:e1:4b:00\",\n      \"e4:3d:1a:e1:4b:01\",\n      \"e6:22:9d:00:fc:67\",\n      \"e6:b0:03:69:07:97\",\n      \"ea:72:5e:50:57:42\",\n      \"ea:e0:01:2b:5e:21\",\n      \"ee:f6:03:84:78:da\",\n      \"f2:a5:de:a8:dd:d9\",\n      \"f2:f9:a6:b2:32:ee\",\n      \"f6:8d:16:9f:7f:53\",\n      \"f6:ae:d4:ca:9e:6f\",\n      \"fa:11:04:13:c7:ab\",\n      \"fa:e6:20:83:34:85\",\n      \"fe:16:3e:06:df:65\",\n      \"fe:16:3e:0a:9a:69\",\n      \"fe:16:3e:3a:f1:1a\",\n      \"fe:16:3e:47:54:56\",\n      \"fe:16:3e:68:7e:87\",\n      \"fe:16:3e:7f:ff:bf\",\n      \"fe:16:3e:a8:cd:3d\",\n      \"fe:16:3e:ac:7e:a5\",\n      \"fe:16:3e:b2:e6:51\",\n      \"fe:16:3e:cc:fa:db\",\n      \"fe:16:3e:d1:7b:8c\",\n      \"fe:16:3e:fe:a1:fa\",\n      \"fe:28:35:78:00:b5\",\n      \"fe:be:19:f5:d3:95\",\n      \"fe:db:1f:cf:63:71\"\n    ],\n    \"hostname\": \"****l\",\n    \"architecture\": \"x86_64\"\n  },\n  \"service\": {\n    \"address\": \"tcp://127.0.0.1:9101\",\n    \"type\": \"haproxy\"\n  },\n  \"error\": {\n    \"message\": \"error in mapping: error getting IdlePct: strconv.ParseFloat: parsing \\\"\\\": invalid syntax\"\n  }\n}","service.name":"metricbeat","ecs.version":"1.6.0"}

How can fix this issue?

All settings are default.

That appears to be a debug line, are you observing other issues?

Please see below.

{"log.level":"error","@timestamp":"2022-09-02T11:16:06.281+0900","log.origin":{"file.name":"module/wrapper.go","file.line":256},"message":"Error fetching data for metricset haproxy.info: error in mapping: error getting IdlePct: strconv.ParseFloat: parsing \"\": invalid syntax","service.name":"metricbeat","ecs.version":"1.6.0"}

It looks like it is unable to get data from the HAProxy, did you follow the HA configuration steps: HAProxy module | Metricbeat Reference [8.4] | Elastic

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.