logstash-output-s3-leprechaun-fork 1.0.10 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logstash/outputs/s3.rb +10 -5
- data/logstash-output-s3.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97421396c470a83e422079643f14effb54cd87ca
|
4
|
+
data.tar.gz: 97dcd2833bab56c8af186e3f97713b3e91750a70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a4f67f320ef2a3a74a1f8545f0084312add6f3b6e39d9c3d2d15d3086a973a03e0b134ce7ef01f51f09225c15125fbfc69df4eda32b067533065f738287eb82
|
7
|
+
data.tar.gz: 562e58f1b0e3cf079eda1b0c57d1ce0a7338aac1bdb3d6a7291846dd2f9bdc3fe4c854f7d99fb528167ea1ae19a0dd3bcc40f333c22e41f139ceff63c60dc6d1
|
data/lib/logstash/outputs/s3.rb
CHANGED
@@ -305,6 +305,15 @@ class LogStash::Outputs::S3 < LogStash::Outputs::Base
|
|
305
305
|
temp_dir = @temporary_directory + "/" + directory
|
306
306
|
FileUtils.mkdir_p(temp_dir)
|
307
307
|
@logger.info("created directory: #{directory}")
|
308
|
+
|
309
|
+
@logger.info("segregation 1: #{segregation}")
|
310
|
+
@logger.info("segregation 2: #{@segregations[segregation].inspect}")
|
311
|
+
|
312
|
+
new_file_name = get_temporary_filename(
|
313
|
+
@segregations[segregation][:directory],
|
314
|
+
@segregations[segregation][:file_base],
|
315
|
+
@segregations[segregation][:current_page]
|
316
|
+
)
|
308
317
|
|
309
318
|
@segregations[segregation] = {
|
310
319
|
:start_time => Time.now.to_i,
|
@@ -313,11 +322,7 @@ class LogStash::Outputs::S3 < LogStash::Outputs::Base
|
|
313
322
|
:current_page => 0,
|
314
323
|
:file_pointers => {
|
315
324
|
0 => Zlib::GzipWriter.open(
|
316
|
-
|
317
|
-
@segregations[segregation][:directory],
|
318
|
-
@segregations[segregation][:file_base],
|
319
|
-
@segregations[segregation][:current_page]
|
320
|
-
),
|
325
|
+
new_file_name,
|
321
326
|
'a')
|
322
327
|
}
|
323
328
|
}
|
data/logstash-output-s3.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-output-s3-leprechaun-fork'
|
4
|
-
s.version = '1.0.
|
4
|
+
s.version = '1.0.11'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "This plugin was created for store the logstash's events into Amazon Simple Storage Service (Amazon S3)"
|
7
7
|
s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
|