logstash-filter-webservicemap 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +23 -97
- data/lib/logstash/filters/webservicemap.rb +2 -1
- data/logstash-filter-webservicemap.gemspec +10 -5
- metadata +11 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 009fa38e90a0943d18e1bdadf9a066ee05b999d7
|
4
|
+
data.tar.gz: 1be5d62a0405de29e005f1c86620698e619bea51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db0369bf193ee29f18459400d0b702301b4e78ad1a26e5f02541558c709486f1e3f2079493bd76ef4916d2360bf5211004acd8dd82496c063c2d9e2085bc15bd
|
7
|
+
data.tar.gz: 79060c52b89275ed23323b536bfd3d984b42187f969710a6ebbda9fc18beac42e9fd5e636fae83fccc37866fb53c2a85a0271911fbf8630d5078fd4ff7fa5974
|
data/README.md
CHANGED
@@ -6,103 +6,10 @@ It is fully free and fully open source. The license is Apache 2.0, meaning you a
|
|
6
6
|
|
7
7
|
## Example
|
8
8
|
### 1. Web Service Example
|
9
|
-
|
10
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
11
|
-
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
12
|
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
13
|
-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
14
|
-
<modelVersion>4.0.0</modelVersion>
|
15
|
-
|
16
|
-
<groupId>es.nangel.logstash.webservicemap</groupId>
|
17
|
-
<artifactId>test</artifactId>
|
18
|
-
<version>1.0-SNAPSHOT</version>
|
19
|
-
|
20
|
-
<parent>
|
21
|
-
<groupId>org.springframework.boot</groupId>
|
22
|
-
<artifactId>spring-boot-starter-parent</artifactId>
|
23
|
-
<version>1.3.3.RELEASE</version>
|
24
|
-
</parent>
|
25
|
-
|
26
|
-
<dependencies>
|
27
|
-
<dependency>
|
28
|
-
<groupId>org.springframework.boot</groupId>
|
29
|
-
<artifactId>spring-boot-starter-web</artifactId>
|
30
|
-
</dependency>
|
31
|
-
<dependency>
|
32
|
-
<groupId>com.fasterxml.jackson.dataformat</groupId>
|
33
|
-
<artifactId>jackson-dataformat-csv</artifactId>
|
34
|
-
<version>2.6.5</version>
|
35
|
-
</dependency>
|
36
|
-
<dependency>
|
37
|
-
<groupId>com.fasterxml.jackson.dataformat</groupId>
|
38
|
-
<artifactId>jackson-dataformat-xml</artifactId>
|
39
|
-
<version>2.6.5</version>
|
40
|
-
</dependency>
|
41
|
-
<dependency>
|
42
|
-
<groupId>com.fasterxml.jackson.dataformat</groupId>
|
43
|
-
<artifactId>jackson-dataformat-yaml</artifactId>
|
44
|
-
<version>2.6.5</version>
|
45
|
-
</dependency>
|
46
|
-
<dependency>
|
47
|
-
<groupId>org.codehaus.jackson</groupId>
|
48
|
-
<artifactId>jackson-core-asl</artifactId>
|
49
|
-
<version>1.9.13</version>
|
50
|
-
</dependency>
|
51
|
-
|
52
|
-
<dependency>
|
53
|
-
<groupId>org.codehaus.jackson</groupId>
|
54
|
-
<artifactId>jackson-mapper-asl</artifactId>
|
55
|
-
<version>1.9.13</version>
|
56
|
-
</dependency>
|
57
|
-
</dependencies>
|
58
|
-
<properties>
|
59
|
-
<java.version>1.8</java.version>
|
60
|
-
</properties>
|
61
|
-
<build>
|
62
|
-
<plugins>
|
63
|
-
<plugin>
|
64
|
-
<groupId>org.springframework.boot</groupId>
|
65
|
-
<artifactId>spring-boot-maven-plugin</artifactId>
|
66
|
-
</plugin>
|
67
|
-
</plugins>
|
68
|
-
</build>
|
69
|
-
</project>
|
70
|
-
|
71
|
-
#### Test.java
|
72
|
-
package es.nangel.logstash.webservicemap.test;
|
73
|
-
|
74
|
-
import org.springframework.boot.SpringApplication;
|
75
|
-
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
76
|
-
|
77
|
-
@SpringBootApplication
|
78
|
-
public class Test {
|
79
|
-
public static void main(String[] args) {
|
80
|
-
SpringApplication.run(Test.class, args);
|
81
|
-
}
|
82
|
-
}
|
83
|
-
|
84
|
-
#### TestController.java
|
85
|
-
package es.nangel.logstash.webservicemap.test;
|
86
|
-
|
87
|
-
import org.springframework.web.bind.annotation.RequestMapping;
|
88
|
-
import org.springframework.web.bind.annotation.RestController;
|
89
|
-
|
90
|
-
import java.util.HashMap;
|
91
|
-
import java.util.Map;
|
92
|
-
|
93
|
-
@RestController
|
94
|
-
public class TestController {
|
95
|
-
|
96
|
-
@RequestMapping(value = "/json", produces = "application/json")
|
97
|
-
public Map<String, String> getElementJSON() {
|
98
|
-
Map<String, String> toReturn = new HashMap<>();
|
99
|
-
toReturn.put("200", "OK");
|
100
|
-
return toReturn;
|
101
|
-
}
|
102
|
-
}
|
9
|
+
See examples/webservice/java
|
103
10
|
|
104
11
|
### 2. Logstash config example
|
105
|
-
|
12
|
+
```
|
106
13
|
input {
|
107
14
|
stdin{}
|
108
15
|
}
|
@@ -119,16 +26,35 @@ output {
|
|
119
26
|
|
120
27
|
}
|
121
28
|
}
|
122
|
-
|
29
|
+
```
|
123
30
|
### 3. Execution example
|
124
31
|
Install with bin/plugin install logstash-filter-webservicemap
|
32
|
+
```sh
|
125
33
|
bin/logstash -f config/myconf.conf --log logstash.log --debug
|
34
|
+
```
|
126
35
|
|
127
36
|
### 4. Results
|
128
37
|
#### Input
|
129
38
|
200
|
39
|
+
|
130
40
|
#### Output
|
131
|
-
|
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
|
+
```
|
132
58
|
|
133
59
|
### 5. Update
|
134
60
|
bin/plugin update logstash-filter-webservicemap
|
@@ -21,7 +21,7 @@ require 'csv'
|
|
21
21
|
|
22
22
|
class LogStash::Filters::WebServiceMap < LogStash::Filters::Base
|
23
23
|
config_name "webservicemap"
|
24
|
-
|
24
|
+
warn "[DEPRECATION] This gem has been renamed to logstash-filter-lookup and will no longer be supported. Please switch to logstash-filter-lookup as soon as possible."
|
25
25
|
# The name of the logstash event field containing the value to be compared for a
|
26
26
|
# match by the map filter (e.g. `message`, `host`, `response_code`).
|
27
27
|
#
|
@@ -73,6 +73,7 @@ class LogStash::Filters::WebServiceMap < LogStash::Filters::Base
|
|
73
73
|
|
74
74
|
public
|
75
75
|
def register
|
76
|
+
warn "[DEPRECATION] This gem has been renamed to logstash-filter-lookup and will no longer be supported. Please switch to logstash-filter-lookup as soon as possible."
|
76
77
|
@my_map = {}
|
77
78
|
@next_refresh = Time.now + @refresh_interval
|
78
79
|
download_ws(@map_url, true)
|
@@ -1,10 +1,11 @@
|
|
1
|
-
|
1
|
+
warn "[DEPRECATION] This gem has been renamed to logstash-filter-lookup and will no longer be supported. Please switch to logstash-filter-lookup as soon as possible."
|
2
2
|
|
3
|
+
Gem::Specification.new do |s|
|
3
4
|
s.name = 'logstash-filter-webservicemap'
|
4
|
-
s.version = '1.1.
|
5
|
+
s.version = '1.1.1'
|
5
6
|
s.licenses = ['Apache License (2.0)']
|
6
7
|
s.summary = "A general search and replace tool which uses a configured web service to determine replacement values."
|
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 logstash-filter-webservicemap. This gem is not a stand-alone program. See https://github.com/angel9484/logstash-filter-webservicemap"
|
8
|
+
s.description = "[DEPRECATION] This gem has been renamed to logstash-filter-lookup and will no longer be supported. Please switch to logstash-filter-lookup as soon as possible. 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-webservicemap. This gem is not a stand-alone program. See https://github.com/angel9484/logstash-filter-webservicemap"
|
8
9
|
s.authors = ["Elastic"]
|
9
10
|
s.email = 'info@elastic.co'
|
10
11
|
s.homepage = "http://www.elastic.co/guide/en/logstash/current/index.html"
|
@@ -23,5 +24,9 @@ Gem::Specification.new do |s|
|
|
23
24
|
s.add_runtime_dependency "logstash-core", ">= 2.0.0.beta2", "< 3.0.0"
|
24
25
|
|
25
26
|
s.add_development_dependency 'logstash-devutils'
|
26
|
-
|
27
|
-
|
27
|
+
s.post_install_message = <<-MESSAGE
|
28
|
+
! The 'logstash-filter-webservicemap' gem has been deprecated and has been replaced by 'logstash-filter-lookup'.
|
29
|
+
! See: https://rubygems.org/gems/logstash-filter-lookup
|
30
|
+
! And: https://github.com/angel9484/logstash-filter-lookup
|
31
|
+
MESSAGE
|
32
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-filter-webservicemap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,7 +44,11 @@ dependencies:
|
|
44
44
|
- - '>='
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '0'
|
47
|
-
description: This gem
|
47
|
+
description: '[DEPRECATION] This gem has been renamed to logstash-filter-lookup and
|
48
|
+
will no longer be supported. Please switch to logstash-filter-lookup as soon as
|
49
|
+
possible. This gem is a logstash plugin required to be installed on top of the Logstash
|
50
|
+
core pipeline using $LS_HOME/bin/plugin install logstash-filter-webservicemap. This
|
51
|
+
gem is not a stand-alone program. See https://github.com/angel9484/logstash-filter-webservicemap'
|
48
52
|
email: info@elastic.co
|
49
53
|
executables: []
|
50
54
|
extensions: []
|
@@ -65,7 +69,10 @@ licenses:
|
|
65
69
|
metadata:
|
66
70
|
logstash_plugin: 'true'
|
67
71
|
logstash_group: filter
|
68
|
-
post_install_message:
|
72
|
+
post_install_message: |
|
73
|
+
! The 'logstash-filter-webservicemap' gem has been deprecated and has been replaced by 'logstash-filter-lookup'.
|
74
|
+
! See: https://rubygems.org/gems/logstash-filter-lookup
|
75
|
+
! And: https://github.com/angel9484/logstash-filter-lookup
|
69
76
|
rdoc_options: []
|
70
77
|
require_paths:
|
71
78
|
- lib
|