I am attempting to configure the logstash HTTP input plugin following the official documentation. I have the following config saved in the 10-syslog.conf
input {
port => 8080
user => elkadmin
password => "xxxx"
ssl => off
}
output {
elasticsearch {
host => "127.0.0.1"
codec => "json"
index => "logstash-%{+YYYY.MM.dd}"
protocol => "http"
}
stdout { codec => rubydebug }
}
Logstash does start successfully when using the following command:
sudo service logstash restart
I have ran the configuration check on the configuration file for the input plugin using the
/opt/logstash/bin/logstash -configtest -f 10-syslog.conf
The config check came back with the following error:
Error: Expected one of #, { at line 2, column 9 (byte 18) after input {
Looking at the logstash log I can see that it may be caused by permissions:
{:timestamp=>"2016-10-16T20:41:30.900000+0000", :message=>"The error reported is: \n Permission denied - /etc/logstash/conf.d/10-syslog.conf"}
I am very much unsure how to proceed here and any help and/or guidance would be more than appreciated.