Hi!
Today I had a situation where one of our Elasticsearch outputs in logstash got unavailable. It replied with a 404. Based upon the documentation logstash should give a warning and drop the event. We have no DLQ configured.
400 and 404 errors are sent to the dead letter queue (DLQ), if enabled. If a DLQ is not enabled, a log message will be emitted, and the event will be dropped. See DLQ Policy for more info.
However since it got stuck retrying, it seemed like all other outputs were also not fowarding data anymore.
Output: [ERROR][logstash.outputs.elasticsearch][main] Encountered a retryable error (will retry with exponential backoff) {:code=>404, :url=>"https://our-url/_bulk", :content_length=>22, :body=>"{\"ok\":false,\"message\":\"Unknown resource.\"}\n"}
Logstash version: 7.17.6.1
Configuration:
elasticsearch {
hosts => ["https://our-url:443"]
index => "%{[index][name]}"
ilm_enabled => false
manage_template => false
action => "create"
ecs_compatibility => "v8"
user => "logstash_writer"
password => "**********"
failure_type_logging_whitelist => ["version_conflict_engine_exception"]
}
Is this a bug? Or have i missed something?