logstash-filter-cidr 3.0.0-java → 3.0.1-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +10 -1
- data/docs/index.asciidoc +80 -0
- data/logstash-filter-cidr.gemspec +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89eecd70d9c1be0d9a0bc35a8f5d30455e5e7910
|
4
|
+
data.tar.gz: 3701266a7423de28509ff85ee77585e920dd0a6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 536ca051afef22b7fa5ee4d66cc1dad42254c8f99e02795326a6059331f77ccb1463e36d5d9f2d4530c3d47f0329dcf779c0ab7befb54d5a3bc0fc37897846a3
|
7
|
+
data.tar.gz: 1aee1f5d2ff46b5c08bc68e696e85e98ff11d65e57ea5c0b38cc3d2b8d1a6f959df3595083feb5ad75f6ad8fac8b397eaab338e4018f35aa8ff78e1a6d6fe843
|
data/Gemfile
CHANGED
@@ -1,2 +1,11 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
|
-
|
2
|
+
|
3
|
+
gemspec
|
4
|
+
|
5
|
+
logstash_path = ENV["LOGSTASH_PATH"] || "../../logstash"
|
6
|
+
use_logstash_source = ENV["LOGSTASH_SOURCE"] && ENV["LOGSTASH_SOURCE"].to_s == "1"
|
7
|
+
|
8
|
+
if Dir.exist?(logstash_path) && use_logstash_source
|
9
|
+
gem 'logstash-core', :path => "#{logstash_path}/logstash-core"
|
10
|
+
gem 'logstash-core-plugin-api', :path => "#{logstash_path}/logstash-core-plugin-api"
|
11
|
+
end
|
data/docs/index.asciidoc
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
:plugin: cidr
|
2
|
+
:type: filter
|
3
|
+
|
4
|
+
///////////////////////////////////////////
|
5
|
+
START - GENERATED VARIABLES, DO NOT EDIT!
|
6
|
+
///////////////////////////////////////////
|
7
|
+
:version: %VERSION%
|
8
|
+
:release_date: %RELEASE_DATE%
|
9
|
+
:changelog_url: %CHANGELOG_URL%
|
10
|
+
:include_path: ../../../../logstash/docs/include
|
11
|
+
///////////////////////////////////////////
|
12
|
+
END - GENERATED VARIABLES, DO NOT EDIT!
|
13
|
+
///////////////////////////////////////////
|
14
|
+
|
15
|
+
[id="plugins-{type}-{plugin}"]
|
16
|
+
|
17
|
+
=== Cidr filter plugin
|
18
|
+
|
19
|
+
include::{include_path}/plugin_header.asciidoc[]
|
20
|
+
|
21
|
+
==== Description
|
22
|
+
|
23
|
+
The CIDR filter is for checking IP addresses in events against a list of
|
24
|
+
network blocks that might contain it. Multiple addresses can be checked
|
25
|
+
against multiple networks, any match succeeds. Upon success additional tags
|
26
|
+
and/or fields can be added to the event.
|
27
|
+
|
28
|
+
[id="plugins-{type}s-{plugin}-options"]
|
29
|
+
==== Cidr Filter Configuration Options
|
30
|
+
|
31
|
+
This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
|
32
|
+
|
33
|
+
[cols="<,<,<",options="header",]
|
34
|
+
|=======================================================================
|
35
|
+
|Setting |Input type|Required
|
36
|
+
| <<plugins-{type}s-{plugin}-address>> |<<array,array>>|No
|
37
|
+
| <<plugins-{type}s-{plugin}-network>> |<<array,array>>|No
|
38
|
+
|=======================================================================
|
39
|
+
|
40
|
+
Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
|
41
|
+
filter plugins.
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
[id="plugins-{type}s-{plugin}-address"]
|
46
|
+
===== `address`
|
47
|
+
|
48
|
+
* Value type is <<array,array>>
|
49
|
+
* Default value is `[]`
|
50
|
+
|
51
|
+
The IP address(es) to check with. Example:
|
52
|
+
[source,ruby]
|
53
|
+
filter {
|
54
|
+
cidr {
|
55
|
+
add_tag => [ "testnet" ]
|
56
|
+
address => [ "%{src_ip}", "%{dst_ip}" ]
|
57
|
+
network => [ "192.0.2.0/24" ]
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
[id="plugins-{type}s-{plugin}-network"]
|
62
|
+
===== `network`
|
63
|
+
|
64
|
+
* Value type is <<array,array>>
|
65
|
+
* Default value is `[]`
|
66
|
+
|
67
|
+
The IP network(s) to check against. Example:
|
68
|
+
[source,ruby]
|
69
|
+
filter {
|
70
|
+
cidr {
|
71
|
+
add_tag => [ "linklocal" ]
|
72
|
+
address => [ "%{clientip}" ]
|
73
|
+
network => [ "169.254.0.0/16", "fe80::/64" ]
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
[id="plugins-{type}s-{plugin}-common-options"]
|
80
|
+
include::{include_path}/{type}.asciidoc[]
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-filter-cidr'
|
4
|
-
s.version = '3.0.
|
4
|
+
s.version = '3.0.1'
|
5
5
|
s.platform = 'java'
|
6
6
|
s.licenses = ['Apache License (2.0)']
|
7
7
|
s.summary = "The CIDR filter is for checking IP addresses in events against a list of network blocks that might contain it."
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
|
14
14
|
# Files
|
15
|
-
s.files = Dir[
|
15
|
+
s.files = Dir["lib/**/*","spec/**/*","*.gemspec","*.md","CONTRIBUTORS","Gemfile","LICENSE","NOTICE.TXT", "vendor/jar-dependencies/**/*.jar", "vendor/jar-dependencies/**/*.rb", "VERSION", "docs/**/*"]
|
16
16
|
|
17
17
|
# Tests
|
18
18
|
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-filter-cidr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -56,6 +56,7 @@ files:
|
|
56
56
|
- LICENSE
|
57
57
|
- NOTICE.TXT
|
58
58
|
- README.md
|
59
|
+
- docs/index.asciidoc
|
59
60
|
- lib/logstash/filters/cidr.rb
|
60
61
|
- logstash-filter-cidr.gemspec
|
61
62
|
- spec/filters/cidr_spec.rb
|