O365 get tenant authen token through proxy

Hi all.
I have been trying to get o365 log using filebeat and there is apear to be a problems,
the current filebeat that i am ussing need to get the authentication token but our serrver are put behind a proxy, is there a config to setup the proxy for the modules or is there a way to input the token by hand.

Thanks you for your time.

Can anyone help me please, without the token i cannot get the data.

Search proxy in the reference https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-reference-yml.html

Thank you for your replies, well most of the proxy config i found on the reference are for output of filebeat, what i need is to setup proxy for filebeat to get the authen token and not output the data to anyplaces.