logstash-input-s3 3.1.4 → 3.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 939d76e37b99e18082ac1ce254e2f3cb985badcf
4
- data.tar.gz: c343885300f82500f0c2afa414336a7c56d1927f
3
+ metadata.gz: f4ddd73be7f58d106502b3f584151beaf1dcf5ff
4
+ data.tar.gz: 3808a1c7dbbb40f6ecdcc3c69dfb55ad139ed085
5
5
  SHA512:
6
- metadata.gz: e5126a3db583f404d16bdf1d1e447dd574fa18d4d31e04d2e447e0345d3a9d8f02bbc436ae6a701c049be4b1c53619e6ed58279e723851d6fe6c49825d354a49
7
- data.tar.gz: 01e4aebedbca23c9a4133a6c8886450081594cf72803bd90d19a2d542ff815c592362b50539933b04a58247edee8439a6e32f77adf99f5df7eb06ac7555b1f16
6
+ metadata.gz: ac07cf8020fdf92b1b8e814bf0565c2ef9c5fbe2610b1cfe71ab2a0f37d60613da3ad751ccd7ce77b6c566d71da27ff6a052223c6f1078065a3ec2a24fcf0ed4
7
+ data.tar.gz: e1f877839588b264ad73068a6197415d142c7a40b2e24abb5ecda68ac15cfea846c4c570052fa1d73108455f50ac0793d22123b6a949dbec33583c0549f0fc11
data/Gemfile CHANGED
@@ -1,4 +1,11 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in logstash-mass_effect.gemspec
4
3
  gemspec
