-
Hi all, ebpf-agent-1 | time="2025-06-18T03:57:36Z" level=error msg="Failed in send IPFIX data record" collector="1.xxx.xxx.xxx:9995" component=exporter/IPFIXProto error="error when sending message on the connection: write udp 1.xxx.xxx.xxx:44136->1.xxx.xxx.xxxx:9995: use of closed network connection" Thank you very much! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
Hi @WENPIN1 ,
Unless we find someone willing to maintain it, we'll probably remove it sooner or later. So, the proposed alternative for IPFIX is to use the "direct-flp" mode, and use IPFIX export mode from the flowlogs-pipeline configuration. flp-config.json
See the freshly updated doc: https://github.com/netobserv/flowlogs-pipeline/blob/main/docs/api.md#write-ipfix (I just realized it was missing) |
Beta Was this translation helpful? Give feedback.
-
After switching the export mode to flp-direct and using FLP_CONFIG as above, the issue happens as the same once I restart the collector. It seems that flowlog-pipeline won't reconnect to the collector once the connection has been closed for a while. EXPORT="direct-flp" ebpf-agent-1 | time="2025-06-19T03:33:59Z" level=error msg="Failed in send v4 IPFIX record" component=write.Ipfix error="error when sending message on the connection: write udp 127.0.0.1:44936->127.0.0.1:2055: use of closed network connection" The ipfix collecor is Elasticsearch filbeat netflow module which listen on UDP port 2055. docker-compose.yamlservices: content of 'env_flp_ipfix' Thank you! |
Beta Was this translation helpful? Give feedback.
-
One significant issue is that 'direct-flp' mode exports less information than "ipfix+udp" mode. |
Beta Was this translation helpful? Give feedback.
-
FYI I'm working on a fix with IPFIX in flowlogs-pipeline: the two that you mentioned, and also an error wrongly reported when ports are missing (e.g. icmp) |
Beta Was this translation helpful? Give feedback.
-
The issue comes from the go-ipfix dependency which never re-creates the connection to the collector. A fix is proposed upstream: vmware/go-ipfix#434, and in the meantime, the dependency was forked via this pull-request: netobserv/flowlogs-pipeline#1019 (which also fixes other issues with IPFIX). It is planned to land in v1.9.1-community in a few days. |
Beta Was this translation helpful? Give feedback.
The issue comes from the go-ipfix dependency which never re-creates the connection to the collector. A fix is proposed upstream: vmware/go-ipfix#434, and in the meantime, the dependency was forked via this pull-request: netobserv/flowlogs-pipeline#1019 (which also fixes other issues with IPFIX).
It is planned to land in v1.9.1-community in a few days.