phaag / go-nfdump

go-nfdump: A Go module to read and process nfdump files
BSD 2-Clause "Simplified" License
7 stars 1 forks source link

sflow records not being processed #7

Closed gabrielmocan closed 1 year ago

gabrielmocan commented 1 year ago

Hi Pete, I'm having issue to read the sflow capture. I've attached a sample to your e-mail.

nfdump CLI's read it all right, go-nfdump reports 0 records.

phaag commented 1 year ago

I can not confirm your findings. The sample reader processes both files with the same number of flows, as cli nfdump. I would be surprised as there is no difference in the data format. Sflow and netflow differ only in the nfversion field.

gabrielmocan commented 1 year ago

You're right @phaag, my samples doesn't have nextHop information, so nil checking was making the result 0.

Sorry about that, I'm closing this issue.