we fixed the issue by removing double quotes on left hand side of the input part.
input {
s3 {
access_key_id => "AXXXXX"
secret_access_key => "XXXX"
region => "us-east-2"
bucket => "XXXX"
interval => "10"
additional_settings => {
force_path_style => true
follow_redirects => false
}
}
}