Is it necessary to use filebeat or logstash forwarder in ELK stack?

filebeat everywhere and logstash everywhere are both valid options.

If you want to use TLS to secure connections then yes, you will of course need certificates.