-
Notifications
You must be signed in to change notification settings - Fork 66
Open
cheald/manticore
#116Labels
Description
Logstash information:
- Logstash version (e.g.
bin/logstash --version
) 8.15 (any) - Logstash installation source tar.gz
- How is Logstash being run run directly
JVM (e.g. java -version
): bundled
OS version (uname -a
if on a Unix-like system): MacOS
Description of the problem including expected versus actual behavior:
The server receiving the HTTP GET request will receive Content-Length: 0
.
Some load balancers (e.g. AWS) can be strict and reject such requests.
Steps to reproduce:
Using the HTTP Poller input with:
input {
http_poller {
urls => {
test => {
method => GET
url => "<URL>"
}
}
codec => "json"
schedule => { "every" => "1m" }
metadata_target => "http_poller_metadata"
}
}
output {
stdout {
codec => rubydebug
}
}
The server will receive:
GET / HTTP/1.1
Host: ...
Accept-Encoding: gzip,deflate
Connection: Keep-Alive
Content-Length: 0
User-Agent: Manticore 0.9.1
This is likely in Manticore as this code still sends the Content-Length
:
require 'manticore'
client = Manticore::Client.new
response = client.get('...') # or even , headers: { 'Content-Length' => nil })