How to continuously feed sniffed packets to kafka?

前端 未结 4 1455
清酒与你
清酒与你 2021-01-21 04:56

Currently I am sniffing packets from my local wlan interface like :

sudo tshark > sampleData.pcap

However, I need to feed this data to kafka.

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-21 05:29

    I think you can either

    • create a tiny server that connects to kafka ant listens to a port
    • use the kafka-file connector and append all your data to that file. http://kafka.apache.org/documentation.html#quickstart_kafkaconnect

提交回复
热议问题