logstash-filter-punct 2.0.4 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -6
- data/Gemfile +10 -1
- data/LICENSE +1 -1
- data/README.md +16 -4
- data/docs/index.asciidoc +62 -0
- data/logstash-filter-punct.gemspec +3 -3
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7db786bcedb3624ff56ccb0273efbf710e392f88
|
4
|
+
data.tar.gz: 3569887b33c53950ebeb5c30920dba5a96c26c5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 954d3d459effc61672bdbe150ae50f2687b9d0168b32c29743b24969a103523f76b2446f7d2b7b1bf9b39c3b0bdef20d5c160f14c561d471fb6f97df5380e909
|
7
|
+
data.tar.gz: 39bc6f51211f65aeaecc2f3817b1fa3a0e90564322f7af3f0c2d45d5e428532002143dc4657cd02932c04b3a8a5b9d6f38635d2b0b66b8763c8da58f815c6597
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
## 2.0.4
|
2
|
+
- internal,deps: Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
|
3
|
+
|
4
|
+
## 2.0.3
|
5
|
+
- internal,deps: New dependency requirements for logstash-core for the 5.0 release
|
6
|
+
|
5
7
|
## 2.0.0
|
6
|
-
- Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
|
8
|
+
- internal: Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
|
7
9
|
instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
|
8
|
-
- Dependency on logstash-core update to 2.0
|
10
|
+
- internal,deps: Dependency on logstash-core update to 2.0
|
9
11
|
|
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/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
+
|
2
|
+
### This plugin is deprecated and will be deleted. Please use fingerprint
|
3
|
+
|
1
4
|
# Logstash Plugin
|
2
5
|
|
3
|
-
[![Build
|
4
|
-
Status](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Filters/job/logstash-plugin-filter-punct-unit/badge/icon)](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Filters/job/logstash-plugin-filter-punct-unit/)
|
6
|
+
[![Travis Build Status](https://travis-ci.org/logstash-plugins/logstash-filter-punct.svg)](https://travis-ci.org/logstash-plugins/logstash-filter-punct)
|
5
7
|
|
6
8
|
This is a plugin for [Logstash](https://github.com/elastic/logstash).
|
7
9
|
|
@@ -56,7 +58,12 @@ gem "logstash-filter-awesome", :path => "/your/local/logstash-filter-awesome"
|
|
56
58
|
```
|
57
59
|
- Install plugin
|
58
60
|
```sh
|
61
|
+
# Logstash 2.3 and higher
|
62
|
+
bin/logstash-plugin install --no-verify
|
63
|
+
|
64
|
+
# Prior to Logstash 2.3
|
59
65
|
bin/plugin install --no-verify
|
66
|
+
|
60
67
|
```
|
61
68
|
- Run Logstash with your plugin
|
62
69
|
```sh
|
@@ -74,7 +81,12 @@ gem build logstash-filter-awesome.gemspec
|
|
74
81
|
```
|
75
82
|
- Install the plugin from the Logstash home
|
76
83
|
```sh
|
77
|
-
|
84
|
+
# Logstash 2.3 and higher
|
85
|
+
bin/logstash-plugin install --no-verify
|
86
|
+
|
87
|
+
# Prior to Logstash 2.3
|
88
|
+
bin/plugin install --no-verify
|
89
|
+
|
78
90
|
```
|
79
91
|
- Start Logstash and proceed to test the plugin
|
80
92
|
|
@@ -86,4 +98,4 @@ Programming is not a required skill. Whatever you've seen about open source and
|
|
86
98
|
|
87
99
|
It is more important to the community that you are able to contribute.
|
88
100
|
|
89
|
-
For more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/master/CONTRIBUTING.md) file.
|
101
|
+
For more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/master/CONTRIBUTING.md) file.
|
data/docs/index.asciidoc
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
:plugin: punct
|
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
|
+
=== Punct filter plugin
|
18
|
+
|
19
|
+
include::{include_path}/plugin_header.asciidoc[]
|
20
|
+
|
21
|
+
==== Description
|
22
|
+
|
23
|
+
Strip everything but punctuation from a field and store the remainder in the
|
24
|
+
a separate field. This is often used for fingerprinting log events.
|
25
|
+
|
26
|
+
[id="plugins-{type}s-{plugin}-options"]
|
27
|
+
==== Punct Filter Configuration Options
|
28
|
+
|
29
|
+
This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
|
30
|
+
|
31
|
+
[cols="<,<,<",options="header",]
|
32
|
+
|=======================================================================
|
33
|
+
|Setting |Input type|Required
|
34
|
+
| <<plugins-{type}s-{plugin}-source>> |<<string,string>>|No
|
35
|
+
| <<plugins-{type}s-{plugin}-target>> |<<string,string>>|No
|
36
|
+
|=======================================================================
|
37
|
+
|
38
|
+
Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
|
39
|
+
filter plugins.
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
[id="plugins-{type}s-{plugin}-source"]
|
44
|
+
===== `source`
|
45
|
+
|
46
|
+
* Value type is <<string,string>>
|
47
|
+
* Default value is `"message"`
|
48
|
+
|
49
|
+
The field reference to use for punctuation stripping
|
50
|
+
|
51
|
+
[id="plugins-{type}s-{plugin}-target"]
|
52
|
+
===== `target`
|
53
|
+
|
54
|
+
* Value type is <<string,string>>
|
55
|
+
* Default value is `"punct"`
|
56
|
+
|
57
|
+
The field to store the result.
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
[id="plugins-{type}s-{plugin}-common-options"]
|
62
|
+
include::{include_path}/{type}.asciidoc[]
|
@@ -1,17 +1,17 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-filter-punct'
|
4
|
-
s.version = '2.0.
|
4
|
+
s.version = '2.0.5'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "Strip everything but punctuation from a field and store the remainder in a separate field. This is often used for fingerprinting log events."
|
7
|
-
s.description = "This gem is a
|
7
|
+
s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
|
8
8
|
s.authors = ["Elastic"]
|
9
9
|
s.email = 'info@elastic.co'
|
10
10
|
s.homepage = "http://www.elastic.co/guide/en/logstash/current/index.html"
|
11
11
|
s.require_paths = ["lib"]
|
12
12
|
|
13
13
|
# Files
|
14
|
-
s.files = Dir[
|
14
|
+
s.files = Dir["lib/**/*","spec/**/*","*.gemspec","*.md","CONTRIBUTORS","Gemfile","LICENSE","NOTICE.TXT", "vendor/jar-dependencies/**/*.jar", "vendor/jar-dependencies/**/*.rb", "VERSION", "docs/**/*"]
|
15
15
|
|
16
16
|
# Tests
|
17
17
|
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-punct
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.5
|
5
5
|
platform: ruby
|
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
|
@@ -38,7 +38,7 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
-
description: This gem is a
|
41
|
+
description: This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program
|
42
42
|
email: info@elastic.co
|
43
43
|
executables: []
|
44
44
|
extensions: []
|
@@ -50,6 +50,7 @@ files:
|
|
50
50
|
- LICENSE
|
51
51
|
- NOTICE.TXT
|
52
52
|
- README.md
|
53
|
+
- docs/index.asciidoc
|
53
54
|
- lib/logstash/filters/punct.rb
|
54
55
|
- logstash-filter-punct.gemspec
|
55
56
|
- spec/filters/punct_spec.rb
|