cloudflare / goflow

The high-scalability sFlow/NetFlow/IPFIX collector used internally at Cloudflare.
BSD 3-Clause "New" or "Revised" License
859 stars 172 forks source link

Netflow errors #30

Closed aiesam closed 5 years ago

aiesam commented 5 years ago

I get the following error when trying to run

./goflow.go:66:2: undefined: initMetrics ./goflow.go:109:2: undefined: NetFlowTemplatesStats ./goflow.go:157:4: undefined: NetFlowErrors ./goflow.go:164:4: undefined: NetFlowErrors ./goflow.go:171:4: undefined: NetFlowErrors ./goflow.go:178:4: undefined: NetFlowErrors ./goflow.go:192:3: undefined: NetFlowStats ./goflow.go:202:5: undefined: NetFlowSetStatsSum ./goflow.go:210:5: undefined: NetFlowSetRecordsStatsSum ./goflow.go:219:5: undefined: NetFlowSetStatsSum ./goflow.go:219:5: too many errors

I am not sure why

lspgn commented 5 years ago

You need go type go run goflow.go metrics.go (missing import). This will be fixed in version 3 (you can change the branch). Or directly use a binary / go build in the directory.

aiesam commented 5 years ago

Thanks. I tried it and it works. Will keep on experimenting. Thanks once again.