Bpf_filter not working?

hello ,

Lately I upgrade to use packetbeat version 5.x, I found bpf_filter option not working as previously in packetbeat version 2.x, basically if I set this option in configuration file, I can still see packetbeat which is not qualified with this filter syntax coming in .

the configuration I 'm using is as below,
packetbeat.interfaces.bpf_filter: "host and and port 18001"
then I can still receive packetbeat from another IP address like with port 18001

Any ideas ? or did I miss something ?
thanks for your help in advance.

Can you enable the sniffer debug log with -d "sniffer"? This should print the BPF filter to be installed with the sniffer during setup.

Thanks for the reply I'll make a test and get back here.

which exact packetbeat version are you using? It might be early 5.x releases actually having a bug not correctly applying the filter.

the version I'm using is 5.2.3, should I update to the latest version ?

not sure. maybe you want to try with both version.

I made the test and here is the result,

by applying -d "sniffer", I found the bpf_filter config did not take effect, even if I upgrade to packetbeat 5.4.

and also I found memcache's port 11211 was always on no matter if I annotate the 11211 port in configuration file.

Thanks for testing. This is clearly a bug. Can you report this on github?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.