Rancher Logging to Elastic server API (not http(s))

Hi,
We have a ‘centralized’ Elastic server environment we would like to send the Rancher logs to.
Currently from the ‘bare metal’ we’re using filebeat to send the system logs to Ealstic.
Filebeat does not send them via http/https but uses the Elastic API and an API key.
How (if possible) can we send the Rancher logs to our Elastic server using the Elastic API?
Thanks in advance
Anders