Using Logstash http input filter, what is the max file size limit can be sent to it?

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]}"}
            }

        }

config :max_content_length, :validate => :number, :required => false, :default => 100 * 1024 * 1024
This is for the uncompressed file size(actual file size). But if we are sending any compressed file, say .gz file of 5KB and the actual file size inside the gzip is of 120KB then this particular configuration will validate for the actual file size which is 120KB and not the compressed file size we are sending.

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