Connection marked as failed because the onConnect callback failed: cannot retrieve the elasticsearch license: error from server, response code: 500

Elastic search seems to be running fine. I guess filebeat is failing while connecting.

Is it because of SSL base64 string ? Do i need some other parameter as well ?