logstash-filter-lookup 1.2.0

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: 648fc623dcabd4838334920e90a147340b8f52b1
4
+ data.tar.gz: df85b912d6514fbac058f07a7869d93fb07d09e7
5
+ SHA512:
6
+ metadata.gz: fbb7168f862eca20a989adc0cd8d4195557c7ca437eb4e09cdc1c62c856e29cf5f48acf122d4aae240cebc4e8ecde4028091c0730ad42cfe93169eeda10f6d8c
7
+ data.tar.gz: b388ae388123da3b6f9c6ea24d20728f171c049f8cee1e386d135932d0088c657e4944bc4e3076d85e68aae3e00e3ac8e56b6967135c6392523b3c37f532b421
@@ -0,0 +1,2 @@
1
+ ## 1.0
2
+ Initialized logstash-filter-lookup. Formerly called logstash-filter-webservicemap
@@ -0,0 +1,16 @@
1
+ The following is a list of people who have contributed ideas, code, bug
2
+ reports, or in general have helped logstash along its way.
3
+
4
+ Based on logstash-filter-translate
5
+ Formerly called logstash-filter-webservicemap
6
+ Forked from the pull Request for logstash-filter-translate and separated from there.
7
+ credits to: https://github.com/logstash-plugins/logstash-filter-translate
8
+ the PR that never merged to: https://github.com/logstash-plugins/logstash-filter-translate/pull/7
9
+
10
+ Contributors:
11
+ * Angel Luis Lopez Monterroso (angel9484)
12
+
13
+ Note: If you've sent us patches, bug reports, or otherwise contributed to
14
+ Logstash, and you aren't on the list above and want to be, please let us know
15
+ and we'll make sure you're here. Contributions from folks like you are what make
16
+ open source awesome.
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
3
+
4
+ group :test, :development do
5
+ gem 'webmock'
6
+ end
data/LICENSE ADDED
@@ -0,0 +1,13 @@
1
+ Copyright (c) 2012–2015 Elasticsearch <http://www.elastic.co>
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,5 @@
1
+ Elasticsearch
2
+ Copyright 2012-2015 Elasticsearch
3
+
4
+ This product includes software developed by The Apache Software
5
+ Foundation (http://www.apache.org/).
@@ -0,0 +1,144 @@
1
+ # Logstash Plugin
2
+
3
+ This is a plugin for [Logstash](https://github.com/elastic/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
+ ## Example
8
+ ### 1. Web Service Example
9
+ See examples/webservice/java
10
+
11
+ ### 2. Logstash config example
12
+ ```
13
+ input {
14
+ stdin{}
15
+ }
16
+ filter {
17
+ lookup {
18
+ field => "message"
19
+ map_url => "http://localhost:8080/json"
20
+ destination => "dest"
21
+ refresh_interval => 10
22
+ }
23
+ }
24
+ output {
25
+ stdout{
26
+
27
+ }
28
+ }
29
+ ```
30
+ ### 3. Execution example
31
+ Install with bin/plugin install logstash-filter-lookup
32
+ ```sh
33
+ bin/logstash -f config/myconf.conf --log logstash.log --debug
34
+ ```
35
+
36
+ ### 4. Results
37
+ #### Input
38
+ 200
39
+
40
+ #### Output
41
+ ```
42
+ {
43
+ :timestamp=>"2016-03-13T10:41:50.264000+0100",
44
+ :message=>"output received",
45
+ :event=>{
46
+ "message"=>"200",
47
+ "@version"=>"1",
48
+ "@timestamp"=>"2016-03-13T09:41:49.493Z",
49
+ "host"=>"Mac-mini-de-angel.local",
50
+ "dest"=>"OK"
51
+ },
52
+ :level=>:debug,
53
+ :file=>"(eval)",
54
+ :line=>"47",
55
+ :method=>"output_func"
56
+ }
57
+ ```
58
+
59
+ ### 5. Update
60
+ bin/plugin update logstash-filter-lookup
61
+
62
+ ### 6. GEM
63
+ https://rubygems.org/gems/logstash-filter-lookup
64
+
65
+ ## Documentation
66
+
67
+ 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.elastic.co/guide/en/logstash/current/).
68
+
69
+ - For formatting code or config example, you can use the asciidoc `[source,ruby]` directive
70
+ - For more asciidoc formatting tips, see the excellent reference here https://github.com/elastic/docs#asciidoc-guide
71
+
72
+ ## Need Help?
73
+
74
+ Need help? Try #logstash on freenode IRC or the https://discuss.elastic.co/c/logstash discussion forum.
75
+
76
+ ## Developing
77
+
78
+ ### 1. Plugin Developement and Testing
79
+
80
+ #### Code
81
+ - To get started, you'll need JRuby with the Bundler gem installed.
82
+
83
+ - Create a new plugin or clone and existing from the GitHub [logstash-plugins](https://github.com/logstash-plugins) organization. We also provide [example plugins](https://github.com/logstash-plugins?query=example).
84
+
85
+ - Install dependencies
86
+ ```sh
87
+ bundle install
88
+ ```
89
+
90
+ #### Test
91
+
92
+ - Update your dependencies
93
+
94
+ ```sh
95
+ bundle install
96
+ ```
97
+
98
+ - Run tests
99
+
100
+ ```sh
101
+ bundle exec rspec
102
+ ```
103
+
104
+ ### 2. Running your unpublished Plugin in Logstash
105
+
106
+ #### 2.1 Run in a local Logstash clone
107
+
108
+ - Edit Logstash `Gemfile` and add the local plugin path, for example:
109
+ ```ruby
110
+ gem "logstash-filter-awesome", :path => "/your/local/logstash-filter-awesome"
111
+ ```
112
+ - Install plugin
113
+ ```sh
114
+ bin/plugin install --no-verify
115
+ ```
116
+ - Run Logstash with your plugin
117
+ ```sh
118
+ bin/logstash -e 'filter {awesome {}}'
119
+ ```
120
+ At this point any modifications to the plugin code will be applied to this local Logstash setup. After modifying the plugin, simply rerun Logstash.
121
+
122
+ #### 2.2 Run in an installed Logstash
123
+
124
+ You can use the same **2.1** method to run your plugin in an installed Logstash by editing its `Gemfile` and pointing the `:path` to your local plugin development directory or you can build the gem and install it using:
125
+
126
+ - Build your plugin gem
127
+ ```sh
128
+ gem build logstash-filter-awesome.gemspec
129
+ ```
130
+ - Install the plugin from the Logstash home
131
+ ```sh
132
+ bin/plugin install /your/local/plugin/logstash-filter-awesome.gem
133
+ ```
134
+ - Start Logstash and proceed to test the plugin
135
+
136
+ ## Contributing
137
+
138
+ All contributions are welcome: ideas, patches, documentation, bug reports, complaints, and even something you drew up on a napkin.
139
+
140
+ 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.
141
+
142
+ It is more important to the community that you are able to contribute.
143
+
144
+ For more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/master/CONTRIBUTING.md) file.
@@ -0,0 +1,183 @@
1
+ # encoding: utf-8
2
+ require 'logstash/filters/base'
3
+ require 'logstash/namespace'
4
+ require 'open-uri'
5
+ require 'digest/sha1'
6
+ require 'json'
7
+ require 'csv'
8
+
9
+ # A general search and replace tool which uses a Web service with a YAML, CSV or JSON response to determine replacement values.
10
+ #
11
+ # The map entries can be specified with a Web service who your request produces a YML, CSV or JSON response.
12
+ #
13
+ # Operationally, if the event field specified in the `field` configuration
14
+ # matches the EXACT contents of a map entry key, the field's value will be substituted
15
+ # with the matched key's value from the map.
16
+ #
17
+ # By default, the lookup filter will replace the contents of the
18
+ # maching event field (in-place). However, by using the `destination`
19
+ # configuration item, you may also specify a target event field to
20
+ # populate with the new mapd value.
21
+
22
+ class LogStash::Filters::LookUp < LogStash::Filters::Base
23
+ config_name "lookup"
24
+ # The name of the logstash event field containing the value to be compared for a
25
+ # match by the map filter (e.g. `message`, `host`, `response_code`).
26
+ #
27
+ # If this field is an array, only the first value will be used.
28
+ config :field, :validate => :string, :required => true
29
+
30
+ # If the destination (or target) field already exists, this configuration item specifies
31
+ # whether the filter should skip mapping (default) or overwrite the target field
32
+ # value with the new mapping value.
33
+ config :override, :validate => :boolean, :default => false
34
+
35
+ # The full URI path of a Web service who generates an JSON, yml or CSV format response.
36
+ # requires to append as suffix the format type. Ex: http://localhost:8080/geoPoints?type=json
37
+ # http://localhost:8080/geoPoints/json
38
+ # http://localhost:8080/geoPoints/csv
39
+ # If no suffix matches, defaults to YAML
40
+ config :map_url, :validate => :string, :required => true
41
+
42
+ # When using a map file or url, this setting will indicate how frequently
43
+ # (in seconds) logstash will check the YAML file or url for updates.
44
+ config :refresh_interval, :validate => :number, :default => 300
45
+
46
+ # The destination field you wish to populate with the mapd code. The default
47
+ # is a field named `mapping`. Set this to the same value as source if you want
48
+ # to do a substitution, in this case filter will allways succeed. This will clobber
49
+ # the old value of the source field!
50
+ config :destination, :validate => :string, :default => "mapping"
51
+
52
+ # In case no mapping occurs in the event (no matches), this will add a default
53
+ # mapping string, which will always populate `field`, if the match failed.
54
+ #
55
+ # For example, if we have configured `fallback => "no match"`, using this map:
56
+ # [source,ruby]
57
+ # foo: bar
58
+ #
59
+ # Then, if logstash received an event with the field `foo` set to `bar`, the destination
60
+ # field would be set to `bar`. However, if logstash received an event with `foo` set to `nope`,
61
+ # then the destination field would still be populated, but with the value of `no match`.
62
+ # This configuration can be dynamic and include parts of the event using the `%{field}` syntax.
63
+ config :fallback, :validate => :string
64
+
65
+ def get_map
66
+ @my_map
67
+ end
68
+
69
+ def set_map(map)
70
+ @my_map = map;
71
+ end
72
+
73
+ public
74
+ def register
75
+ @my_map = {}
76
+ @next_refresh = Time.now + @refresh_interval
77
+ download_ws(@map_url, true)
78
+ @logger.debug? and @logger.debug("#{self.class.name}: map - ", :map => get_map)
79
+ type = 'Exact'
80
+ @logger.debug? and @logger.debug("#{self.class.name}: map mapping method - "+type)
81
+ end
82
+
83
+ # def register
84
+
85
+ def json_loader(data)
86
+ get_map.merge!(JSON.parse(File.read(data)))
87
+ end
88
+
89
+ def csv_loader(data)
90
+ data = CSV.read(data).inject(Hash.new) do |acc, v|
91
+ acc[v[0]] = v[1]
92
+ acc
93
+ end
94
+ get_map.merge!(data)
95
+ end
96
+
97
+ def yml_loader(data)
98
+ get_map.merge!(YAML.load_file(data))
99
+ end
100
+
101
+ def load_file(registering, extension, data)
102
+ begin
103
+ if extension.equal?('.json')
104
+ return json_loader(data)
105
+ elsif extension.end_with?('.csv')
106
+ return csv_loader(data)
107
+ end
108
+ yml_loader(data)
109
+ rescue Exception => _
110
+ if registering
111
+ raise "#{self.class.name}: Bad Syntax in map file #{file_name}"
112
+ else
113
+ @logger.warn("#{self.class.name}: Bad Syntax in map file, continuing with old map", :map_path => file_name)
114
+ end
115
+ end
116
+ end
117
+
118
+ def get_extension(path)
119
+ if path.end_with?('json')
120
+ return '.json'
121
+ elsif path.end_with?('csv')
122
+ return '.csv'
123
+ end
124
+ '.yml'
125
+ end
126
+
127
+ public
128
+ def download_ws(path, registering=false)
129
+ extension = get_extension(path)
130
+ temp_extension = '_temp'+extension;
131
+ file_name = Digest::SHA1.hexdigest path
132
+ begin
133
+ File.open(file_name+temp_extension, 'wb') do |saved_file|
134
+ open(path, 'rb') do |read_file|
135
+ saved_file.write(read_file.read)
136
+ end
137
+ end
138
+ rescue Exception => _
139
+ if registering
140
+ raise "#{self.class.name}: Failed to initialize with #{file_name} and path #{path}"
141
+ end
142
+ @logger.warn("#{self.class.name}: Something happened with URL. Continuing with old map", :map_path => file_name, :path => path)
143
+ end
144
+
145
+ begin
146
+ load_file(registering, extension, file_name+temp_extension)
147
+ FileUtils.mv(file_name+temp_extension, file_name+extension)
148
+ rescue Exception => _
149
+ FileUtils.rm_f(file_name+temp_extension)
150
+ end
151
+ end
152
+
153
+ # def download_yaml
154
+
155
+ public
156
+ def filter(event)
157
+ if @next_refresh < Time.now
158
+ download_ws(@map_url)
159
+ @next_refresh = Time.now + @refresh_interval
160
+ @logger.info('downloading and refreshing map file')
161
+ end
162
+
163
+ return unless event.include?(@field) # Skip mapping in case event does not have @event field.
164
+ return if event.include?(@destination) and not @override # Skip mapping in case @destination field already exists and @override is disabled.
165
+
166
+ begin
167
+ source = event[@field].is_a?(Array) ? event[@field].first.to_s : event[@field].to_s
168
+ matched = false
169
+ if get_map.include?(source)
170
+ event[@destination] = get_map[source]
171
+ matched = true
172
+ end
173
+
174
+ if not matched and @fallback
175
+ event[@destination] = event.sprintf(@fallback)
176
+ matched = true
177
+ end
178
+ filter_matched(event) if matched or @field == @destination
179
+ rescue Exception => e
180
+ @logger.error('Something went wrong when attempting to map from my_map', :exception => e, :field => @field, :event => event)
181
+ end
182
+ end # def filter
183
+ end # class LogStash::Filters::LookUp
@@ -0,0 +1,25 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = 'logstash-filter-lookup'
3
+ s.version = '1.2.0'
4
+ s.licenses = ['Apache License (2.0)']
5
+ s.summary = "A general search and replace tool which uses a configured web service to determine replacement values."
6
+ 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 logstash-filter-lookup. This gem is not a stand-alone program. See https://github.com/angel9484/logstash-filter-lookup"
7
+ s.authors = ["Elastic"]
8
+ s.email = 'info@elastic.co'
9
+ s.homepage = "http://www.elastic.co/guide/en/logstash/current/index.html"
10
+ s.require_paths = ["lib"]
11
+
12
+ # Files
13
+ s.files = Dir['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
14
+
15
+ # Tests
16
+ s.test_files = s.files.grep(%r{^(test|spec|features)/})
17
+
18
+ # Special flag to let us know this is actually a logstash plugin
19
+ s.metadata = { "logstash_plugin" => "true", "logstash_group" => "filter" }
20
+
21
+ # Gem dependencies
22
+ s.add_runtime_dependency "logstash-core", ">= 2.0.0", "<= 2.2.2"
23
+
24
+ s.add_development_dependency 'logstash-devutils', '~> 0'
25
+ end
@@ -0,0 +1,135 @@
1
+ # encoding: utf-8
2
+ require "logstash/devutils/rspec/spec_helper"
3
+ require "logstash/filters/lookup"
4
+ require "webmock/rspec"
5
+ require 'digest/sha1'
6
+ WebMock.disable_net_connect!(allow_localhost: true)
7
+
8
+ describe LogStash::Filters::LookUp do
9
+
10
+ let(:config) { Hash.new }
11
+ subject { described_class.new(config) }
12
+
13
+ describe "webserver mapping" do
14
+ config <<-CONFIG
15
+ filter {
16
+ lookup {
17
+ field => "status"
18
+ destination => "mapping"
19
+ map_url => "http://dummyurl/"
20
+ }
21
+ }
22
+ CONFIG
23
+
24
+ RSpec.configure do |config|
25
+ hash = Digest::SHA1.hexdigest 'http://dummyurl/'
26
+ config.before(:each) do
27
+ FileUtils.rm_rf(hash+'.yml')
28
+ stub_request(:get, "http://dummyurl/").
29
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
30
+ to_return(:status => 200, :body => "\
31
+ '200': OK\n\
32
+ '300': Redirect\n\
33
+ '400': Client Error\n\
34
+ '500': Server Error", :headers => {})
35
+ end
36
+ config.after(:all) do
37
+ FileUtils.rm_rf(hash+'.yml')
38
+ end
39
+ end
40
+
41
+ sample("status" => "200") do
42
+ insist { subject["mapping"] } == "OK"
43
+ end
44
+ end
45
+
46
+ describe "webserver mapping existing YML" do
47
+ config <<-CONFIG
48
+ filter {
49
+ lookup {
50
+ field => "status"
51
+ destination => "mapping"
52
+ map_url => "http://dummyurl/"
53
+ }
54
+ }
55
+ CONFIG
56
+
57
+ RSpec.configure do |config|
58
+ hash = Digest::SHA1.hexdigest 'http://dummyurl/'
59
+ config.before(:each) do
60
+ FileUtils.rm_rf(hash+'.yml')
61
+ File.open(hash+'.yml', 'wb') { |f| f.write("\
62
+ '200': OKF\n\
63
+ '300': Redirect\n\
64
+ '400': Client Error\n\
65
+ '500': Server Error") }
66
+ stub_request(:get, "http://dummyurl/").
67
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
68
+ to_return(:status => 200, :body => "\
69
+ '200': OK\n\
70
+ '300': Redirect\n\
71
+ '400': Client Error\n\
72
+ '500': Server Error", :headers => {})
73
+ end
74
+ config.after(:all) do
75
+ FileUtils.rm_rf(hash+'.yml')
76
+ end
77
+ end
78
+
79
+ sample("status" => "200") do
80
+ insist { subject["mapping"] } == "OK"
81
+ end
82
+ end
83
+
84
+ describe "webserver mapping not valid" do
85
+ config <<-CONFIG
86
+ filter {
87
+ lookup {
88
+ field => "status"
89
+ destination => "mapping"
90
+ map_url => "http://dummyurl/"
91
+ }
92
+ }
93
+ CONFIG
94
+
95
+ RSpec.configure do |config|
96
+ hash = Digest::SHA1.hexdigest 'http://dummyurl/'
97
+ config.before(:each) do
98
+ FileUtils.rm_rf(hash+'.yml')
99
+ stub_request(:get, "http://dummyurl/").
100
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
101
+ to_return(:status => 200, :body => "\
102
+ '200': OK\n\
103
+ '300': Redirect\n\
104
+ '400', Client Error\n\
105
+ '500': Server Error", :headers => {})
106
+ end
107
+ config.after(:all) do
108
+ FileUtils.rm_rf(hash+'.yml')
109
+ end
110
+ end
111
+
112
+ sample("status" => "200") do
113
+ insist { subject["mapping"] } == nil
114
+ end
115
+ end
116
+
117
+ context "allow sprintf" do
118
+ let(:config) do
119
+ {
120
+ "field" => "status",
121
+ "destination" => "mapping",
122
+ "fallback" => "%{missing_mapping}",
123
+ "map_url" => "http://dummyurl/"
124
+ }
125
+ end
126
+
127
+ let(:event) { LogStash::Event.new("status" => "200", "missing_mapping" => "missing no match") }
128
+
129
+ it "return the exact mapping" do
130
+ subject.register
131
+ subject.filter(event)
132
+ expect(event["mapping"]).to eq("missing no match")
133
+ end
134
+ end
135
+ end
metadata ADDED
@@ -0,0 +1,89 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: logstash-filter-lookup
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.2.0
5
+ platform: ruby
6
+ authors:
7
+ - Elastic
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-03-20 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.0
19
+ - - <=
20
+ - !ruby/object:Gem::Version
21
+ version: 2.2.2
22
+ name: logstash-core
23
+ prerelease: false
24
+ type: :runtime
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 2.0.0
30
+ - - <=
31
+ - !ruby/object:Gem::Version
32
+ version: 2.2.2
33
+ - !ruby/object:Gem::Dependency
34
+ requirement: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ~>
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ name: logstash-devutils
40
+ prerelease: false
41
+ type: :development
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ~>
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
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 logstash-filter-lookup. This gem is not a stand-alone program. See https://github.com/angel9484/logstash-filter-lookup
48
+ email: info@elastic.co
49
+ executables: []
50
+ extensions: []
51
+ extra_rdoc_files: []
52
+ files:
53
+ - CHANGELOG.md
54
+ - CONTRIBUTORS
55
+ - Gemfile
56
+ - LICENSE
57
+ - NOTICE.TXT
58
+ - README.md
59
+ - lib/logstash/filters/lookup.rb
60
+ - logstash-filter-lookup.gemspec
61
+ - spec/filters/lookup_spec.rb
62
+ homepage: http://www.elastic.co/guide/en/logstash/current/index.html
63
+ licenses:
64
+ - Apache License (2.0)
65
+ metadata:
66
+ logstash_plugin: 'true'
67
+ logstash_group: filter
68
+ post_install_message:
69
+ rdoc_options: []
70
+ require_paths:
71
+ - lib
72
+ required_ruby_version: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ required_rubygems_version: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - '>='
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ requirements: []
83
+ rubyforge_project:
84
+ rubygems_version: 2.4.5
85
+ signing_key:
86
+ specification_version: 4
87
+ summary: A general search and replace tool which uses a configured web service to determine replacement values.
88
+ test_files:
89
+ - spec/filters/lookup_spec.rb