I installed logstash-filter-rest plugin in to make an post request to a webservice but I am getting the following error.
[ERROR][logstash.filters.rest ] error in rest filter
:client_error=>#<Manticore::SocketException: Connection refused (Connection refused)>}
What does this mean?
Weirdly enough, the connection works fine on my local system but this issue only comes up when I create a docker compose file for the different services (ES, Logstash, Kibana, and Flask web server). I'm a bit new to these tools so any help would be greatly appreciated. Below is filter portion of my config file.
filter {
rest {
request => {
url => 'http://0.0.0.0:5000/predict'
method => "post"
params => {
"submit" => "%{tweet_content}"
}
headers => { "Content-Type" => "application/json" }
}
target => 'rest'
}
}
The web service is indeed running at 0.0.0.0:5000/predict