cloudflare / goflow

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

vendor-specific field parsing #110

Closed sharmarohit0013 closed 2 years ago

sharmarohit0013 commented 2 years ago

while parsing the vendor-specific fields, I am getting type as 33668 instead of 900, when i print df under producer/producer-nf.go/ConvertNetFlowDataSet/ i am getting {33668 [196 113 212 10 84 101 115 116]}

also, I could not find any way to provide my vendor-specific data structure to do the parsing. help me out how to parse vendor-specific fields in goflow attachment have the packet which I used for parsing

config.zip

lspgn commented 2 years ago

Hello, I implemented it in the forked version https://github.com/netsampler/goflow2 The custom mapping is very recent (not in the release yet but in the main branch) This should fit your needs.

sharmarohit0013 commented 2 years ago

thanks