When using a pcap file, the last batch of data is missed because the context closes before it is sent. To solve this, I've created a new context for ClickHouse that remains open until the last batch is sent, and then it closes after the main context is closed.
When using a pcap file, the last batch of data is missed because the context closes before it is sent. To solve this, I've created a new context for ClickHouse that remains open until the last batch is sent, and then it closes after the main context is closed.
Fix issue: #32
Tested with default configuration
Before Change
Dnsmonster log
Clickhouse select count(*)
After Change
Dnsmonster log
Clikchouse select count(*)