Filebeat service not starting with nginx, elasticsearch and kibana on aws ec2 instance

I changed this but the problem still persists.

I deleted this file and then the issue is resolved.

rm -r /var/lib/filebeat/registry