How to continuously feed sniffed packets to kafka?

前端 未结 4 1616
清酒与你
清酒与你 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条回答
  •  死守一世寂寞
    2021-01-21 05:07

    Another option would be to use Apache NiFi. With NiFi you can execute commands and pass the output to other blocks for further processing. Here you could have NiFi execute a tshark command on the local host and then pass the output to Kafka.

    There is an example here which should demonstrate this type of approach in slightly more detail.

提交回复
热议问题