logstash-filter-webservicemap 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c9eaaf8a52e8c83dea14a5b67f02bbdaa195422
4
- data.tar.gz: 433bb4b6b1c63d2ab289de75da9f0723289fd3e3
3
+ metadata.gz: 009fa38e90a0943d18e1bdadf9a066ee05b999d7
4
+ data.tar.gz: 1be5d62a0405de29e005f1c86620698e619bea51
5
5
  SHA512:
6
- metadata.gz: 4289a676827193aa4cbf99a99738e8ea43c1adc72cfe6c50142d9965edbad6c3fe6d8d7deb80dcf8aa2802a996b072463f1f8ecda433bb4f202ef966eed466b8
7
- data.tar.gz: ce25b367ae0e46440cf53f9ade30cfa93323aed8c94558856125f4075a8f9f8da870633ef45657ded0a8037b969986daeb7183afe4346149240bd6f42a3f2189
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
- #### pom.xml
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
- {:timestamp=>"2016-03-13T10:41:50.264000+0100", :message=>"output received", :event=>{"message"=>"200", "@version"=>"1", "@timestamp"=>"2016-03-13T09:41:49.493Z", "host"=>"Mac-mini-de-angel.local", "dest"=>"OK"}, :level=>:debug, :file=>"(eval)", :line=>"47", :method=>"output_func"}
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
- Gem::Specification.new do |s|
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.0'
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
- end
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.0
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-13 00:00:00.000000000 Z
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 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
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