repeatedly/fluent-plugin-netflow

"No matching template" shows when using multi workers.

ltyhpynyh opened this issue · 0 comments

I found these warning messages showed in the "td-agent.log" when I sent packets that only has data flowsets. The packet that has both templates and data flowsets had been sent before.

Here are some records from "td-agent.log":

I ran the Netflow plugin with 4 workers.
The numbers are the worker id printed by $log.info "#{ENV["SERVERENGINE_WORKER_ID"]}"

2021-08-24 07:55:59 +0000 [info]: #0 0 2021-08-24 07:56:03 +0000 [info]: #0 Output batch finished process chunk 5ca4976e3bd8827215520cef34765628, chunk size 197 records 1, time spent 0.013428688049316406 2021-08-24 07:56:19 +0000 [info]: #1 1 2021-08-24 07:56:19 +0000 [warn]: #1 No matching template for host="10.33.6.1" source_id=0 flowset_id=256 2021-08-24 07:56:28 +0000 [info]: #0 0 2021-08-24 07:56:32 +0000 [info]: #0 Output batch finished process chunk 5ca4978a146b227a44b309393daa9a2c, chunk size 197 records 1, time spent 0.006578207015991211 2021-08-24 07:56:35 +0000 [info]: #2 2 2021-08-24 07:56:35 +0000 [warn]: #2 No matching template for host="10.33.6.1" source_id=0 flowset_id=256 2021-08-24 07:56:38 +0000 [info]: #3 3 2021-08-24 07:56:38 +0000 [warn]: #3 No matching template for host="10.33.6.1" source_id=0 flowset_id=256 2021-08-24 07:56:42 +0000 [info]: #0 0 2021-08-24 07:56:46 +0000 [info]: #0 Output batch finished process chunk 5ca49796c9e5b3f51d629a68af0df4c3, chunk size 197 records 1, time spent 0.007285594940185547 2021-08-24 07:56:48 +0000 [info]: #1 1 2021-08-24 07:56:48 +0000 [warn]: #1 No matching template for host="10.33.6.1" source_id=0 flowset_id=256 2021-08-24 07:56:54 +0000 [info]: #0 0 2021-08-24 07:56:58 +0000 [info]: #0 Output batch finished process chunk 5ca497a277ad8cdbaef567199e4527a7, chunk size 197 records 1, time spent 0.0065250396728515625

Is the plugin designed to work like this? (Each worker uses its own template Vash)