Unable to connect to elasticsearch: resource 'filebeat-7.14.0' exists, but it is not an alias

I am getting an error like this Unable to connect to elasticsearch: resource 'filebeat-7.14.0' exists, but it is not an alias. I had given the elasticsearch credentials correctly in the configuration file. I can't see the logs for the filebeat* indexpattern in kibana. Any help on how to do this without losing the existing data.