logstash-filter-dns 0.1.5 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +0 -0
- data/NOTICE.TXT +5 -0
- data/README.md +1 -1
- data/lib/logstash/filters/dns.rb +11 -12
- data/logstash-filter-dns.gemspec +1 -1
- metadata +15 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfaf42a227d39e063432cd4d3ca4344e108a9ccc
|
4
|
+
data.tar.gz: f66aaa47106c136c537d732e9a8b9f0d841126fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c75cc1998cd2d1d68a10c50b05afe105999e014be16a8c426e8737dfb4e68e4e6342e7faa4056326cc6a79866271333362d0c46693c493234c4e1b6ef54200b2
|
7
|
+
data.tar.gz: 5148885e12fc063cd506711f3418dd17587a0fb4003e3fa23d98fc3304c474ea9ff7f2f3cb6950afb2fc5300256a0c0e1691ee77130d40dd23830d0107bd60a5
|
data/CHANGELOG.md
ADDED
File without changes
|
data/NOTICE.TXT
ADDED
data/README.md
CHANGED
@@ -13,7 +13,7 @@ Logstash provides infrastructure to automatically generate documentation for thi
|
|
13
13
|
|
14
14
|
## Need Help?
|
15
15
|
|
16
|
-
Need help? Try #logstash on freenode IRC or the logstash
|
16
|
+
Need help? Try #logstash on freenode IRC or the https://discuss.elastic.co/c/logstash discussion forum.
|
17
17
|
|
18
18
|
## Developing
|
19
19
|
|
data/lib/logstash/filters/dns.rb
CHANGED
@@ -1,9 +1,4 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# DNS Filter
|
3
|
-
#
|
4
|
-
# This filter will resolve any IP addresses from a field of your choosing.
|
5
|
-
#
|
6
|
-
|
7
2
|
require "logstash/filters/base"
|
8
3
|
require "logstash/namespace"
|
9
4
|
|
@@ -22,10 +17,18 @@ require "logstash/namespace"
|
|
22
17
|
# }
|
23
18
|
# }
|
24
19
|
#
|
25
|
-
# Caveats:
|
26
|
-
#
|
27
|
-
#
|
20
|
+
# Caveats: Currently there is no way to specify a timeout in the DNS lookup.
|
21
|
+
#
|
22
|
+
# This filter, like all filters, only processes 1 event at a time, so the use
|
23
|
+
# of this plugin can significantly slow down your pipeline's throughput if you
|
24
|
+
# have a high latency network. By way of example, if each DNS lookup takes 2
|
25
|
+
# milliseconds, the maximum throughput you can achieve with a single filter
|
26
|
+
# worker is 500 events per second (1000 milliseconds / 2 milliseconds).
|
28
27
|
class LogStash::Filters::DNS < LogStash::Filters::Base
|
28
|
+
# TODO(sissel): The timeout limitation does seem to be fixed in here: http://redmine.ruby-lang.org/issues/5100 # but isn't currently in JRuby.
|
29
|
+
# TODO(sissel): make `action` required? This was always the intent, but it
|
30
|
+
# due to a typo it was never enforced. Thus the default behavior in past
|
31
|
+
# versions was `append` by accident.
|
29
32
|
|
30
33
|
config_name "dns"
|
31
34
|
|
@@ -42,10 +45,6 @@ class LogStash::Filters::DNS < LogStash::Filters::Base
|
|
42
45
|
# Use custom nameserver.
|
43
46
|
config :nameserver, :validate => :string
|
44
47
|
|
45
|
-
# TODO(sissel): make `action` required? This was always the intent, but it
|
46
|
-
# due to a typo it was never enforced. Thus the default behavior in past
|
47
|
-
# versions was `append` by accident.
|
48
|
-
|
49
48
|
# `resolv` calls will be wrapped in a timeout instance
|
50
49
|
config :timeout, :validate => :number, :default => 2
|
51
50
|
|
data/logstash-filter-dns.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-filter-dns'
|
4
|
-
s.version = '0.
|
4
|
+
s.version = '1.0.0'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "This filter will resolve any IP addresses from a field of your choosing."
|
7
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"
|
metadata
CHANGED
@@ -1,17 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-filter-dns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
|
14
|
+
name: logstash-core
|
15
|
+
version_requirements: !ruby/object:Gem::Requirement
|
15
16
|
requirements:
|
16
17
|
- - '>='
|
17
18
|
- !ruby/object:Gem::Version
|
@@ -19,10 +20,7 @@ dependencies:
|
|
19
20
|
- - <
|
20
21
|
- !ruby/object:Gem::Version
|
21
22
|
version: 2.0.0
|
22
|
-
|
23
|
-
prerelease: false
|
24
|
-
type: :runtime
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirement: !ruby/object:Gem::Requirement
|
26
24
|
requirements:
|
27
25
|
- - '>='
|
28
26
|
- !ruby/object:Gem::Version
|
@@ -30,20 +28,22 @@ dependencies:
|
|
30
28
|
- - <
|
31
29
|
- !ruby/object:Gem::Version
|
32
30
|
version: 2.0.0
|
31
|
+
prerelease: false
|
32
|
+
type: :runtime
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
|
-
|
34
|
+
name: logstash-devutils
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
35
36
|
requirements:
|
36
37
|
- - '>='
|
37
38
|
- !ruby/object:Gem::Version
|
38
39
|
version: '0'
|
39
|
-
|
40
|
-
prerelease: false
|
41
|
-
type: :development
|
42
|
-
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirement: !ruby/object:Gem::Requirement
|
43
41
|
requirements:
|
44
42
|
- - '>='
|
45
43
|
- !ruby/object:Gem::Version
|
46
44
|
version: '0'
|
45
|
+
prerelease: false
|
46
|
+
type: :development
|
47
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
48
|
email: info@elastic.co
|
49
49
|
executables: []
|
@@ -52,9 +52,11 @@ extra_rdoc_files: []
|
|
52
52
|
files:
|
53
53
|
- .gitignore
|
54
54
|
- 1795.patch
|
55
|
+
- CHANGELOG.md
|
55
56
|
- CONTRIBUTORS
|
56
57
|
- Gemfile
|
57
58
|
- LICENSE
|
59
|
+
- NOTICE.TXT
|
58
60
|
- README.md
|
59
61
|
- Rakefile
|
60
62
|
- lib/logstash/filters/dns.rb
|
@@ -82,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
84
|
version: '0'
|
83
85
|
requirements: []
|
84
86
|
rubyforge_project:
|
85
|
-
rubygems_version: 2.
|
87
|
+
rubygems_version: 2.2.2
|
86
88
|
signing_key:
|
87
89
|
specification_version: 4
|
88
90
|
summary: This filter will resolve any IP addresses from a field of your choosing.
|