How does the filebeat elasticsearch module know where the elasticsearch server is?

ill make a pr to the helm charts for filebeat. https://github.com/elastic/helm-charts/pull/294