4
+
5
+ logstash_path = ENV["LOGSTASH_PATH"] || "../../logstash"
6
+ use_logstash_source = ENV["LOGSTASH_SOURCE"] && ENV["LOGSTASH_SOURCE"].to_s == "1"
7
+
8
+ if Dir.exist?(logstash_path) && use_logstash_source
9
+ gem 'logstash-core', :path => "#{logstash_path}/logstash-core"
10
+ gem 'logstash-core-plugin-api', :path => "#{logstash_path}/logstash-core-plugin-api"
11
+ end
@@ -0,0 +1,214 @@
1
+ :plugin: s3
2
+ :type: input
3
+
4
+ ///////////////////////////////////////////
5
+ START - GENERATED VARIABLES, DO NOT EDIT!
6
+ ///////////////////////////////////////////
7
+ :version: %VERSION%
8
+ :release_date: %RELEASE_DATE%
9
+ :changelog_url: %CHANGELOG_URL%
10
+ :include_path: ../../../../logstash/docs/include
11
+ ///////////////////////////////////////////
12
+ END - GENERATED VARIABLES, DO NOT EDIT!
13
+ ///////////////////////////////////////////
14
+
15
+ [id="plugins-{type}-{plugin}"]
16
+
17
+ === S3 input plugin
18
+
19
+ include::{include_path}/plugin_header.asciidoc[]
20
+
21
+ ==== Description
22
+
23
+ Stream events from files from a S3 bucket.
24
+
25
+ Each line from each file generates an event.
26
+ Files ending in `.gz` are handled as gzip'ed files.
27
+
28
+ [id="plugins-{type}s-{plugin}-options"]
29
+ ==== S3 Input Configuration Options
30
+
31
+ This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
32
+
33
+ [cols="<,<,<",options="header",]
34
+ |=======================================================================
35
+ |Setting |Input type|Required
36
+ | <<plugins-{type}s-{plugin}-access_key_id>> |<<string,string>>|No
37
+ | <<plugins-{type}s-{plugin}-aws_credentials_file>> |<<string,string>>|No
38
+ | <<plugins-{type}s-{plugin}-backup_add_prefix>> |<<string,string>>|No
39
+ | <<plugins-{type}s-{plugin}-backup_to_bucket>> |<<string,string>>|No
40
+ | <<plugins-{type}s-{plugin}-backup_to_dir>> |<<string,string>>|No
41
+ | <<plugins-{type}s-{plugin}-bucket>> |<<string,string>>|Yes
42
+ | <<plugins-{type}s-{plugin}-delete>> |<<boolean,boolean>>|No
43
+ | <<plugins-{type}s-{plugin}-exclude_pattern>> |<<string,string>>|No
44
+ | <<plugins-{type}s-{plugin}-interval>> |<<number,number>>|No
45
+ | <<plugins-{type}s-{plugin}-prefix>> |<<string,string>>|No
46
+ | <<plugins-{type}s-{plugin}-proxy_uri>> |<<string,string>>|No
47
+ | <<plugins-{type}s-{plugin}-region>> |<<string,string>>, one of `["us-east-1", "us-east-2", "us-west-1", "us-west-2", "eu-central-1", "eu-west-1", "eu-west-2", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2", "sa-east-1", "us-gov-west-1", "cn-north-1", "ap-south-1", "ca-central-1"]`|No
48
+ | <<plugins-{type}s-{plugin}-secret_access_key>> |<<string,string>>|No
49
+ | <<plugins-{type}s-{plugin}-session_token>> |<<string,string>>|No
50
+ | <<plugins-{type}s-{plugin}-sincedb_path>> |<<string,string>>|No
51
+ | <<plugins-{type}s-{plugin}-temporary_directory>> |<<string,string>>|No
52
+ |=======================================================================
53
+
54
+ Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
55
+ input plugins.
56
+
57
+ &nbsp;
58
+
59
+ [id="plugins-{type}s-{plugin}-access_key_id"]
60
+ ===== `access_key_id`
61
+
62
+ * Value type is <<string,string>>
63
+ * There is no default value for this setting.
64
+
65
+ This plugin uses the AWS SDK and supports several ways to get credentials, which will be tried in this order:
66
+
67
+ 1. Static configuration, using `access_key_id` and `secret_access_key` params in logstash plugin config
68
+ 2. External credentials file specified by `aws_credentials_file`
69
+ 3. Environment variables `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`
70
+ 4. Environment variables `AMAZON_ACCESS_KEY_ID` and `AMAZON_SECRET_ACCESS_KEY`
71
+ 5. IAM Instance Profile (available when running inside EC2)
72
+
73
+ [id="plugins-{type}s-{plugin}-aws_credentials_file"]
74
+ ===== `aws_credentials_file`
75
+
76
+ * Value type is <<string,string>>
77
+ * There is no default value for this setting.
78
+
79
+ Path to YAML file containing a hash of AWS credentials.
80
+ This file will only be loaded if `access_key_id` and
81
+ `secret_access_key` aren't set. The contents of the
82
+ file should look like this:
83
+
84
+ [source,ruby]
85
+ ----------------------------------
86
+ :access_key_id: "12345"
87
+ :secret_access_key: "54321"
88
+ ----------------------------------
89
+
90
+
91
+ [id="plugins-{type}s-{plugin}-backup_add_prefix"]
92
+ ===== `backup_add_prefix`
93
+
94
+ * Value type is <<string,string>>
95
+ * Default value is `nil`
96
+
97
+ Append a prefix to the key (full path including file name in s3) after processing.
98
+ If backing up to another (or the same) bucket, this effectively lets you
99
+ choose a new 'folder' to place the files in
100
+
101
+ [id="plugins-{type}s-{plugin}-backup_to_bucket"]
102
+ ===== `backup_to_bucket`
103
+
104
+ * Value type is <<string,string>>
105
+ * Default value is `nil`
106
+
107
+ Name of a S3 bucket to backup processed files to.
108
+
109
+ [id="plugins-{type}s-{plugin}-backup_to_dir"]
110
+ ===== `backup_to_dir`
111
+
112
+ * Value type is <<string,string>>
113
+ * Default value is `nil`
114
+
115
+ Path of a local directory to backup processed files to.
116
+
117
+ [id="plugins-{type}s-{plugin}-bucket"]
118
+ ===== `bucket`
119
+
120
+ * This is a required setting.
121
+ * Value type is <<string,string>>
122
+ * There is no default value for this setting.
123
+
124
+ The name of the S3 bucket.
125
+
126
+ [id="plugins-{type}s-{plugin}-delete"]
127
+ ===== `delete`
128
+
129
+ * Value type is <<boolean,boolean>>
130
+ * Default value is `false`
131
+
132
+ Whether to delete processed files from the original bucket.
133
+
134
+ [id="plugins-{type}s-{plugin}-exclude_pattern"]
135
+ ===== `exclude_pattern`
136
+
137
+ * Value type is <<string,string>>
138
+ * Default value is `nil`
139
+
140
+ Ruby style regexp of keys to exclude from the bucket
141
+
142
+ [id="plugins-{type}s-{plugin}-interval"]
143
+ ===== `interval`
144
+
145
+ * Value type is <<number,number>>
146
+ * Default value is `60`
147
+
148
+ Interval to wait between to check the file list again after a run is finished.
149
+ Value is in seconds.
150
+
151
+ [id="plugins-{type}s-{plugin}-prefix"]
152
+ ===== `prefix`
153
+
154
+ * Value type is <<string,string>>
155
+ * Default value is `nil`
156
+
157
+ If specified, the prefix of filenames in the bucket must match (not a regexp)
158
+
159
+ [id="plugins-{type}s-{plugin}-proxy_uri"]
160
+ ===== `proxy_uri`
161
+
162
+ * Value type is <<string,string>>
163
+ * There is no default value for this setting.
164
+
165
+ URI to proxy server if required
166
+
167
+ [id="plugins-{type}s-{plugin}-region"]
168
+ ===== `region`
169
+
170
+ * Value can be any of: `us-east-1`, `us-east-2`, `us-west-1`, `us-west-2`, `eu-central-1`, `eu-west-1`, `eu-west-2`, `ap-southeast-1`, `ap-southeast-2`, `ap-northeast-1`, `ap-northeast-2`, `sa-east-1`, `us-gov-west-1`, `cn-north-1`, `ap-south-1`, `ca-central-1`
171
+ * Default value is `"us-east-1"`
172
+
173
+ The AWS Region
174
+
175
+ [id="plugins-{type}s-{plugin}-secret_access_key"]
176
+ ===== `secret_access_key`
177
+
178
+ * Value type is <<string,string>>
179
+ * There is no default value for this setting.
180
+
181
+ The AWS Secret Access Key
182
+
183
+ [id="plugins-{type}s-{plugin}-session_token"]
184
+ ===== `session_token`
185
+
186
+ * Value type is <<string,string>>
187
+ * There is no default value for this setting.
188
+
189
+ The AWS Session token for temporary credential
190
+
191
+ [id="plugins-{type}s-{plugin}-sincedb_path"]
192
+ ===== `sincedb_path`
193
+
194
+ * Value type is <<string,string>>
195
+ * Default value is `nil`
196
+
197
+ Where to write the since database (keeps track of the date
198
+ the last handled file was added to S3). The default will write
199
+ sincedb files to some path matching "$HOME/.sincedb*"
200
+ Should be a path with filename not just a directory.
201
+
202
+ [id="plugins-{type}s-{plugin}-temporary_directory"]
203
+ ===== `temporary_directory`
204
+
205
+ * Value type is <<string,string>>
206
+ * Default value is `"/tmp/logstash"`
207
+
208
+ Set the directory where logstash will store the tmp files before processing them.
209
+ default to the current OS temporary directory in linux /tmp/logstash
210
+
211
+
212
+
213
+ [id="plugins-{type}s-{plugin}-common-options"]
214
+ include::{include_path}/{type}.asciidoc[]
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-input-s3'
4
- s.version = '3.1.4'
4
+ s.version = '3.1.5'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Stream events from files from a S3 bucket."
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/logstash-plugin install gemname. This gem is not a stand-alone program"
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
11
11
  s.require_paths = ["lib"]
12
12
 
13
13
  # Files
14
- s.files = Dir['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
14
+ s.files = Dir["lib/**/*","spec/**/*","*.gemspec","*.md","CONTRIBUTORS","Gemfile","LICENSE","NOTICE.TXT", "vendor/jar-dependencies/**/*.jar", "vendor/jar-dependencies/**/*.rb", "VERSION", "docs/**/*"]
15
15
 
16
16
  # Tests
17
17
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.4
4
+ version: 3.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-28 00:00:00.000000000 Z
11
+ date: 2017-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -98,6 +98,7 @@ files:
98
98
  - LICENSE
99
99
  - NOTICE.TXT
100
100
  - README.md
101
+ - docs/index.asciidoc
101
102
  - lib/logstash/inputs/s3.rb
102
103
  - lib/logstash/inputs/s3/patch.rb
103
104
  - logstash-input-s3.gemspec