Logstash http input posted content not available

Hi All

Infra:
cadvisor --> logstash --> elasticsearch --> kibana

We are trying to achieve the above infra. Like cadvisor to post container_stats to the elasticsearch via logstash

Log stash config :

input {
  http { codec => "es_bulk" }
}
output {
 elasticsearch {
   hosts => "172.31.72.111:9200"
 }
 stdout { codec => rubydebug {
        metadata => true
    }
 }
}

The expectation is that the container_stats will be posted to elasticsearch via logstash

but the following data was posted instead,

{
"headers" => {
"http_version" => "HTTP/1.1",
"http_connection" => "upgrade",
"request_method" => "POST",
"http_host" => "x.y.z",
"request_uri" => "/_bulk",
"http_user_agent" => "elastic/5.0.39 (linux-amd64)",
"http_vary" => "Accept-Encoding",
"http_accept" => "application/json",
"content_type" => "application/json",
"http_x_forwarded_host" => "x.y.z",
"http_accept_encoding" => "gzip",
"http_x_forwarded_for" => "172.31.41.214",
"request_path" => "/_bulk",
"http_x_real_ip" => "172.31.41.214",
"content_length" => 7683
},
"@timestamp" => 2020-05-26T14:19:18.998Z,
"@version" => "1",
"host" => "172.17.0.1",
"index" => {
"_index" => "http-2020.05.26",
"_type" => "stats"
}
}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.