Archiving Network Flows from vRealize Network Insight to Log Insight
This script will fetch the network flows from vRealize Network Insight according to a defined filter (in the script) and send them to vRealize Log Insight for archival purposes. As vRNI only keeps 1 month of flow data, this script will make it possible to keep the flow details (source, destination, protocol, port, and some more context fields) indefinitely (as long as you have storage).
This script is in the context of the vRNI SDK and uses some helpers. Grab a copy of the SDK here: https://github.com/vmware/network-insight-sdk-python