I am using Logstash 7.7.1 and using below conf for my logstash. I am trying to send .gz file and in header passing Content-Encoding: gzip which is working fine. But I am clueless about the max size limit which I can send to it. Sometimes I am getting 413 Request Entity Too Large.
According to http input plugin https://github.com/logstash-plugins/logstash-input-http/blob/master/lib/logstash/inputs/http.rb
config :max_content_length, :validate => :number, :required => false, :default => 100 * 1024 * 1024
which looks like 100 MB. Is it the correct config which I am looking at or is there any other properties file in logstash to look for the max file size limit?
// Configuration
input {
http {
host => "0.0.0.0"
port => 8443
max_pending_requests => 500
ssl => "false"
ssl_verify_mode => "none"
}
}
filter {
if "PNG" in [message] or "%PDF-" in [message] { drop { } }
}
output {
file {
path => "../../logstash-client-logs/%{[headers][application_name]}/myapplication-logstash-client-%{+yyyy-MM-dd}.log"
codec => line { format => "%{[message]}"}
}
}