Filebeat autodiscover for Kubernetes uses incorrect log path

I'm trying to configure filebeat and my pods in kubernetes to use auto disscover and hints. I found this previous topic: Filebeat autodiscover for Kubernetes uses inconsistent log files path by default but it's now closed.

At this point in time I'm unable to upgrade past 7.17, so I was curious what the proper workaround should be.

Thanks