logstash-filter-foreach 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/logstash/filters/foreach.rb +8 -9
- data/logstash-filter-foreach.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: 7627fd3a9ff82fcd48377c29035fb258be9939af
|
4
|
+
data.tar.gz: e0b9190a7d90a8f01ec34efd954e39cfd52ef4c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 157fce21afc24a14a42fc742d2594af0f3413bd075f35fafc37b5d11267eea2ed3564dc544078a079adbc32e5fd0886dbdd3a31f8ddae490b52f39230bcf4be7
|
7
|
+
data.tar.gz: c0f6847970d94b37a710620154a20cea883a13291cbd6e0c34c6c75ce73b0bd73a2a8155c986b050d4792d5fd7bc61c8747077cf866fcb962075593a3ce8a4ad
|
@@ -68,9 +68,7 @@ class LogStash::Filters::Foreach < LogStash::Filters::Base
|
|
68
68
|
end
|
69
69
|
|
70
70
|
|
71
|
-
end
|
72
|
-
|
73
|
-
# def register
|
71
|
+
end # def register
|
74
72
|
|
75
73
|
public
|
76
74
|
def filter(event)
|
@@ -206,9 +204,7 @@ class LogStash::Filters::Foreach < LogStash::Filters::Base
|
|
206
204
|
filter_matched(event)
|
207
205
|
end
|
208
206
|
|
209
|
-
end
|
210
|
-
|
211
|
-
# def filter
|
207
|
+
end # def filter
|
212
208
|
|
213
209
|
def flush(options = {})
|
214
210
|
events_to_flush = []
|
@@ -232,14 +228,17 @@ class LogStash::Filters::Foreach < LogStash::Filters::Base
|
|
232
228
|
end
|
233
229
|
return events_to_flush
|
234
230
|
|
235
|
-
end
|
236
|
-
|
237
|
-
# def flush
|
231
|
+
end # def flush
|
238
232
|
|
239
233
|
def periodic_flush
|
240
234
|
true
|
241
235
|
end
|
242
236
|
|
237
|
+
public
|
238
|
+
def close
|
239
|
+
@@configuration_data = {}
|
240
|
+
end
|
241
|
+
|
243
242
|
end # class LogStash::Filters::Foreach
|
244
243
|
|
245
244
|
# Element of "event_data"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-filter-foreach'
|
3
|
-
s.version = '0.1.
|
3
|
+
s.version = '0.1.1'
|
4
4
|
s.licenses = ['Apache-2.0']
|
5
5
|
s.summary = 'Process filters for every array item'
|
6
6
|
s.description = 'Plugin splits event for every item in array, then you could process other filters for every item and then join event back'
|