logstash-filter-date 2.1.6 → 3.0.0
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/CHANGELOG.md +2 -0
- data/Gemfile +2 -0
- data/LICENSE +1 -1
- data/README.md +12 -3
- data/lib/logstash/filters/date.rb +5 -5
- data/logstash-filter-date.gemspec +3 -3
- data/spec/filters/date_spec.rb +46 -46
- metadata +24 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce4c40f91ec18b26069a407aeccc148174f7796d
|
4
|
+
data.tar.gz: 2ee04b70cd0c1c20c85ac347430950465b609df8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49a7051b4e41344e923cce3084ae481694671ec56f7080f8bf5681ea8f7468c42052296d166502ed6b52ed83232eb2e5ae1bd0bdcfb253020a96f8247ed9bd16
|
7
|
+
data.tar.gz: 3ce7f31df2d6e4850cddee98d561d9ae65b6770adc9bd317a35b1570c47fabfd5db4ba1704b767a9089f235bc9dcce3a3aba670efa4684aed4ef3a272e3da93d
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
## 3.0.0
|
2
|
+
- Update the plugin to the version 2.0 of the plugin api, this change is required for Logstash 5.0 compatibility. See https://github.com/elastic/logstash/issues/5141
|
1
3
|
# 2.1.6
|
2
4
|
- bugfix: Fails to parse a timestamp without year that falls in DST switchover for CET #63 (fix for #62)
|
3
5
|
# 2.1.5
|
data/Gemfile
CHANGED
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# Logstash Plugin
|
2
2
|
|
3
|
-
[](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Filters/job/logstash-plugin-filter-date-unit/)
|
3
|
+
[](https://travis-ci.org/logstash-plugins/logstash-filter-date)
|
5
4
|
|
6
5
|
This is a plugin for [Logstash](https://github.com/elastic/logstash).
|
7
6
|
|
@@ -56,7 +55,12 @@ gem "logstash-filter-awesome", :path => "/your/local/logstash-filter-awesome"
|
|
56
55
|
```
|
57
56
|
- Install plugin
|
58
57
|
```sh
|
58
|
+
# Logstash 2.3 and higher
|
59
|
+
bin/logstash-plugin install --no-verify
|
60
|
+
|
61
|
+
# Prior to Logstash 2.3
|
59
62
|
bin/plugin install --no-verify
|
63
|
+
|
60
64
|
```
|
61
65
|
- Run Logstash with your plugin
|
62
66
|
```sh
|
@@ -74,7 +78,12 @@ gem build logstash-filter-awesome.gemspec
|
|
74
78
|
```
|
75
79
|
- Install the plugin from the Logstash home
|
76
80
|
```sh
|
77
|
-
|
81
|
+
# Logstash 2.3 and higher
|
82
|
+
bin/logstash-plugin install --no-verify
|
83
|
+
|
84
|
+
# Prior to Logstash 2.3
|
85
|
+
bin/plugin install --no-verify
|
86
|
+
|
78
87
|
```
|
79
88
|
- Start Logstash and proceed to test the plugin
|
80
89
|
|
@@ -308,14 +308,14 @@ class LogStash::Filters::Date < LogStash::Filters::Base
|
|
308
308
|
end
|
309
309
|
|
310
310
|
def filter(event)
|
311
|
-
@logger.debug? && @logger.debug("Date filter: received event", :type => event
|
311
|
+
@logger.debug? && @logger.debug("Date filter: received event", :type => event.get("type"))
|
312
312
|
|
313
313
|
@parsers.each do |field, fieldparsers|
|
314
314
|
@logger.debug? && @logger.debug("Date filter looking for field",
|
315
|
-
:type => event
|
315
|
+
:type => event.get("type"), :field => field)
|
316
316
|
next unless event.include?(field)
|
317
317
|
|
318
|
-
fieldvalues = event
|
318
|
+
fieldvalues = event.get(field)
|
319
319
|
fieldvalues = [fieldvalues] if !fieldvalues.is_a?(Array)
|
320
320
|
fieldvalues.each do |value|
|
321
321
|
next if value.nil?
|
@@ -343,9 +343,9 @@ class LogStash::Filters::Date < LogStash::Filters::Base
|
|
343
343
|
raise last_exception unless success
|
344
344
|
|
345
345
|
# Convert joda DateTime to a ruby Time
|
346
|
-
event
|
346
|
+
event.set(@target, LogStash::Timestamp.at(epochmillis / 1000, (epochmillis % 1000) * 1000))
|
347
347
|
|
348
|
-
@logger.debug? && @logger.debug("Date parsing done", :value => value, :timestamp => event
|
348
|
+
@logger.debug? && @logger.debug("Date parsing done", :value => value, :timestamp => event.get(@target))
|
349
349
|
filter_matched(event)
|
350
350
|
rescue StandardError, JavaException => e
|
351
351
|
@logger.warn("Failed parsing date from field", :field => field,
|
@@ -1,10 +1,10 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-filter-date'
|
4
|
-
s.version = '
|
4
|
+
s.version = '3.0.0'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "The date filter is used for parsing dates from fields, and then using that date or timestamp as the logstash timestamp for the event."
|
7
|
-
s.description = "This gem is a
|
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"
|
8
8
|
s.authors = ["Elastic"]
|
9
9
|
s.email = 'info@elastic.co'
|
10
10
|
s.homepage = "http://www.elastic.co/guide/en/logstash/current/index.html"
|
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.metadata = { "logstash_plugin" => "true", "logstash_group" => "filter" }
|
21
21
|
|
22
22
|
# Gem dependencies
|
23
|
-
s.add_runtime_dependency "logstash-core-plugin-api", "~>
|
23
|
+
s.add_runtime_dependency "logstash-core-plugin-api", "~> 2.0"
|
24
24
|
s.add_development_dependency 'logstash-input-generator'
|
25
25
|
s.add_development_dependency 'logstash-codec-json'
|
26
26
|
s.add_development_dependency 'logstash-output-null'
|
data/spec/filters/date_spec.rb
CHANGED
@@ -68,8 +68,8 @@ RUBY_ENGINE == "jruby" and describe LogStash::Filters::Date do
|
|
68
68
|
times.each do |input, output|
|
69
69
|
sample("mydate" => input) do
|
70
70
|
begin
|
71
|
-
insist { subject
|
72
|
-
insist { subject
|
71
|
+
insist { subject.get("mydate") } == input
|
72
|
+
insist { subject.get("@timestamp").time } == Time.iso8601(output).utc
|
73
73
|
rescue
|
74
74
|
#require "pry"; binding.pry
|
75
75
|
raise
|
@@ -97,8 +97,8 @@ RUBY_ENGINE == "jruby" and describe LogStash::Filters::Date do
|
|
97
97
|
}
|
98
98
|
times.each do |input, output|
|
99
99
|
sample("mydate" => input) do
|
100
|
-
insist { subject
|
101
|
-
insist { subject
|
100
|
+
insist { subject.get("mydate") } == input
|
101
|
+
insist { subject.get("@timestamp").time } == Time.iso8601(output).utc
|
102
102
|
end
|
103
103
|
end # times.each
|
104
104
|
end
|
@@ -123,15 +123,15 @@ RUBY_ENGINE == "jruby" and describe LogStash::Filters::Date do
|
|
123
123
|
}
|
124
124
|
times.each do |input, output|
|
125
125
|
sample("mydate" => input) do
|
126
|
-
insist { subject
|
127
|
-
insist { subject
|
126
|
+
insist { subject.get("mydate") } == input
|
127
|
+
insist { subject.get("@timestamp").time } == Time.iso8601(output).utc
|
128
128
|
end
|
129
129
|
end # times.each
|
130
130
|
|
131
131
|
#Invalid value should not be evaluated to zero (String#to_i madness)
|
132
132
|
sample("mydate" => "%{bad_value}") do
|
133
|
-
insist { subject
|
134
|
-
insist { subject
|
133
|
+
insist { subject.get("mydate") } == "%{bad_value}"
|
134
|
+
insist { subject.get("@timestamp") } != Time.iso8601("1970-01-01T00:00:00.000Z").utc
|
135
135
|
end
|
136
136
|
end
|
137
137
|
|
@@ -152,14 +152,14 @@ RUBY_ENGINE == "jruby" and describe LogStash::Filters::Date do
|
|
152
152
|
|
153
153
|
#Support float values
|
154
154
|
sample("mydate" => 1350414944.123456) do
|
155
|
-
insist { subject
|
156
|
-
insist { subject
|
155
|
+
insist { subject.get("mydate") } == 1350414944.123456
|
156
|
+
insist { subject.get("@timestamp").time } == Time.iso8601("2012-10-16T12:15:44.123-07:00").utc
|
157
157
|
end
|
158
158
|
|
159
159
|
#Invalid value should not be evaluated to zero (String#to_i madness)
|
160
160
|
sample("mydate" => "%{bad_value}") do
|
161
|
-
insist { subject
|
162
|
-
insist { subject
|
161
|
+
insist { subject.get("mydate") } == "%{bad_value}"
|
162
|
+
insist { subject.get("@timestamp") } != Time.iso8601("1970-01-01T00:00:00.000Z").utc
|
163
163
|
end
|
164
164
|
end
|
165
165
|
|
@@ -185,8 +185,8 @@ RUBY_ENGINE == "jruby" and describe LogStash::Filters::Date do
|
|
185
185
|
}
|
186
186
|
times.each do |input, output|
|
187
187
|
sample("mydate" => input) do
|
188
|
-
insist { subject
|
189
|
-
insist { subject
|
188
|
+
insist { subject.get("mydate") } == input
|
189
|
+
insist { subject.get("@timestamp").time } == Time.iso8601(output)
|
190
190
|
end
|
191
191
|
end # times.each
|
192
192
|
end
|
@@ -255,8 +255,8 @@ RUBY_ENGINE == "jruby" and describe LogStash::Filters::Date do
|
|
255
255
|
time = "2001-09-09T01:46:40.000Z"
|
256
256
|
|
257
257
|
sample("mydate" => time) do
|
258
|
-
insist { subject
|
259
|
-
insist { subject
|
258
|
+
insist { subject.get("mydate") } == time
|
259
|
+
insist { subject.get("@timestamp").time } == Time.iso8601(time).utc
|
260
260
|
end
|
261
261
|
end
|
262
262
|
|
@@ -271,7 +271,7 @@ RUBY_ENGINE == "jruby" and describe LogStash::Filters::Date do
|
|
271
271
|
CONFIG
|
272
272
|
|
273
273
|
sample("data" => { "deep" => "2013-01-01T00:00:00.000Z" }) do
|
274
|
-
insist { subject
|
274
|
+
insist { subject.get("@timestamp").time } == Time.iso8601("2013-01-01T00:00:00.000Z").utc
|
275
275
|
end
|
276
276
|
end
|
277
277
|
|
@@ -286,7 +286,7 @@ RUBY_ENGINE == "jruby" and describe LogStash::Filters::Date do
|
|
286
286
|
CONFIG
|
287
287
|
|
288
288
|
sample("thedate" => "2013/Apr/21") do
|
289
|
-
insist { subject
|
289
|
+
insist { subject.get("@timestamp") } != "2013-04-21T00:00:00.000Z"
|
290
290
|
end
|
291
291
|
end
|
292
292
|
|
@@ -301,8 +301,8 @@ RUBY_ENGINE == "jruby" and describe LogStash::Filters::Date do
|
|
301
301
|
CONFIG
|
302
302
|
|
303
303
|
sample("thedate" => "2013/04/21") do
|
304
|
-
insist { subject
|
305
|
-
insist { subject
|
304
|
+
insist { subject.get("@timestamp") } != "2013-04-21T00:00:00.000Z"
|
305
|
+
insist { subject.get("tags") } == ["tagged"]
|
306
306
|
end
|
307
307
|
end
|
308
308
|
|
@@ -317,8 +317,8 @@ RUBY_ENGINE == "jruby" and describe LogStash::Filters::Date do
|
|
317
317
|
CONFIG
|
318
318
|
|
319
319
|
sample("thedate" => "2013/Apr/21") do
|
320
|
-
insist { subject
|
321
|
-
reject { subject
|
320
|
+
insist { subject.get("@timestamp") } != "2013-04-21T00:00:00.000Z"
|
321
|
+
reject { subject.get("tags") }.include? "tagged"
|
322
322
|
end
|
323
323
|
end
|
324
324
|
|
@@ -333,8 +333,8 @@ RUBY_ENGINE == "jruby" and describe LogStash::Filters::Date do
|
|
333
333
|
CONFIG
|
334
334
|
|
335
335
|
sample("thedate" => "2013/Apr/21") do
|
336
|
-
insist { subject
|
337
|
-
insist { subject
|
336
|
+
insist { subject.get("@timestamp") } != "2013-04-21T00:00:00.000Z"
|
337
|
+
insist { subject.get("tags") }.include? "date_failed"
|
338
338
|
end
|
339
339
|
end
|
340
340
|
|
@@ -356,8 +356,8 @@ RUBY_ENGINE == "jruby" and describe LogStash::Filters::Date do
|
|
356
356
|
}
|
357
357
|
times.each do |input, output|
|
358
358
|
sample("mydate" => input) do
|
359
|
-
insist { subject
|
360
|
-
insist { subject
|
359
|
+
insist { subject.get("mydate") } == input
|
360
|
+
insist { subject.get("@timestamp").time } == Time.iso8601(output).utc
|
361
361
|
end
|
362
362
|
end # times.each
|
363
363
|
end
|
@@ -380,8 +380,8 @@ RUBY_ENGINE == "jruby" and describe LogStash::Filters::Date do
|
|
380
380
|
}
|
381
381
|
times.each do |input, output|
|
382
382
|
sample("mydate" => input, "mytz" => "America/Los_Angeles") do
|
383
|
-
insist { subject
|
384
|
-
insist { subject
|
383
|
+
insist { subject.get("mydate") } == input
|
384
|
+
insist { subject.get("@timestamp").time } == Time.iso8601(output).utc
|
385
385
|
end
|
386
386
|
end # times.each
|
387
387
|
end
|
@@ -403,8 +403,8 @@ RUBY_ENGINE == "jruby" and describe LogStash::Filters::Date do
|
|
403
403
|
end
|
404
404
|
|
405
405
|
sample "2016 Mar 26 02:00:37" do
|
406
|
-
insist { subject
|
407
|
-
insist { subject
|
406
|
+
insist { subject.get("tags") } != ["_dateparsefailure"]
|
407
|
+
insist { subject.get("@timestamp").to_s } == "2016-03-26T01:00:37.000Z"
|
408
408
|
end
|
409
409
|
end
|
410
410
|
|
@@ -422,7 +422,7 @@ RUBY_ENGINE == "jruby" and describe LogStash::Filters::Date do
|
|
422
422
|
CONFIG
|
423
423
|
|
424
424
|
sample("message" => "Sun Jun 02 20:38:03", "mytz" => "UTC") do
|
425
|
-
insist { subject
|
425
|
+
insist { subject.get("@timestamp").year } == Time.now.year
|
426
426
|
end
|
427
427
|
end
|
428
428
|
|
@@ -443,7 +443,7 @@ RUBY_ENGINE == "jruby" and describe LogStash::Filters::Date do
|
|
443
443
|
end
|
444
444
|
|
445
445
|
sample("message" => "Dec 31 23:59:00", "mytz" => "UTC") do
|
446
|
-
insist { subject
|
446
|
+
insist { subject.get("@timestamp").year } == 2013
|
447
447
|
end
|
448
448
|
end
|
449
449
|
|
@@ -464,7 +464,7 @@ RUBY_ENGINE == "jruby" and describe LogStash::Filters::Date do
|
|
464
464
|
end
|
465
465
|
|
466
466
|
sample( "message" => "Jan 01 01:00:00", "mytz" => "UTC") do
|
467
|
-
insist { subject
|
467
|
+
insist { subject.get("@timestamp").year } == 2014
|
468
468
|
end
|
469
469
|
end
|
470
470
|
|
@@ -485,8 +485,8 @@ RUBY_ENGINE == "jruby" and describe LogStash::Filters::Date do
|
|
485
485
|
end
|
486
486
|
|
487
487
|
sample "Mar 26 02:00:37" do
|
488
|
-
insist { subject
|
489
|
-
insist { subject
|
488
|
+
insist { subject.get("tags") } != ["_dateparsefailure"]
|
489
|
+
insist { subject.get("@timestamp").to_s } == "2016-03-26T01:00:37.000Z"
|
490
490
|
end
|
491
491
|
end
|
492
492
|
end
|
@@ -502,7 +502,7 @@ RUBY_ENGINE == "jruby" and describe LogStash::Filters::Date do
|
|
502
502
|
CONFIG
|
503
503
|
|
504
504
|
sample "Sun Jun 02 20:38:03" do
|
505
|
-
insist { subject
|
505
|
+
insist { subject.get("@timestamp").year } == Time.now.year
|
506
506
|
end
|
507
507
|
end
|
508
508
|
|
@@ -523,7 +523,7 @@ RUBY_ENGINE == "jruby" and describe LogStash::Filters::Date do
|
|
523
523
|
end
|
524
524
|
|
525
525
|
sample "Dec 31 23:59:00" do
|
526
|
-
insist { subject
|
526
|
+
insist { subject.get("@timestamp").year } == 2013
|
527
527
|
end
|
528
528
|
end
|
529
529
|
|
@@ -544,7 +544,7 @@ RUBY_ENGINE == "jruby" and describe LogStash::Filters::Date do
|
|
544
544
|
end
|
545
545
|
|
546
546
|
sample "Jan 01 01:00:00" do
|
547
|
-
insist { subject
|
547
|
+
insist { subject.get("@timestamp").year } == 2014
|
548
548
|
end
|
549
549
|
end
|
550
550
|
|
@@ -560,7 +560,7 @@ RUBY_ENGINE == "jruby" and describe LogStash::Filters::Date do
|
|
560
560
|
CONFIG
|
561
561
|
|
562
562
|
sample "14 juillet 1789" do
|
563
|
-
insist { subject
|
563
|
+
insist { subject.get("@timestamp").time } == Time.iso8601("1789-07-14T00:00:00.000Z").utc
|
564
564
|
end
|
565
565
|
end
|
566
566
|
|
@@ -576,7 +576,7 @@ RUBY_ENGINE == "jruby" and describe LogStash::Filters::Date do
|
|
576
576
|
CONFIG
|
577
577
|
|
578
578
|
sample "14 juillet 1789" do
|
579
|
-
insist { subject
|
579
|
+
insist { subject.get("@timestamp").time } == Time.iso8601("1789-07-14T00:00:00.000Z").utc
|
580
580
|
end
|
581
581
|
end
|
582
582
|
|
@@ -592,7 +592,7 @@ RUBY_ENGINE == "jruby" and describe LogStash::Filters::Date do
|
|
592
592
|
CONFIG
|
593
593
|
|
594
594
|
sample "14 juillet 1789" do
|
595
|
-
insist { subject
|
595
|
+
insist { subject.get("@timestamp").time } == Time.iso8601("1789-07-14T00:00:00.000Z").utc
|
596
596
|
end
|
597
597
|
end
|
598
598
|
|
@@ -608,7 +608,7 @@ RUBY_ENGINE == "jruby" and describe LogStash::Filters::Date do
|
|
608
608
|
CONFIG
|
609
609
|
|
610
610
|
sample("timestamp" => "25/Mar/2013:20:33:56 +0000") do
|
611
|
-
insist { subject
|
611
|
+
insist { subject.get("@timestamp").time } == Time.iso8601("2013-03-25T20:33:56.000Z")
|
612
612
|
end
|
613
613
|
end
|
614
614
|
|
@@ -626,7 +626,7 @@ RUBY_ENGINE == "jruby" and describe LogStash::Filters::Date do
|
|
626
626
|
CONFIG
|
627
627
|
|
628
628
|
sample "01 September 2014" do
|
629
|
-
insist { subject
|
629
|
+
insist { subject.get("@timestamp").time } == Time.iso8601("2014-09-01T00:00:00.000Z").utc
|
630
630
|
end
|
631
631
|
#Restore default locale
|
632
632
|
java.util.Locale.setDefault(default_locale)
|
@@ -652,7 +652,7 @@ RUBY_ENGINE == "jruby" and describe LogStash::Filters::Date do
|
|
652
652
|
CONFIG
|
653
653
|
|
654
654
|
sample "Sun Jun 02 20:38:03" do
|
655
|
-
insist { subject
|
655
|
+
insist { subject.get("@timestamp").year } == Time.now.year
|
656
656
|
end
|
657
657
|
end
|
658
658
|
|
@@ -672,7 +672,7 @@ RUBY_ENGINE == "jruby" and describe LogStash::Filters::Date do
|
|
672
672
|
end
|
673
673
|
|
674
674
|
sample "Dec 31 23:59:00" do
|
675
|
-
insist { subject
|
675
|
+
insist { subject.get("@timestamp").year } == 2013
|
676
676
|
end
|
677
677
|
end
|
678
678
|
|
@@ -692,7 +692,7 @@ RUBY_ENGINE == "jruby" and describe LogStash::Filters::Date do
|
|
692
692
|
end
|
693
693
|
|
694
694
|
sample "Jan 01 01:00:00" do
|
695
|
-
insist { subject
|
695
|
+
insist { subject.get("@timestamp").year } == 2014
|
696
696
|
end
|
697
697
|
end
|
698
698
|
end
|
metadata
CHANGED
@@ -1,86 +1,88 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-filter-date
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
+
name: logstash-core-plugin-api
|
14
15
|
requirement: !ruby/object:Gem::Requirement
|
15
16
|
requirements:
|
16
17
|
- - "~>"
|
17
18
|
- !ruby/object:Gem::Version
|
18
|
-
version: '
|
19
|
-
name: logstash-core-plugin-api
|
20
|
-
prerelease: false
|
19
|
+
version: '2.0'
|
21
20
|
type: :runtime
|
21
|
+
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
+
name: logstash-input-generator
|
28
29
|
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
31
|
- - ">="
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: '0'
|
33
|
-
name: logstash-input-generator
|
34
|
-
prerelease: false
|
35
34
|
type: :development
|
35
|
+
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
+
name: logstash-codec-json
|
42
43
|
requirement: !ruby/object:Gem::Requirement
|
43
44
|
requirements:
|
44
45
|
- - ">="
|
45
46
|
- !ruby/object:Gem::Version
|
46
47
|
version: '0'
|
47
|
-
name: logstash-codec-json
|
48
|
-
prerelease: false
|
49
48
|
type: :development
|
49
|
+
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
+
name: logstash-output-null
|
56
57
|
requirement: !ruby/object:Gem::Requirement
|
57
58
|
requirements:
|
58
59
|
- - ">="
|
59
60
|
- !ruby/object:Gem::Version
|
60
61
|
version: '0'
|
61
|
-
name: logstash-output-null
|
62
|
-
prerelease: false
|
63
62
|
type: :development
|
63
|
+
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
+
name: logstash-devutils
|
70
71
|
requirement: !ruby/object:Gem::Requirement
|
71
72
|
requirements:
|
72
73
|
- - ">="
|
73
74
|
- !ruby/object:Gem::Version
|
74
75
|
version: '0'
|
75
|
-
name: logstash-devutils
|
76
|
-
prerelease: false
|
77
76
|
type: :development
|
77
|
+
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
-
description: This gem is a
|
83
|
+
description: This gem is a Logstash plugin required to be installed on top of the
|
84
|
+
Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This
|
85
|
+
gem is not a stand-alone program
|
84
86
|
email: info@elastic.co
|
85
87
|
executables: []
|
86
88
|
extensions: []
|
@@ -101,7 +103,7 @@ licenses:
|
|
101
103
|
metadata:
|
102
104
|
logstash_plugin: 'true'
|
103
105
|
logstash_group: filter
|
104
|
-
post_install_message:
|
106
|
+
post_install_message:
|
105
107
|
rdoc_options: []
|
106
108
|
require_paths:
|
107
109
|
- lib
|
@@ -116,10 +118,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
118
|
- !ruby/object:Gem::Version
|
117
119
|
version: '0'
|
118
120
|
requirements: []
|
119
|
-
rubyforge_project:
|
120
|
-
rubygems_version: 2.
|
121
|
-
signing_key:
|
121
|
+
rubyforge_project:
|
122
|
+
rubygems_version: 2.5.1
|
123
|
+
signing_key:
|
122
124
|
specification_version: 4
|
123
|
-
summary: The date filter is used for parsing dates from fields, and then using that
|
125
|
+
summary: The date filter is used for parsing dates from fields, and then using that
|
126
|
+
date or timestamp as the logstash timestamp for the event.
|
124
127
|
test_files:
|
125
128
|
- spec/filters/date_spec.rb
|