I am setting up "elasticsearch" in AWS, i am trying to use AWS linux AMI. When i run the

bin/logstash -f "/path to config file"

i get error saying: "logstash.yml" not found try using "--path.settings" then when i use


i again get another error.

I have been following this document of AWS


The error i get after specifying

--path.settings="/etc/logstash" :
"Failed to execute action {:id=>:main, :action_type=>LogStash::ConvergeResult::FailedAction, :message=>"Could not execute action: PipelineAction::Create<main>, action_result: false", :backtrace=>nil}"

I have configured file logstash_simple.conf, specifying input and output. this is the command line input in the linux ec2 instance

/usr/share/logstash/bin/logstash -f /usr/share/logstash/logstash_simple.conf 

1 Answers

jungNitesh On

Okay i had made a mistake in the config file, i missed providing aws accesskey and secret key, dumb me!