This page explains how to export IPFIX with Fluvia Exporter.
$ go install github.com/nttcom/fluvia/cmd/fluvia@latest
Specify the IP address and port number for IPFIX collector
---
ipfix:
address: 192.0.2.1
port: 4739
ingress-interface: ens192
interval: 1
interval is the intervals between exports (seconds) and the default is 1 second.
Start the fluvia command. Specify the created configuration file with the -f option.
$ sudo fluvia -f fluvia.yaml
$ git clone https://github.com/nttcom/fluvia
tools/exporter/exporter.go
is an example of Fluvia Exporter as a native IPFIX exporter library.
This code includes the IPFIX templates/data from draft-ietf-opsawg-ipfix-srv6-srh Appendix A Figure 1/2.
$ cd tools/exporter
$ go run exporter.go