lib/logstash/outputs/s3.rb in logstash-output-s3-4.0.6 vs lib/logstash/outputs/s3.rb in logstash-output-s3-4.0.7
- old
+ new
@@ -69,12 +69,12 @@
# secret_access_key => "monkey_access_key" (required)
# region => "eu-west-1" (optional, default = "us-east-1")
# bucket => "your_bucket" (required)
# size_file => 2048 (optional) - Bytes
# time_file => 5 (optional) - Minutes
-# format => "plain" (optional)
-# canned_acl => "private" (optional. Options are "private", "public_read", "public_read_write", "authenticated_read". Defaults to "private" )
+# codec => "plain" (optional)
+# canned_acl => "private" (optional. Options are "private", "public-read", "public-read-write", "authenticated-read". Defaults to "private" )
# }
#
class LogStash::Outputs::S3 < LogStash::Outputs::Base
require "logstash/outputs/s3/writable_directory_validator"
require "logstash/outputs/s3/path_validator"
@@ -122,11 +122,11 @@
## If you do not specify "restore => true" when logstash crashes or is restarted, the files are not sent into the bucket,
## for example if you have single Instance.
config :restore, :validate => :boolean, :default => true
# The S3 canned ACL to use when putting the file. Defaults to "private".
- config :canned_acl, :validate => ["private", "public_read", "public_read_write", "authenticated_read"],
+ config :canned_acl, :validate => ["private", "public-read", "public-read-write", "authenticated-read"],
:default => "private"
# Specifies wether or not to use S3's server side encryption. Defaults to no encryption.
config :server_side_encryption, :validate => :boolean, :default => false
@@ -370,9 +370,9 @@
Dir.glob(::File.join(@temporary_directory, "**/*"))
.select { |file| ::File.file?(file) }
.each do |file|
temp_file = TemporaryFile.create_from_existing_file(file, temp_folder_path)
@logger.debug("Recovering from crash and uploading", :file => temp_file.path)
- @crash_uploader.upload_async(temp_file, :on_complete => method(:clean_temporary_file))
+ @crash_uploader.upload_async(temp_file, :on_complete => method(:clean_temporary_file), :upload_options => upload_options)
end
end
end