Filebeat: How to not send logs from kube-system namespace

Did you try this solution (with template): How to exclude other namespaces? - #24 by wajika ?

BTW Which version of filebeat are you using? Maybe there was a bugfix pushed in latter one.