ERR SSL client failed to connect (1.x to 5.x upgrade)

What version of Filebeat are you running? In 5.x the TLS settings were renamed to be ssl. See Breaking Changes in 5.0.

The indentation in your config looks a little off, but maybe that was a copy/paste issue.