How to set https in beats agents configuration

how to set https in beats agents configuration ?
i am using 7.17.3 v of elk. output is through logstash.

I understand that you want to configure SSL for Logstash output. Correct me if I am wrong.
You can check the document at: Secure communication with Logstash | Filebeat Reference [8.5] | Elastic

thankyou i understood the changes which we have to give in logstash config file .what changes should we give in beat config file ?