Hello,
I'm using Logstash 7.17.10 with S3 output plugin, and getting poor performance (possibly not related to performance)
my pipeline:
input {
elasticsearch {
docinfo => true
docinfo_fields => [ "_id" ]
hosts => ["${ELASTICSEARCH_HOSTS}"]
index => 'index*'
password => "${ELASTICSEARCH_PASSWORD}"
query => ' ... '
schedule => '0 * * * *'
user => "${ELASTICSEARCH_USER}"
}
}
filter {
ruby { code => 'event.set("[@metadata][suffix]", Time.now.strftime("%Y-%m-%dT%H"));' }
}
output {
s3 {
access_key_id => "${MINIO_ACCESS_KEY}"
additional_settings => {
force_path_style => true
}
bucket => "${MINIO_BUCKET}"
codec => json_lines {
target => ""
}
endpoint => "${MINIO_ENDPOINT}"
prefix => "a-b-c-d/e-%{[@metadata][_index]}-%{[@metadata][suffix]}.json"
secret_access_key => "${MINIO_SECRET_KEY}"
validate_credentials_on_root_bucket => false
}
}
it can easily 30+ minutes before i see objects on my s3 storage.
also both elasticsearch
and logstash
are residing on same network and so as minio (storage) as well and if i configure logstash to output file locally, it doesn't takes long at all to complete, and i'm able to push file manually to s3 quick as well (so it's not network).
please advise.
thank you in advance!