-1

my config file is stored in

/etc/logstash/ 

and I ran the command

$ /etc/logstash -f /etc/logstash/logstash.conf

as root.

However, they told me that permission denied when I tried to do that. Is there any way to solve this?

  • 1
    Are you sure you ran it as root? The `$` at the beginning of the line makes it seem like you didn't. – Gene Aug 16 '15 at 14:10
  • 1
    Please run command: "type logstash" – Navern Aug 16 '15 at 15:36
  • 1
    `/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. – Jenny D Aug 30 '15 at 06:49

1 Answers1

1

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.

Tilman Schmidt
  • 3,778
  • 10
  • 23