netsampler / goflow2

High performance sFlow/IPFIX/NetFlow Collector
BSD 3-Clause "New" or "Revised" License
487 stars 112 forks source link

HTTP JSON output #276

Closed prabhatsharma closed 9 months ago

prabhatsharma commented 10 months ago

Thanks for building and maintaining this, folks.

How do I send HTTP JSON output to an HTTP endpoint. I am trying to get goflow2 to send data to OpenObserve for analysis

lspgn commented 10 months ago

Hello, This is not supported in GoFlow2. You may be able to achieve this using tools like Vector: stdin or file as source And http as sink https://vector.dev/docs/reference/configuration/sinks/http/

Let me know how this goes.

prabhatsharma commented 10 months ago

Added a https://github.com/netsampler/goflow2/pull/278 to support this. Let me know what you think.

lspgn commented 10 months ago

Hello, Have you tried with Vector? This should provide a stable implementation. I don't think this should be implemented here. Listed the reasons on the PR.