Non of this work for me.
But with
--all-pods=true
it works without any scripting
kubectl logs daemonsets/fluent-bit --all-containers=true --all-pods=true