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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d8d89ca168ed0ebf323797e15f3fccdc42f25e8
4
- data.tar.gz: 088c46969a6855d284b4a343ed81379d5600bc33
3
+ metadata.gz: 5530fee036b7a8c858288a6978937a9fb79f16d1
4
+ data.tar.gz: b0fa42a9d9f67d2bbcb280a76961f993aa31aac0
5
5
  SHA512:
6
- metadata.gz: 23c8a2066af25344e1e4f4226bb07583175a1b5566ebb342d97704dbd77f21fcc1a688edb23d49d2a1c9df7a946d04ecbe5c930f3463759cd1d4a4a829ecf4f3
7
- data.tar.gz: 901f9323aed42e79b60a9fd10798372babe2ec439fbb2808456172b1dc22fae198310ce887eb5f0cb22e449f687adb41e3d54709f5352b38e50c4ba5c61fa039
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
- gem "pry", :group => :development
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
@@ -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: ../../../logstash/docs/include
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
  &nbsp;
@@ -233,4 +233,5 @@ Basic Auth - username
233
233
 
234
234
 
235
235
 
236
- include::{include_path}/{type}.asciidoc[]
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['duration_hrs'] = (event['@timestamp'] - event['started']) / 3600 rescue nil"
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 => ["[started]", "ISO8601"]
58
- # target => "[started]"
57
+ # match => ["started", "ISO8601"]
58
+ # target => "started"
59
59
  # }
60
60
  #
61
61
  # ruby {
62
- # code => "event['duration_hrs'] = (event['@timestamp'] - event['started']) / 3600 rescue nil"
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.3'
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.3
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-05-03 00:00:00.000000000 Z
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