lib/logstash/outputs/s3.rb in logstash-output-s3-4.0.5 vs lib/logstash/outputs/s3.rb in logstash-output-s3-4.0.6
- old
+ new
@@ -26,16 +26,16 @@
#
# S3 outputs create temporary files into the OS' temporary directory, you can specify where to save them using the `temporary_directory` option.
#
# S3 output files have the following format
#
-# ls.s3.ip-10-228-27-95.2013-04-18T10.00.tag_hello.part0.txt
+# ls.s3.312bc026-2f5d-49bc-ae9f-5940cf4ad9a6.2013-04-18T10.00.tag_hello.part0.txt
#
#
# |=======
# | ls.s3 | indicate logstash plugin s3 |
-# | ip-10-228-27-95 | indicates the ip of your machine. |
+# | 312bc026-2f5d-49bc-ae9f-5940cf4ad9a6 | a new, random uuid per file. |
# | 2013-04-18T10.00 | represents the time whenever you specify time_file. |
# | tag_hello | this indicates the event's tag. |
# | part0 | this means if you indicate size_file then it will generate more parts if you file.size > size_file. When a file is full it will be pushed to the bucket and then deleted from the temporary directory. If a file is empty, it is simply deleted. Empty files will not be pushed |
# |=======
#
@@ -266,10 +266,10 @@
@crash_uploader.stop if @restore # we might have still work to do for recovery so wait until we are done
end
def full_options
options = Hash.new
- options[:s3_signature_version] = @signature_version if @signature_version
+ options[:signature_version] = @signature_version if @signature_version
options.merge(aws_options_hash)
end
def normalize_key(prefix_key)
prefix_key.gsub(PathValidator.matches_re, PREFIX_KEY_NORMALIZE_CHARACTER)