logstash-filter-date_formatter 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9a134b1af39091bf52b55895c7fc043bb195eb92
4
+ data.tar.gz: 594bdc2a9d1a4d09c0b93a1cad088f5f295c56d6
5
+ SHA512:
6
+ metadata.gz: c18e9ce0568a9f73a89cb6ef162098310cb112225f9a50b425cd24fe7009e38305b25be0cfed3ea3b799f532c26f51b3ce250a628e28786fe0792e2b94e57f93
7
+ data.tar.gz: 5a7ab9012762dac0f11e2caccc03d5b462575bbfe5819271b40d07813aa591ef5f52589ff6fcaaef7017fc41adda466572e398c7202ff60522096c91fcb93c9c
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ Gemfile.lock
3
+ .bundle
4
+ vendor
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,13 @@
1
+ Copyright (c) 2012-2014 Elasticsearch <http://www.elasticsearch.org>
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
@@ -0,0 +1,95 @@
1
+ # Logstash Plugin
2
+
3
+ This is a plugin for [Logstash](https://github.com/elasticsearch/logstash).
4
+
5
+ It is fully free and fully open source. The license is Apache 2.0, meaning you are pretty much free to use it however you want in whatever way.
6
+
7
+ ## Documentation
8
+
9
+ Logstash provides infrastructure to automatically generate documentation for this plugin. We use the asciidoc format to write documentation so any comments in the source code will be first converted into asciidoc and then into html. All plugin documentation are placed under one [central location](http://www.elasticsearch.org/guide/en/logstash/current/).
10
+
11
+ - For formatting code or config example, you can use the asciidoc `[source,ruby]` directive
12
+ - For more asciidoc formatting tips, see the excellent reference here https://github.com/elasticsearch/docs#asciidoc-guide
13
+
14
+ ## Need Help?
15
+
16
+ Need help? Try #logstash on freenode IRC or the logstash-users@googlegroups.com mailing list.
17
+
18
+ ## Developing
19
+
20
+ ### 1. Plugin Developement and Testing
21
+
22
+ #### Code
23
+ - To get started, you'll need JRuby with the Bundler gem installed.
24
+
25
+ - Create a new plugin or clone and existing from the GitHub [logstash-plugins](https://github.com/logstash-plugins) organization.
26
+
27
+ - Install dependencies
28
+ ```sh
29
+ bundle install
30
+ ```
31
+
32
+ #### Test
33
+
34
+ ```sh
35
+ bundle exec rspec
36
+ ```
37
+
38
+ The Logstash code required to run the tests/specs is specified in the `Gemfile` by the line similar to:
39
+ ```ruby
40
+ gem "logstash", :github => "elasticsearch/logstash", :branch => "1.5"
41
+ ```
42
+ To test against another version or a local Logstash, edit the `Gemfile` to specify an alternative location, for example:
43
+ ```ruby
44
+ gem "logstash", :github => "elasticsearch/logstash", :ref => "master"
45
+ ```
46
+ ```ruby
47
+ gem "logstash", :path => "/your/local/logstash"
48
+ ```
49
+
50
+ Then update your dependencies and run your tests:
51
+
52
+ ```sh
53
+ bundle install
54
+ bundle exec rspec
55
+ ```
56
+
57
+ ### 2. Running your unpublished Plugin in Logstash
58
+
59
+ #### 2.1 Run in a local Logstash clone
60
+
61
+ - Edit Logstash `tools/Gemfile` and add the local plugin path, for example:
62
+ ```ruby
63
+ gem "logstash-filter-awesome", :path => "/your/local/logstash-filter-awesome"
64
+ ```
65
+ - Update Logstash dependencies
66
+ ```sh
67
+ rake vendor:gems
68
+ ```
69
+ - Run Logstash with your plugin
70
+ ```sh
71
+ bin/logstash -e 'filter {awesome {}}'
72
+ ```
73
+ At this point any modifications to the plugin code will be applied to this local Logstash setup. After modifying the plugin, simply rerun Logstash.
74
+
75
+ #### 2.2 Run in an installed Logstash
76
+
77
+ - Build your plugin gem
78
+ ```sh
79
+ gem build logstash-filter-awesome.gemspec
80
+ ```
81
+ - Install the plugin from the Logstash home
82
+ ```sh
83
+ bin/plugin install /your/local/plugin/logstash-filter-awesome.gem
84
+ ```
85
+ - Start Logstash and proceed to test the plugin
86
+
87
+ ## Contributing
88
+
89
+ All contributions are welcome: ideas, patches, documentation, bug reports, complaints, and even something you drew up on a napkin.
90
+
91
+ Programming is not a required skill. Whatever you've seen about open source and maintainers or community members saying "send patches or die" - you will not see that here.
92
+
93
+ It is more important to me that you are able to contribute.
94
+
95
+ For more information about contributing, see the [CONTRIBUTING](https://github.com/elasticsearch/logstash/blob/master/CONTRIBUTING.md) file.
@@ -0,0 +1,42 @@
1
+ @files=[]
2
+
3
+ task :default do
4
+ system("rake -T")
5
+ end
6
+
7
+ #require "logstash/devutils/rake"
8
+
9
+ raise "Only JRuby is supported at this time." unless RUBY_PLATFORM == "java"
10
+ require "gem_publisher"
11
+
12
+ # gem_publisher uses Open3.capture3 to call git binary
13
+ # this does not work on jruby. Open3.popen3 works
14
+ if RUBY_PLATFORM == "java"
15
+ module GemPublisher
16
+ class CliFacade
17
+ def execute(*arguments)
18
+ puts "HELLO",arguments
19
+ if (arguments[0] == "gem")
20
+ puts "replace call to gem"
21
+ arguments[0] = "D:\\dev\\tools\\jruby-1.7.18\\bin\\gem.bat"
22
+ end
23
+ cmd = Shellwords.join(arguments)
24
+ Open3.popen3(cmd) do |_i, stdout, stderr, thr|
25
+ output = [stderr.read, stdout.read].join.strip
26
+ raise Error, output if thr.value.exitstatus > 0
27
+ return output
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
33
+
34
+ desc "Publish gem to RubyGems.org"
35
+ task :publish_gem do |t|
36
+ gem_file = Dir.glob("*.gemspec").first
37
+ if gem_file.nil?
38
+ raise "Cannot find any gemspec, checked for '*.gemspec.'"
39
+ end
40
+ gem = GemPublisher.publish_if_updated(gem_file, :rubygems)
41
+ puts "Published #{gem}" if gem
42
+ end
@@ -0,0 +1,179 @@
1
+ # encoding: utf-8
2
+ require "logstash/filters/base"
3
+ require "logstash/namespace"
4
+ require "logstash/timestamp"
5
+
6
+ # The date_formatter filter is used for formatting date or timestamp from fields,
7
+ # storing formatted string in the field defined as `target`.
8
+ #
9
+ # This filter is especially useful for creating localized
10
+ # or time-zone specific date string.
11
+ #
12
+ # For example, to format @timestamp in French locale, use this configuration:
13
+ # [source,ruby]
14
+ # filter {
15
+ # date_formatter {
16
+ # source => "@timestamp"
17
+ # target => "locale_timestamp"
18
+ # pattern => "EEE, dd MMM yyyy"
19
+ # locale => "fr-FR"
20
+ # timezone => "Europe/Paris"
21
+ # }
22
+ # }
23
+ #
24
+ # Another example, to format @timestamp in Japanese, use this configuration:
25
+ # [source,ruby]
26
+ # filter {
27
+ # date_formatter {
28
+ # source => "@timestamp"
29
+ # target => "japan_date"
30
+ # pattern => "yyyy'年'MM'月'dd'日'"
31
+ # timezone => "Japan/Tokyo"
32
+ # }
33
+ # }
34
+ #
35
+ class LogStash::Filters::DateFormatter < LogStash::Filters::Base
36
+ if RUBY_ENGINE == "jruby"
37
+ JavaException = java.lang.Exception
38
+ end
39
+
40
+ config_name "date_formatter"
41
+
42
+ # Specify a time zone canonical ID to be used for date formatting.
43
+ # The valid IDs are listed on the http://joda-time.sourceforge.net/timezones.html[Joda.org available time zones page].
44
+ # If this is not specified the platform default will be used.
45
+ # Canonical ID is good as it takes care of daylight saving time for you
46
+ # For example, `America/Los_Angeles` or `Europe/Paris` are valid IDs.
47
+ #
48
+ # This configuration can be dynamic and include parts of the event using the %{field} syntax.
49
+ config :timezone, :validate => :string
50
+
51
+ # Specify a locale to be used for date formatting using either IETF-BCP47 or POSIX language tag.
52
+ # Simple examples are `en`,`en-US` for BCP47 or `en_US` for POSIX.
53
+ #
54
+ # The locale is mostly necessary to be set for formatting month names (pattern with `MMM`) and
55
+ # weekday names (pattern with `EEE`).
56
+ #
57
+ # If not specified, the platform default will be used.
58
+ #
59
+ # This configuration can be dynamic and include parts of the event using the %{field} syntax.
60
+ config :locale, :validate => :string
61
+
62
+ # The date formats allowed are anything allowed by Joda-Time (java time
63
+ # library). You can see the docs for this format here:
64
+ #
65
+ # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/DateTimeFormat.html[joda.time.format.DateTimeFormat]
66
+ #
67
+ # This configuration can be dynamic and include parts of the event using the %{field} syntax.
68
+ config :pattern, :validate => :string, :required => true
69
+
70
+ # The name of the logstash event field containing the date/time value
71
+ # to be formatted.
72
+ # If this field is an array, only the first value will be used.
73
+ config :source, :validate => :string, :required => true
74
+
75
+ # Store the formatted string into the given target field.
76
+ # You cannot use `@timestamp` as a valid target!
77
+ config :target, :validate => :string, :required => true
78
+
79
+ # Append values to the `tags` field when date formatting fail
80
+ config :tag_on_failure, :validate => :array, :default => ["_dateformatfailure"]
81
+
82
+ public
83
+ def register
84
+ require "java"
85
+ if @target == "@timestamp"
86
+ raise LogStash::ConfigurationError, I18n.t("logstash.agent.configuration.invalid_plugin_register",
87
+ :plugin => "filter", :type => "date_formatter",
88
+ :error => "This filter cannot write its string result to the @timestamp field")
89
+ end
90
+
91
+ locale = nil
92
+ timezone = nil
93
+ if @locale && !@locale.index("%{").nil?
94
+ @per_event_locale = true
95
+ else
96
+ locale = @locale
97
+ end
98
+
99
+ if @timezone && !@timezone.index("%{").nil?
100
+ @per_event_timezone = true
101
+ else
102
+ timezone = @timezone
103
+ end
104
+
105
+ if !@pattern.index("%{").nil?
106
+ @per_event_pattern = true
107
+ else
108
+ begin
109
+ @base_formatter = localizedFormatter(createBaseFormatter(@pattern),locale,timezone)
110
+ rescue JavaException => e
111
+ raise LogStash::ConfigurationError, I18n.t("logstash.agent.configuration.invalid_plugin_register",
112
+ :plugin => "filter", :type => "date_formatter",
113
+ :error => "#{e.message} for pattern '#{@pattern}'")
114
+ end
115
+ end
116
+ end
117
+
118
+ def createBaseFormatter(pattern)
119
+ return org.joda.time.format.DateTimeFormat.forPattern(pattern)
120
+ end
121
+
122
+ def localizedFormatter(joda_formatter,locale,timezone)
123
+ if timezone
124
+ joda_formatter = joda_formatter.withZone(org.joda.time.DateTimeZone.forID(timezone))
125
+ end
126
+ if locale
127
+ if locale.include? '_'
128
+ @logger.warn("Date formatter filter uses BCP47 format for locale, replacing underscore with dash")
129
+ locale.gsub!('_','-')
130
+ end
131
+ joda_formatter = joda_formatter.withLocale(java.util.Locale.forLanguageTag(locale))
132
+ end
133
+ return joda_formatter
134
+ end
135
+ # def register
136
+
137
+ def getFormatter(event)
138
+ if @per_event_pattern || @per_event_locale || @per_event_timezone
139
+ return localizedFormatter(
140
+ @per_event_pattern ? createBaseFormatter(event.sprintf(@pattern)) : @base_formatter,
141
+ @per_event_locale ? event.sprintf(@locale) : @locale,
142
+ @per_event_timezone ? event.sprintf(@timezone) : @timezone)
143
+ else
144
+ #base formatter is already complete
145
+ return @base_formatter
146
+ end
147
+ end
148
+
149
+ public
150
+ def filter(event)
151
+ return unless filter?(event)
152
+ return unless event.include?(@source)
153
+ src = event[@source]
154
+ src = src.first if src.respond_to?(:each)
155
+ target = nil
156
+ begin
157
+ case src
158
+ when LogStash::Timestamp,Time
159
+ target = getFormatter(event).print((src.to_f * 1000.0).to_i)
160
+ else
161
+ @logger.warn("Unsupporter source field. It is neither a ruby Time or a Logstash::Timestamp")
162
+ end
163
+ rescue JavaException => e
164
+ @logger.warn("Failed formatting date from field", :field => @src,
165
+ :value => src, :exception => e.message)
166
+ # Tag this event. We can use this later to reparse+reindex logs if necessary.
167
+ @tag_on_failure.each do |tag|
168
+ event["tags"] ||= []
169
+ event["tags"] << tag unless event["tags"].include?(tag)
170
+ end
171
+ target = nil
172
+ end
173
+ if target
174
+ event[@target] = target
175
+ filter_matched(event)
176
+ end
177
+ return event
178
+ end # def filter
179
+ end # class LogStash::Filters::DateFormatter
@@ -0,0 +1,26 @@
1
+ Gem::Specification.new do |s|
2
+
3
+ s.name = 'logstash-filter-date_formatter'
4
+ s.version = '0.1.1'
5
+ s.licenses = ['Apache License (2.0)']
6
+ s.summary = "The date_formatter filter is used for formatting date or time from fields containing a time object like @timestamp, and then storing that formatted string in the field defined as target."
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"
8
+ s.authors = ["Elasticsearch"]
9
+ s.email = 'info@elasticsearch.com'
10
+ s.homepage = "http://www.elasticsearch.org/guide/en/logstash/current/index.html"
11
+ s.require_paths = ["lib"]
12
+
13
+ # Files
14
+ s.files = `git ls-files`.split($\)+::Dir.glob('vendor/*')
15
+
16
+ # Tests
17
+ s.test_files = s.files.grep(%r{^(test|spec|features)/})
18
+
19
+ # Special flag to let us know this is actually a logstash plugin
20
+ s.metadata = { "logstash_plugin" => "true", "logstash_group" => "filter" }
21
+
22
+ # Gem dependencies
23
+ s.add_runtime_dependency 'logstash-core', '>= 1.4.0', '< 2.0.0'
24
+ s.add_development_dependency 'logstash-devutils'
25
+ end
26
+
@@ -0,0 +1,175 @@
1
+ # encoding: utf-8
2
+ require "logstash/devutils/rspec/spec_helper"
3
+ require "logstash/filters/date_formatter"
4
+
5
+ puts "Skipping date formatter tests because this ruby is not jruby" if RUBY_ENGINE != "jruby"
6
+ RUBY_ENGINE == "jruby" and describe LogStash::Filters::DateFormatter do
7
+
8
+ describe "formatting to localized pattern EEE, MMM" do
9
+ config <<-CONFIG
10
+ filter {
11
+ date_formatter {
12
+ source => "mydate"
13
+ target => "locale_date"
14
+ pattern => "EEEE, dd MMMM yyyy"
15
+ locale => "fr-FR"
16
+ timezone => "Europe/Paris"
17
+ }
18
+ }
19
+ CONFIG
20
+
21
+ sample({ "mydate" => LogStash::Timestamp.at(1423718682)}) do
22
+ expect(subject["locale_date"]).to eq("jeudi, 12 février 2015")
23
+ end
24
+ end
25
+
26
+ describe "Using a specific timezone" do
27
+ config <<-CONFIG
28
+ filter {
29
+ date_formatter {
30
+ source => "mydate"
31
+ target => "locale_date"
32
+ pattern => "yyyy-MM-dd'T'HH:mm:ss.SSSZZ"
33
+ timezone => "Europe/Paris"
34
+ }
35
+ }
36
+ CONFIG
37
+
38
+ sample({ "mydate" => LogStash::Timestamp.at(1423718682)}) do
39
+ expect(subject["locale_date"]).to eq("2015-02-12T06:24:42.000+01:00")
40
+ end
41
+ end
42
+
43
+ describe "Using characters in the pattern" do
44
+ config <<-CONFIG
45
+ filter {
46
+ date_formatter {
47
+ source => "mydate"
48
+ target => "japan_date"
49
+ pattern => "yyyy'年'MM'月'dd'日'"
50
+ timezone => "Asia/Tokyo"
51
+ }
52
+ }
53
+ CONFIG
54
+
55
+ sample({ "mydate" => LogStash::Timestamp.at(1423718682)}) do
56
+ expect(subject["japan_date"]).to eq("2015年02月12日")
57
+ end
58
+ end
59
+
60
+ describe "Supported input times are (Logstash::Timestamp, Ruby::Time)" do
61
+ config <<-CONFIG
62
+ filter {
63
+ date_formatter {
64
+ source => "mydate"
65
+ target => "locale_date"
66
+ pattern => "yyyy-MM-dd'T'HH:mm:ss.SSSZZ"
67
+ timezone => "Europe/Paris"
68
+ }
69
+ }
70
+ CONFIG
71
+
72
+ sample({ "mydate" => LogStash::Timestamp.at(1423718682)}) do
73
+ expect(subject["locale_date"]).to eq("2015-02-12T06:24:42.000+01:00")
74
+ end
75
+ sample({ "mydate" => Time.at(1423718682)}) do
76
+ expect(subject["locale_date"]).to eq("2015-02-12T06:24:42.000+01:00")
77
+ end
78
+ sample({ "mydate" => "any string"}) do
79
+ expect(subject["locale_date"]).to be_nil
80
+ end
81
+ end
82
+
83
+ describe "Using locale and timezone from event" do
84
+ config <<-CONFIG
85
+ filter {
86
+ date_formatter {
87
+ source => "mydate"
88
+ target => "locale_date"
89
+ pattern => "EEEE, dd MMMM yyyy ZZ"
90
+ locale => "%{locale}"
91
+ timezone => "%{timezone}"
92
+ }
93
+ }
94
+ CONFIG
95
+
96
+ sample({ "mydate" => LogStash::Timestamp.at(1423718682), "locale" => "fr-Fr", "timezone" => "Europe/Paris"}) do
97
+ expect(subject["locale_date"]).to eq("jeudi, 12 février 2015 +01:00")
98
+ end
99
+ sample({ "mydate" => LogStash::Timestamp.at(1423718682), "locale" => "en-US", "timezone" => "America/Los_Angeles"}) do
100
+ expect(subject["locale_date"]).to eq("Wednesday, 11 February 2015 -08:00")
101
+ end
102
+ end
103
+
104
+ describe "Using pattern from event" do
105
+ config <<-CONFIG
106
+ filter {
107
+ date_formatter {
108
+ source => "mydate"
109
+ target => "locale_date"
110
+ pattern => "%{pattern}"
111
+ locale => "en-US"
112
+ timezone => "America/Los_Angeles"
113
+ }
114
+ }
115
+ CONFIG
116
+
117
+ sample({ "mydate" => LogStash::Timestamp.at(1423718682), "pattern" => "EEEE, dd MMMM yyyy ZZ"}) do
118
+ expect(subject["locale_date"]).to eq("Wednesday, 11 February 2015 -08:00")
119
+ end
120
+ sample({ "mydate" => LogStash::Timestamp.at(1423718682), "pattern" => "yyyy-MM-dd'T'HH:mm:ss.SSSZZ"}) do
121
+ expect(subject["locale_date"]).to eq("2015-02-11T21:24:42.000-08:00")
122
+ end
123
+ end
124
+
125
+ context "error handling" do
126
+ describe "Raise configuration error when targetting @timestamp" do
127
+ config <<-CONFIG
128
+ filter {
129
+ date_formatter {
130
+ source => "mydate"
131
+ target => "@timestamp"
132
+ pattern => "yyyy-MM-dd"
133
+ }
134
+ }
135
+ CONFIG
136
+
137
+ sample "not_really_important" do
138
+ expect{subject}.to raise_error(LogStash::ConfigurationError)
139
+ end
140
+ end
141
+
142
+ describe "Raise configuration error for invalid pattern in #register" do
143
+ config <<-CONFIG
144
+ filter {
145
+ date_formatter {
146
+ source => "mydate"
147
+ target => "@timestamp"
148
+ pattern => "yyyy-MM-ddabcdef"
149
+ }
150
+ }
151
+ CONFIG
152
+
153
+ sample "not_really_important" do
154
+ expect{subject}.to raise_error(LogStash::ConfigurationError)
155
+ end
156
+ end
157
+
158
+ describe "Do not raise configuration but tag event for invalid pattern in #filter" do
159
+ config <<-CONFIG
160
+ filter {
161
+ date_formatter {
162
+ source => "mydate"
163
+ target => "dateformatted"
164
+ pattern => "%{pattern}"
165
+ }
166
+ }
167
+ CONFIG
168
+
169
+ sample({ "mydate" => LogStash::Timestamp.at(1423718682), "pattern" => "yyyy-MM-ddabcdef"}) do
170
+ expect(subject["dateformatted"]).to be_nil
171
+ expect(subject["tags"]).to include("_dateformatfailure")
172
+ end
173
+ end
174
+ end
175
+ end
metadata ADDED
@@ -0,0 +1,88 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: logstash-filter-date_formatter
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Elasticsearch
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-06-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: logstash-core
15
+ version_requirements: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: 1.4.0
20
+ - - <
21
+ - !ruby/object:Gem::Version
22
+ version: 2.0.0
23
+ requirement: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - '>='
26
+ - !ruby/object:Gem::Version
27
+ version: 1.4.0
28
+ - - <
29
+ - !ruby/object:Gem::Version
30
+ version: 2.0.0
31
+ prerelease: false
32
+ type: :runtime
33
+ - !ruby/object:Gem::Dependency
34
+ name: logstash-devutils
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - '>='
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ requirement: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ prerelease: false
46
+ type: :development
47
+ 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
48
+ email: info@elasticsearch.com
49
+ executables: []
50
+ extensions: []
51
+ extra_rdoc_files: []
52
+ files:
53
+ - .gitignore
54
+ - Gemfile
55
+ - LICENSE
56
+ - README.md
57
+ - Rakefile
58
+ - lib/logstash/filters/date_formatter.rb
59
+ - logstash-filter-date_formatter.gemspec
60
+ - spec/filters/date_formatter_spec.rb
61
+ homepage: http://www.elasticsearch.org/guide/en/logstash/current/index.html
62
+ licenses:
63
+ - Apache License (2.0)
64
+ metadata:
65
+ logstash_plugin: 'true'
66
+ logstash_group: filter
67
+ post_install_message:
68
+ rdoc_options: []
69
+ require_paths:
70
+ - lib
71
+ required_ruby_version: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ required_rubygems_version: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - '>='
79
+ - !ruby/object:Gem::Version
80
+ version: '0'
81
+ requirements: []
82
+ rubyforge_project:
83
+ rubygems_version: 2.1.9
84
+ signing_key:
85
+ specification_version: 4
86
+ summary: The date_formatter filter is used for formatting date or time from fields containing a time object like @timestamp, and then storing that formatted string in the field defined as target.
87
+ test_files:
88
+ - spec/filters/date_formatter_spec.rb