-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?

3
  • 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, 2015 at 14:10
  • 1
    Please run command: "type logstash"
    – Navern
    Aug 16, 2015 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, 2015 at 6:49

1 Answer 1

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.

Not the answer you're looking for? Browse other questions tagged .