logstash-codec-cloudfront 2.0.4 → 3.0.0

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: 675de2681748aee1d52a93445b09bcfc72dce3e5
4
- data.tar.gz: 432359236ec612dcac6cc5db2bea49f5d9d56985
3
+ metadata.gz: 89e0bca25fc337522cf30c7c073194192f14aa1c
4
+ data.tar.gz: d2944ca8640d561fb3a0c9ae71834cd639953e2b
5
5
  SHA512:
6
- metadata.gz: a9cbba7acb093726a0d0cd0473b169cd52961fc78f4c0fde33a45519cac0fd886fc0165426c9d461d3abdd0eca13f6e8b83c8a0f644519a73bc3a9b9e99e5bcc
7
- data.tar.gz: 646866528ae36daa3e2c84f6e8735ad861a4084ba7731256bb7be8fe27f402981214718d780b47fe05d1343e25be197a859fa399b4d2c6588d2b16ad65acf93e
6
+ metadata.gz: c377e16e0195dea624b998af8c3f38d11c5f4188212ee9232a6bd293b673f5fc0164bf66e7afd908b0947176b29e7371275fb0ba4a7f36f51e78fab9dbb058d0
7
+ data.tar.gz: 68506db0c367f98170394da2817b438082dc509ce436e616458e7c9eb15813e08d507dbf4bf11fcdef9dbe25f4b1edad31b6d97cd23c78f530372bff0fc9cd1a
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012–2015 Elasticsearch <http://www.elastic.co>
1
+ Copyright (c) 2012–2016 Elasticsearch <http://www.elastic.co>
2
2
 
3
3
  Licensed under the Apache License, Version 2.0 (the "License");
4
4
  you may not use this file except in compliance with the License.
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # Logstash Plugin
2
2
 
3
- [![Build
4
- Status](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Codecs/job/logstash-plugin-codec-cloudfront-unit/badge/icon)](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Codecs/job/logstash-plugin-codec-cloudfront-unit/)
3
+ [![Travis Build Status](https://travis-ci.org/logstash-plugins/logstash-codec-cloudfront.svg)](https://travis-ci.org/logstash-plugins/logstash-codec-cloudfront)
5
4
 
6
5
  This is a plugin for [Logstash](https://github.com/elastic/logstash).
7
6
 
@@ -56,7 +55,12 @@ gem "logstash-filter-awesome", :path => "/your/local/logstash-filter-awesome"
56
55
  ```
57
56
  - Install plugin
58
57
  ```sh
58
+ # Logstash 2.3 and higher
59
+ bin/logstash-plugin install --no-verify
60
+
61
+ # Prior to Logstash 2.3
59
62
  bin/plugin install --no-verify
63
+
60
64
  ```
61
65
  - Run Logstash with your plugin
62
66
  ```sh
@@ -74,7 +78,12 @@ gem build logstash-filter-awesome.gemspec
74
78
  ```
75
79
  - Install the plugin from the Logstash home
76
80
  ```sh
77
- bin/plugin install /your/local/plugin/logstash-filter-awesome.gem
81
+ # Logstash 2.3 and higher
82
+ bin/logstash-plugin install --no-verify
83
+
84
+ # Prior to Logstash 2.3
85
+ bin/plugin install --no-verify
86
+
78
87
  ```
79
88
  - Start Logstash and proceed to test the plugin
80
89
 
@@ -50,8 +50,8 @@ class LogStash::Codecs::Cloudfront < LogStash::Codecs::Base
50
50
  public
51
51
  def create_event(line, metadata)
52
52
  event = LogStash::Event.new("message" => @converter.convert(line))
53
- event["cloudfront_version"] = metadata["cloudfront_version"]
54
- event["cloudfront_fields"] = metadata["cloudfront_fields"]
53
+ event.set("cloudfront_version", metadata["cloudfront_version"])
54
+ event.set("cloudfront_fields", metadata["cloudfront_fields"])
55
55
  event
56
56
  end
57
57
 
@@ -1,10 +1,10 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-codec-cloudfront'
4
- s.version = '2.0.4'
4
+ s.version = '3.0.0'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "This codec may be used to decode (via inputs) cloudfront gziped files"
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 gemname. This gem is not a stand-alone program"
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"
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.metadata = { "logstash_plugin" => "true", "logstash_group" => "codec" }
21
21
 
22
22
  # Gem dependencies
23
- s.add_runtime_dependency "logstash-core-plugin-api", "~> 1.0"
23
+ s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"
24
24
 
25
25
  s.add_development_dependency 'logstash-devutils'
26
26
  s.add_development_dependency 'logstash-codec-plain'
@@ -50,8 +50,8 @@ describe LogStash::Codecs::Cloudfront do
50
50
  events << event
51
51
  end
52
52
 
53
- expect(events.first["cloudfront_version"]).to eq("1.0")
54
- expect(events.first["cloudfront_fields"]).to eq("date time x-edge-location c-ip x-event sc-bytes x-cf-status x-cf-client-id cs-uri-stem cs-uri-query c-referrer x-page-url​ c-user-agent x-sname x-sname-query x-file-ext x-sid")
53
+ expect(events.first.get("cloudfront_version")).to eq("1.0")
54
+ expect(events.first.get("cloudfront_fields")).to eq("date time x-edge-location c-ip x-event sc-bytes x-cf-status x-cf-client-id cs-uri-stem cs-uri-query c-referrer x-page-url​ c-user-agent x-sname x-sname-query x-file-ext x-sid")
55
55
  end
56
56
  end
57
57
 
metadata CHANGED
@@ -1,58 +1,64 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-codec-cloudfront
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 3.0.0
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-24 00:00:00.000000000 Z
11
+ date: 2017-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
+ name: logstash-core-plugin-api
15
+ version_requirements: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '1.60'
20
+ - - "<="
21
+ - !ruby/object:Gem::Version
22
+ version: '2.99'
14
23
  requirement: !ruby/object:Gem::Requirement
15
24
  requirements:
16
- - - "~>"
25
+ - - ">="
17
26
  - !ruby/object:Gem::Version
18
- version: '1.0'
19
- name: logstash-core-plugin-api
27
+ version: '1.60'
28
+ - - "<="
29
+ - !ruby/object:Gem::Version
30
+ version: '2.99'
20
31
  prerelease: false
21
32
  type: :runtime
33
+ - !ruby/object:Gem::Dependency
34
+ name: logstash-devutils
22
35
  version_requirements: !ruby/object:Gem::Requirement
23
36
  requirements:
24
- - - "~>"
37
+ - - ">="
25
38
  - !ruby/object:Gem::Version
26
- version: '1.0'
27
- - !ruby/object:Gem::Dependency
39
+ version: '0'
28
40
  requirement: !ruby/object:Gem::Requirement
29
41
  requirements:
30
42
  - - ">="
31
43
  - !ruby/object:Gem::Version
32
44
  version: '0'
33
- name: logstash-devutils
34
45
  prerelease: false
35
46
  type: :development
47
+ - !ruby/object:Gem::Dependency
48
+ name: logstash-codec-plain
36
49
  version_requirements: !ruby/object:Gem::Requirement
37
50
  requirements:
38
51
  - - ">="
39
52
  - !ruby/object:Gem::Version
40
53
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
54
  requirement: !ruby/object:Gem::Requirement
43
55
  requirements:
44
56
  - - ">="
45
57
  - !ruby/object:Gem::Version
46
58
  version: '0'
47
- name: logstash-codec-plain
48
59
  prerelease: false
49
60
  type: :development
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- description: This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program
61
+ 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
56
62
  email: info@elastic.co
57
63
  executables: []
58
64
  extensions: []