Filebeat error

the file beat:active(exited). why?

because
filebeat -e -d "*" -c {location to the filebeat config file}

after trying this also filebeat -e -d "*" -c /etc/filebeat/
Exiting: error loading config file: read /etc/filebeat/: is a directory
error is accuring.
and i tried "publisher" but also showing the same issue

The reason is in the message.
-c uses the file location so ur -c should look like -c /etc/filebeat/filebeat.conf