I am trying to api call logstash by using http input but when I run logstash it failse and throws the error below
Here is my config file
input {
http {
host=>0.0.0.0
port =>2020
}
}
output {
elasticsearch {
hosts => ["1.12.73.45:9200"]
index => "frontend"
}
}
and here is my error log
Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::ConfigurationError", :message=>"Expected one of [0-9], [ \\t\\r\\n], \"#\", \"}\" at line 3, column 12 (byte 29) after input {\n http {\n\t\thost=>0.0", :backtrace=>["D:/elk/logstash-8.3.2/logstash-core/lib/logstash/compiler.rb:32:in
compile_imperative'", "org/logstash/execution/AbstractPipelineExt.java:199:in initialize'", "org/logstash/execution/JavaBasePipelineExt.java:72:in
initialize'", "D:/elk/logstash-8.3.2/logstash-core/lib/logstash/java_pipeline.rb:48:in initialize'", "D:/elk/logstash-8.3.2/logstash-core/lib/logstash/pipeline_action/create.rb:50:in
execute'", "D:/elk/logstash-8.3.2/logstash-core/lib/logstash/agent.rb:381:in block in converge_state'"]}