logstash-filter-translate 3.0.0 → 3.0.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/CHANGELOG.md +3 -0
- data/lib/logstash/filters/translate.rb +14 -11
- data/logstash-filter-translate.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a88523429ce3660b177179da29ca3817bbe0e4fd
|
4
|
+
data.tar.gz: 69e3b1a02058d4876b2b2e8a3104f5d346ed81d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27cccb3185892156caac4e68bbbaa044837284505d33f0ca1b42b4a1b7bef478cda2927b86f03f4c1e62cafe6fc768050a9d8a2ce6a8bc11e70281ecb89eee57
|
7
|
+
data.tar.gz: 2938b6b48d5dc0159d9fe4236849b84bb8fcdf3878cf487324785881c503ca9d680b33375121cb6188ceb9fde515604e9e50f90b2d1d38ab3b65367ded3f788e
|
data/CHANGELOG.md
CHANGED
@@ -7,9 +7,9 @@ require "csv"
|
|
7
7
|
java_import 'java.util.concurrent.locks.ReentrantReadWriteLock'
|
8
8
|
|
9
9
|
|
10
|
-
# A general search and replace tool
|
10
|
+
# A general search and replace tool that uses a configured hash
|
11
11
|
# and/or a file to determine replacement values. Currently supported are
|
12
|
-
# YAML, JSON and CSV files.
|
12
|
+
# YAML, JSON, and CSV files.
|
13
13
|
#
|
14
14
|
# The dictionary entries can be specified in one of two ways: First,
|
15
15
|
# the `dictionary` configuration item may contain a hash representing
|
@@ -45,7 +45,8 @@ class LogStash::Filters::Translate < LogStash::Filters::Base
|
|
45
45
|
config :override, :validate => :boolean, :default => false
|
46
46
|
|
47
47
|
# The dictionary to use for translation, when specified in the logstash filter
|
48
|
-
# configuration item (i.e. do not use the `@dictionary_path` file)
|
48
|
+
# configuration item (i.e. do not use the `@dictionary_path` file).
|
49
|
+
#
|
49
50
|
# Example:
|
50
51
|
# [source,ruby]
|
51
52
|
# filter {
|
@@ -56,11 +57,12 @@ class LogStash::Filters::Translate < LogStash::Filters::Base
|
|
56
57
|
# "old version", "new version" ]
|
57
58
|
# }
|
58
59
|
# }
|
59
|
-
#
|
60
|
+
#
|
61
|
+
# NOTE: It is an error to specify both `dictionary` and `dictionary_path`.
|
60
62
|
config :dictionary, :validate => :hash, :default => {}
|
61
63
|
|
62
64
|
# The full path of the external dictionary file. The format of the table
|
63
|
-
# should be a standard YAML, JSON or CSV. Make sure you specify any integer-based keys
|
65
|
+
# should be a standard YAML, JSON, or CSV. Make sure you specify any integer-based keys
|
64
66
|
# in quotes. For example, the YAML file should look something like this:
|
65
67
|
# [source,ruby]
|
66
68
|
# "100": Continue
|
@@ -68,12 +70,13 @@ class LogStash::Filters::Translate < LogStash::Filters::Base
|
|
68
70
|
# merci: gracias
|
69
71
|
# old version: new version
|
70
72
|
#
|
71
|
-
# NOTE: it is an error to specify both `dictionary` and `dictionary_path
|
72
|
-
#
|
73
|
-
#
|
74
|
-
#
|
75
|
-
#
|
76
|
-
#
|
73
|
+
# NOTE: it is an error to specify both `dictionary` and `dictionary_path`.
|
74
|
+
#
|
75
|
+
# The currently supported formats are YAML, JSON, and CSV. Format selection is
|
76
|
+
# based on the file extension: `json` for JSON, `yaml` or `yml` for YAML, and
|
77
|
+
# `csv` for CSV. The JSON format only supports simple key/value, unnested
|
78
|
+
# objects. The CSV format expects exactly two columns, with the first serving
|
79
|
+
# as the original text, and the second column as the replacement.
|
77
80
|
config :dictionary_path, :validate => :path
|
78
81
|
|
79
82
|
# When using a dictionary file, this setting will indicate how frequently
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-filter-translate'
|
4
|
-
s.version = '3.0.
|
4
|
+
s.version = '3.0.1'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "A general search and replace tool which uses a configured hash and/or a YAML file to determine replacement values."
|
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/logstash-plugin install gemname. This gem is not a stand-alone program"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-filter-translate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.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-
|
11
|
+
date: 2016-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|