Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
/etc/logstash is a directory, not a program. You are trying to run the directory. You need to use the path to the actual program first in your command.
The way to solve this is to use the correct path to the logstash executable. According to your description /etc/logstash is a directory, not an executable file, so you cannot use that as a command.
$
at the beginning of the line makes it seem like you didn't./etc/logstash
is a directory, not a program. You are trying to run the directory. You need to use the path to the actual program first in your command.