'logstash settings are invalid
I'am trying to start logstash on windows with a custom conf file but I get always the same error : Your settings are invalid. Reason: Setting "" doesn't exist. Please check if you haven't made a typo.
this is my conf:
input {
file {
type => "syslog"
path => "C:/log/log.log"
}
}
output {
stdout { codec => rubydebug }
elasticsearch {
hosts => ["localhost:9200"]
index =>"myindex"
}
}
Solution 1:[1]
I hope you are using windows. Hence , in the configuration replace the slash mentioned below
path => "C:\log\log.log"
then execute the below command to verify you configuration is syntactically correct
logstash --config.test_and_exit -f "<YOUR-FILENAME-ALONG-WITH-FILEPATH"
This would give us conclusion whether it is wrong with logstash configuration or with your setup.
Keep posted with updates!!! Thanks
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | sudhagar ramesh |