logstash-filter-date_formatter 2.0.1-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 6d718b017e0f9fc8163d4fc6b53ab9e13a69bbd4
4
+ data.tar.gz: 025039fb36909a93615f6d9e61579f5dd797b9aa
5
+ SHA512:
6
+ metadata.gz: c52e765e1fc77955947946c21d59d3c0f959dcbfd1e54bb1f9aecb16a503d3ede439f08c28fde4315258ec2d1cacc61df6007562433d11056eaf89c43cfefa5e
7
+ data.tar.gz: 4b61c18389d2dd5069d431dd7bae0398dfd3847905770339f70c06cd6770257f3da158adaf2186a2379a0b5a3c1d117b6d677bfa41e2a0fe0cc50f848a2d029e
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ Gemfile.lock
3
+ .bundle
4
+ vendor
data/CHANGELOG.md ADDED
@@ -0,0 +1,8 @@
1
+ ## 2.0.0
2
+ - internal: change compatibility to new plugin API targetting 5.0
3
+
4
+ ## 1.0.0
5
+ - Dependency on logstash-core update to 2.0
6
+
7
+ ## 0.1.1
8
+ - Initial release
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.
data/README.md ADDED
@@ -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.
data/Rakefile ADDED
@@ -0,0 +1,7 @@
1
+ @files=[]
2
+
3
+ task :default do
4
+ system("rake -T")
5
+ end
6
+
7
+ require "logstash/devutils/rake"
@@ -0,0 +1,180 @@
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.get(@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
+ when Java::OrgJodaTime::DateTime
161
+ target = getFormatter(event).print(src)
162
+ else
163
+ @logger.warn("Unsupporter source field. It is neither a ruby Time or a Logstash::Timestamp")
164
+ end
165
+ rescue JavaException => e
166
+ @logger.warn("Failed formatting date from field", :field => @src,
167
+ :value => src, :exception => e.message)
168
+ # Tag this event. We can use this later to reparse+reindex logs if necessary.
169
+ @tag_on_failure.each do |tag|
170
+ event.tag(tag)
171
+ end
172
+ target = nil
173
+ end
174
+ if target
175
+ event.set(@target, target)
176
+ filter_matched(event)
177
+ end
178
+ return event
179
+ end # def filter
180
+ 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 = '2.0.1'
5
+ s.platform = 'java'
6
+ s.licenses = ['Apache License (2.0)']
7
+ 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."
8
+ 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"
9
+ s.authors = ["Elasticsearch"]
10
+ s.email = 'info@elasticsearch.com'
11
+ s.homepage = "http://www.elasticsearch.org/guide/en/logstash/current/index.html"
12
+ s.require_paths = ["lib"]
13
+
14
+ # Files
15
+ s.files = `git ls-files`.split($\)+::Dir.glob('vendor/*')
16
+
17
+ # Tests
18
+ s.test_files = s.files.grep(%r{^(test|spec|features)/})
19
+
20
+ # Special flag to let us know this is actually a logstash plugin
21
+ s.metadata = { "logstash_plugin" => "true", "logstash_group" => "filter" }
22
+
23
+ # Gem dependencies
24
+ s.add_runtime_dependency "logstash-core-plugin-api", "~> 2.0"
25
+ s.add_development_dependency 'logstash-devutils'
26
+ end
@@ -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.get("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.get("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.get("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.get("locale_date")).to eq("2015-02-12T06:24:42.000+01:00")
74
+ end
75
+ sample({ "mydate" => Time.at(1423718682)}) do
76
+ expect(subject.get("locale_date")).to eq("2015-02-12T06:24:42.000+01:00")
77
+ end
78
+ sample({ "mydate" => "any string"}) do
79
+ expect(subject.get("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.get("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.get("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.get("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.get("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.get("dateformatted")).to be_nil
171
+ expect(subject.get("tags")).to include("_dateformatfailure")
172
+ end
173
+ end
174
+ end
175
+ end
metadata ADDED
@@ -0,0 +1,83 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: logstash-filter-date_formatter
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.1
5
+ platform: java
6
+ authors:
7
+ - Elasticsearch
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-08-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ~>
17
+ - !ruby/object:Gem::Version
18
+ version: '2.0'
19
+ name: logstash-core-plugin-api
20
+ prerelease: false
21
+ type: :runtime
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ name: logstash-devutils
34
+ prerelease: false
35
+ type: :development
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ 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
42
+ email: info@elasticsearch.com
43
+ executables: []
44
+ extensions: []
45
+ extra_rdoc_files: []
46
+ files:
47
+ - .gitignore
48
+ - CHANGELOG.md
49
+ - Gemfile
50
+ - LICENSE
51
+ - README.md
52
+ - Rakefile
53
+ - lib/logstash/filters/date_formatter.rb
54
+ - logstash-filter-date_formatter.gemspec
55
+ - spec/filters/date_formatter_spec.rb
56
+ homepage: http://www.elasticsearch.org/guide/en/logstash/current/index.html
57
+ licenses:
58
+ - Apache License (2.0)
59
+ metadata:
60
+ logstash_plugin: 'true'
61
+ logstash_group: filter
62
+ post_install_message:
63
+ rdoc_options: []
64
+ require_paths:
65
+ - lib
66
+ required_ruby_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - '>='
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ required_rubygems_version: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ requirements: []
77
+ rubyforge_project:
78
+ rubygems_version: 2.4.8
79
+ signing_key:
80
+ specification_version: 4
81
+ 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.
82
+ test_files:
83
+ - spec/filters/date_formatter_spec.rb