{"schemaVersion":1,"resourceType":"connector","slug":"netflow","name":"NetFlow","catalog":"netflow","description":"Turn captured NetFlow v5/v9, IPFIX, and sFlow v5 datagrams into normalized, queryable flow rows","language":"Rust","categories":["devtools"],"repository":"https://github.com/Query-farm/vgi-netflow","license":"MIT","generatedAt":"2026-12-01T18:22:16+00:00","runtime":{"engineVersion":"2.0.1","protocolVersion":"3.4"},"release":{"tag":"v0.6.0","publishedAt":"2026-11-25T20:35:53Z","url":"https://github.com/Query-farm/vgi-netflow/releases/tag/v0.6.0"},"links":{"html":"https://query.farm/products/orchard/connectors/netflow/","llms":"https://query.farm/products/orchard/connectors/netflow/llms.txt","markdown":"https://query.farm/products/orchard/connectors/netflow/index.md","json":"https://query.farm/products/orchard/api/v1/connectors/netflow.json","objects":"https://query.farm/products/orchard/api/v1/connectors/netflow/objects.json","search":"https://query.farm/products/orchard/api/v1/search.json?kind=object&connector=netflow&q={query}"},"authentication":{"mode":"none_declared","guidance":"No service credentials are declared by this connector. Individual datasets, input files or deployments may have their own prerequisites.","interpretation":"Secret parameter required flags describe the upstream declaration; they do not override the service-level mode above. Keep secrets in environment variables or the deployment secret store. SQL values in angle brackets are placeholders, not automatic environment lookups. Native DuckDB and Haybarn 2.0.1 do not provide a SQL getenv() function, even when worker-supplied snippets mention it. Read environment variables in your application and pass credential values through client parameter bindings (for example, Python con.execute(\"CREATE SECRET stripe (TYPE stripe, api_key ?)\", [os.environ[\"STRIPE_API_KEY\"]]) after attaching the connector. Omit unused optional parameters and keep real values out of saved SQL and logs.","secrets":[]},"deployment":{"local":{"methods":[{"id":"github","label":"From GitHub","icon":"simple-icons:github","steps":[{"title":"Attach the release directly","description":"Downloads the latest release for your platform and caches it locally.","lang":"sql","code":"ATTACH 'netflow' AS netflow (\n  TYPE vgi,\n  LOCATION 'github-auto://Query-farm/vgi-netflow'\n);"}]},{"id":"docker","label":"Docker","icon":"simple-icons:docker","steps":[{"title":"Attach the signed image","description":"Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.","lang":"sql","code":"ATTACH 'netflow' AS netflow (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-netflow:0.6.0'\n);"}]}],"pinnedMethods":[{"id":"github","label":"From GitHub","icon":"simple-icons:github","steps":[{"title":"Attach the release directly","description":"Uses the verified release each time you attach the connector.","lang":"sql","code":"ATTACH 'netflow' AS netflow (\n  TYPE vgi,\n  LOCATION 'github-auto://Query-farm/vgi-netflow@v0.6.0'\n);"}]},{"id":"docker","label":"Docker","icon":"simple-icons:docker","steps":[{"title":"Attach the signed image","description":"Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.","lang":"sql","code":"ATTACH 'netflow' AS netflow (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-netflow:0.6.0'\n);"}]}]},"selfHost":{"instructions":"https://github.com/Query-farm/vgi-netflow","connectionGuide":"https://query.farm/vgi/connect-to-a-worker/","guidance":"Deploy using the connector repository instructions and use its supported HTTP or SSH transport. Replace example URLs with your actual deployment; configure its authentication."},"queryFarm":{"available":true,"console":"https://auth.queryfarm.cloud/console/new?worker=netflow","organizationMonthlyMinimumUsd":10,"pricing":"https://query.farm/products/orchard/hosted/"},"publicDemo":null},"setup":{"extensions":{"duckdb":"SET allow_extension_repositories = 'allowed';\n\nCREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm\n    WITH PREFIX 'https://duckdb-extensions.query.farm';\n\nINSTALL vgi FROM query_farm;\nLOAD vgi FROM query_farm;","haybarn":"INSTALL vgi FROM community;\nLOAD vgi;"},"attachSql":"ATTACH 'netflow' AS netflow (\n  TYPE vgi,\n  LOCATION 'github-auto://Query-farm/vgi-netflow'\n);","attachOptions":[],"note":"Install and load VGI, attach the connector using the catalog alias shown here, then create required secrets. Replace placeholders and omit unused optional secret parameters. Satisfy file, network and credential prerequisites before executing a query."},"example":{"title":"See what you can query","sql":"SELECT netflow.main.flow_version(content) AS version, count(*) FROM read_blob(['https://raw.githubusercontent.com/Query-farm/vgi-netflow/v0.4.0/test/data/v5.dat', 'https://raw.githubusercontent.com/Query-farm/vgi-netflow/v0.4.0/test/data/v9.dat', 'https://raw.githubusercontent.com/Query-farm/vgi-netflow/v0.4.0/test/data/ipfix.dat', 'https://raw.githubusercontent.com/Query-farm/vgi-netflow/v0.4.0/test/data/sflow.dat']) GROUP BY version ORDER BY version","requiresCredentials":null,"note":null,"objects":[{"name":"netflow.main.flow_version","kind":"scalar_function","links":{"html":"https://query.farm/products/orchard/connectors/netflow/#obj-main-flow_version","markdown":"https://query.farm/products/orchard/connectors/netflow/objects/scalar_function.bWFpbg.Zmxvd192ZXJzaW9u.md","json":"https://query.farm/products/orchard/api/v1/connectors/netflow/objects/scalar_function.bWFpbg.Zmxvd192ZXJzaW9u.json"}}],"evidence":{"status":"captured_result","capturedAt":"2026-12-01T06:16:30+00:00","engineVersion":"2.0.1","protocolVersion":"3.4.0","releaseTag":"v0.6.0","sample":{"columns":["version","count_star()"],"types":["VARCHAR","BIGINT"],"rows":[["10",1],["5",1],["9",1],["sflow5",1]],"more":false}},"artifact":null},"objects":{"total":17,"index":"https://query.farm/products/orchard/api/v1/connectors/netflow/objects.json","search":"https://query.farm/products/orchard/api/v1/search.json?kind=object&connector=netflow&q={query}"},"agentTasks":["I have a one-byte blob that is not a flow datagram. Probe its flow-export version; it should come back NULL. Return a single column named v.","Classify the garbage two-byte blob 0xDEAD with the validator and return just the failure kind as a single column named kind.","I captured this NetFlow v5 export datagram as a hex string: 00050002000186a06553f100000000000000000a000100000a0000010a0000020a0000fe000100020000000a000003e800015f900001731804d2005000180600fbf4fbf518180000c0a80101080808080a0000fe0001000200000002000000c800015f900001731814e900350000110000003b4118180000. Decode it with the unified flow decoder and tell me how many normalized flow rows it yields. Return one row, one column named flow_count.","This is a NetFlow v9 export datagram in hex (it carries its template and one data record): 00090002000186a06553f1000000001400000001000000240100000700080004000c000400070002000b000200040001000200040001000401000019ac100001ac100002045700160600000003000000b4. Decode it with the NetFlow-specific decoder and return the layer-4 destination port of the single decoded flow. One row, one column named dst_port.","Decode this IPFIX (version 10) datagram given as hex: 000a006d6553f100000000070000002a0002002c0100000900080004000c000400070002000b0002000400010001000800020008009800080099000801000031cb007105c633640980e801bb06000000000016e36000000000000004b00000018bcfe568000000018bcfe58f10. Return the IP protocol number of the decoded flow. One row, one column named protocol.","Decode this sFlow v5 datagram given as hex: 00000005000000010a0000090000000000000001000003e8000000020000000100000048000000640000000000001000000000000000000000000005000000060000000100000003000000200000004000000006c000020ac00002140000c738000000500000001800000000000000020000006c000000c80000000000000001000000010000005800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000. Count how many flow-sample rows it produces — that is, decoded rows that carry a non-NULL destination port (counter samples have no ports). One row, one column named flow_samples.","Without fully decoding its records, read just the export header of this NetFlow v5 datagram given as hex: 00050002000186a06553f100000000000000000a000100000a0000010a0000020a0000fe000100020000000a000003e800015f900001731804d2005000180600fbf4fbf518180000c0a80101080808080a0000fe0001000200000002000000c800015f900001731814e900350000110000003b4118180000. Return its protocol version and its record count, in that order — one row, a `version` column then a `records` column.","Two steps, in one session. First decode this IPFIX datagram (hex) scoping the template cache to the exporter id 'sim-tmpl-probe': 000a006d6553f100000000070000002a0002002c0100000900080004000c000400070002000b0002000400010001000800020008009800080099000801000031cb007105c633640980e801bb06000000000016e36000000000000004b00000018bcfe568000000018bcfe58f10. Then inspect the worker's template cache, filtered to that same exporter, and tell me how many templates it learned. Your final answer is the count — one row, one column named n."],"provenance":{"generatedAt":"2026-12-01T18:22:16+00:00","repository":"https://github.com/Query-farm/vgi-netflow","harvest":{"status":"ok","method":"github-auto","error":null,"vgi_version":"9773130dde"},"catalogVerification":{"verified":true,"status":"passed","total":33,"passed":33,"failed":0,"needs_credentials":0,"location":"github-auto://Query-farm/vgi-netflow@v0.6.0","transport":"github-auto","environment":{"vgi_extension_version":"9773130dde","haybarn_version":"2.0.1rc3","engine_version":"v2.0.1","python":"3.12.4","platform":"darwin_arm64","protocol_version":"3.4.0"},"checked_at":"2026-12-01T06:14:44+00:00"},"interpretation":"Catalog verification records the harvest environment. It is not proof that every query or current live API call succeeds. Only an example with captured_result has a saved result for that exact SQL."},"interpretation":["Missing, null, or undeclared metadata means unknown; do not invent defaults, credential scope, platform support or endpoint URLs.","Search is keyword retrieval, not proof of a capability. Read the exact object declaration before generating SQL.","A table and a table function can have the same name. Preserve parentheses and use the matching overload and schema.","Service credentials, external data availability and deployment authentication are separate requirements."]}