Opendistro security with fluentD for sending Logs

#1

Hi,
Is there a way where we can use fluentd and keep the security of opendistro enabled. Currenly I am trying to send the logs from my fluentd server to the elasticsearch server. Only If I disable the security, the logs reach the server or else I get a 502 error.
Is there anyway with which I can send the logs and keep the security enabled.