logstash-filter-elasticsearch 3.1.3 → 3.1.4
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/Gemfile +9 -1
- data/docs/index.asciidoc +6 -5
- data/lib/logstash/filters/elasticsearch.rb +4 -4
- data/logstash-filter-elasticsearch.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: 5530fee036b7a8c858288a6978937a9fb79f16d1
|
|
4
|
+
data.tar.gz: b0fa42a9d9f67d2bbcb280a76961f993aa31aac0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6d546ddea90b7def6977617aab2310960b339145ecc437d341040ea826e6d161ff0442b6c045cd44e84007fa1ec0f9ab3fc4a5440726a09aa2e0cfe8cfdebb34
|
|
7
|
+
data.tar.gz: fc67470d7d52436e936ee7821b519fa7597f280923e3a2cd7c8df92f34b43211346b12de24e6638a4cec7d7966d11bd500bdddd4b764ad199dfb5567a6f9233c
|
data/Gemfile
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
source 'https://rubygems.org'
|
|
2
|
+
|
|
2
3
|
gemspec
|
|
3
|
-
|
|
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
CHANGED
|
@@ -7,14 +7,14 @@ START - GENERATED VARIABLES, DO NOT EDIT!
|
|
|
7
7
|
:version: %VERSION%
|
|
8
8
|
:release_date: %RELEASE_DATE%
|
|
9
9
|
:changelog_url: %CHANGELOG_URL%
|
|
10
|
-
:include_path:
|
|
10
|
+
:include_path: ../../../../logstash/docs/include
|
|
11
11
|
///////////////////////////////////////////
|
|
12
12
|
END - GENERATED VARIABLES, DO NOT EDIT!
|
|
13
13
|
///////////////////////////////////////////
|
|
14
14
|
|
|
15
15
|
[id="plugins-{type}-{plugin}"]
|
|
16
16
|
|
|
17
|
-
=== Elasticsearch
|
|
17
|
+
=== Elasticsearch filter plugin
|
|
18
18
|
|
|
19
19
|
include::{include_path}/plugin_header.asciidoc[]
|
|
20
20
|
|
|
@@ -100,7 +100,7 @@ The template will be populated per event prior to being used to query Elasticsea
|
|
|
100
100
|
[id="plugins-{type}s-{plugin}-options"]
|
|
101
101
|
==== Elasticsearch Filter Configuration Options
|
|
102
102
|
|
|
103
|
-
This plugin supports the following configuration options plus the <<plugins-{type}s-common-options>> described later.
|
|
103
|
+
This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
|
|
104
104
|
|
|
105
105
|
[cols="<,<,<",options="header",]
|
|
106
106
|
|=======================================================================
|
|
@@ -120,7 +120,7 @@ This plugin supports the following configuration options plus the <<plugins-{typ
|
|
|
120
120
|
| <<plugins-{type}s-{plugin}-user>> |<<string,string>>|No
|
|
121
121
|
|=======================================================================
|
|
122
122
|
|
|
123
|
-
Also see <<plugins-{type}s-common-options>> for a list of options supported by all
|
|
123
|
+
Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
|
|
124
124
|
filter plugins.
|
|
125
125
|
|
|
126
126
|
|
|
@@ -233,4 +233,5 @@ Basic Auth - username
|
|
|
233
233
|
|
|
234
234
|
|
|
235
235
|
|
|
236
|
-
|
|
236
|
+
[id="plugins-{type}s-{plugin}-common-options"]
|
|
237
|
+
include::{include_path}/{type}.asciidoc[]
|
|
@@ -39,7 +39,7 @@ require "logstash/json"
|
|
|
39
39
|
# }
|
|
40
40
|
#
|
|
41
41
|
# ruby {
|
|
42
|
-
# code => "event
|
|
42
|
+
# code => "event.set('duration_hrs', (event.get('@timestamp') - event.get('started')) / 3600) rescue nil"
|
|
43
43
|
# }
|
|
44
44
|
# }
|
|
45
45
|
#
|
|
@@ -54,12 +54,12 @@ require "logstash/json"
|
|
|
54
54
|
# }
|
|
55
55
|
#
|
|
56
56
|
# date {
|
|
57
|
-
# match => ["
|
|
58
|
-
# target => "
|
|
57
|
+
# match => ["started", "ISO8601"]
|
|
58
|
+
# target => "started"
|
|
59
59
|
# }
|
|
60
60
|
#
|
|
61
61
|
# ruby {
|
|
62
|
-
# code => "event
|
|
62
|
+
# code => "event.set('duration_hrs', (event.get('@timestamp') - event.get('started')) / 3600) rescue nil"
|
|
63
63
|
# }
|
|
64
64
|
# }
|
|
65
65
|
#
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
|
|
3
3
|
s.name = 'logstash-filter-elasticsearch'
|
|
4
|
-
s.version = '3.1.
|
|
4
|
+
s.version = '3.1.4'
|
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
|
6
6
|
s.summary = "Search elasticsearch for a previous log event and copy some fields from it into the current event"
|
|
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-elasticsearch
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.1.
|
|
4
|
+
version: 3.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Elastic
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
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
|