These YAML files for Filebeat, Metricbeat, and Heartbeat go along with the webinar / video Five Best Practices for ingesting data with Beats. Not every detail is included in the webinar or the files, for example the settings for configuring the Elasticsearch template for each Beat are left to the reader as they are dependent on the size of your cluster. There are URLs in the YAML files to point you to information on sizing if you need it.
If you are looking at these files without watching the webinar please note that you will need to create and populate the keystores for each Beat.
https://www.elastic.co/webinars/five-best-practices-for-ingesting-data-with-beats