I’m unable to use the nftables plugin in telegraf, getting this error message:
Error in plugin: parsing command output failed: unable to parse set: json: cannot unmarshal string into Go struct field namedSet.elem of type nftables.elem
I have this set defined:
set AllowedIPs {
type ipv4_addr
elements = { 10.47.55.250, 10.47.56.232 }
}
the nft --json list table firewall output:
{
"set": {
"family": "inet",
"name": "AllowedIPs",
"table": "firewall",
"type": "ipv4_addr",
"handle": 18,
"flags": [
"interval"
],
"elem": [
"10.47.55.250",
"10.47.56.232"
]
}
}
This issue looks to be because it’s expecting the element to be more like
"elem": [{ "val": "10.47.55.250" }]
Any ideas?
