logstash-codec-cloudtrail 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 +4 -4
- data/CHANGELOG.md +7 -2
- data/LICENSE +1 -1
- data/README.md +12 -3
- data/lib/logstash/codecs/cloudtrail.rb +12 -3
- data/logstash-codec-cloudtrail.gemspec +3 -5
- metadata +11 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66fe39690b94a06d219ebb9336943182a78507ab
|
4
|
+
data.tar.gz: 6e1cf5f5329d07d0379c565c2effde64fb27c6f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ef7b0e5573712cc8de3c87e5fdc8ebe246014fc69f855f759880a8f94ca571e63ff87b203bac053169d1ac9273d4121b87bd2fc944d8b011671aeaa6b79e6ba
|
7
|
+
data.tar.gz: b5e77fcbaba1bf52bdfd1fa1802fe8e0fa0b7256d12d26169e6a938942986896eba37788182f405412a209fa7e0a6ca5384b66ddc5ba5586d78c18b35a0bcf77
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,12 @@
|
|
1
|
-
|
1
|
+
## 3.0.0
|
2
|
+
- Update to support Logstash 2.4 & 5.0 APIs
|
3
|
+
|
4
|
+
## 2.0.4
|
2
5
|
- Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
|
3
|
-
|
6
|
+
|
7
|
+
## 2.0.3
|
4
8
|
- New dependency requirements for logstash-core for the 5.0 release
|
9
|
+
|
5
10
|
## 2.0.0
|
6
11
|
- Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
|
7
12
|
instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
|
data/LICENSE
CHANGED
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-cloudtrail-unit/badge/icon)](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Codecs/job/logstash-plugin-codec-cloudtrail-unit/)
|
3
|
+
[![Travis Build Status](https://travis-ci.org/logstash-plugins/logstash-codec-cloudtrail.svg)](https://travis-ci.org/logstash-plugins/logstash-codec-cloudtrail)
|
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
|
-
|
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
|
|
@@ -1,15 +1,24 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
require "logstash/codecs/base"
|
3
|
-
require "logstash/codecs/spool"
|
4
3
|
require "logstash/json"
|
4
|
+
require "logstash/util/charset"
|
5
5
|
|
6
6
|
# This is the base class for logstash codecs.
|
7
|
-
class LogStash::Codecs::CloudTrail < LogStash::Codecs::
|
7
|
+
class LogStash::Codecs::CloudTrail < LogStash::Codecs::Base
|
8
8
|
config_name "cloudtrail"
|
9
9
|
|
10
|
+
config :charset, :validate => ::Encoding.name_list, :default => "UTF-8"
|
11
|
+
|
12
|
+
public
|
13
|
+
def register
|
14
|
+
@converter = LogStash::Util::Charset.new(@charset)
|
15
|
+
@converter.logger = @logger
|
16
|
+
end
|
17
|
+
|
10
18
|
public
|
11
19
|
def decode(data)
|
12
|
-
|
20
|
+
decoded = LogStash::Json.load(@converter.convert(data))
|
21
|
+
decoded['Records'].each do |event|
|
13
22
|
event['@timestamp'] = event.delete('eventTime')
|
14
23
|
yield LogStash::Event.new(event)
|
15
24
|
end
|
@@ -1,10 +1,10 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-codec-cloudtrail'
|
4
|
-
s.version = '
|
4
|
+
s.version = '3.0.0'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "Process AWS CloudTrail formatted messages"
|
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"
|
@@ -20,9 +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", "
|
24
|
-
|
25
|
-
s.add_runtime_dependency 'logstash-codec-spool'
|
23
|
+
s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"
|
26
24
|
|
27
25
|
s.add_development_dependency 'logstash-devutils'
|
28
26
|
end
|
metadata
CHANGED
@@ -1,43 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-codec-cloudtrail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
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-
|
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
|
15
15
|
requirements:
|
16
|
-
- - "
|
16
|
+
- - ">="
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: '1.60'
|
19
|
+
- - "<="
|
17
20
|
- !ruby/object:Gem::Version
|
18
|
-
version: '
|
21
|
+
version: '2.99'
|
19
22
|
name: logstash-core-plugin-api
|
20
23
|
prerelease: false
|
21
24
|
type: :runtime
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '1.0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
requirement: !ruby/object:Gem::Requirement
|
29
26
|
requirements:
|
30
27
|
- - ">="
|
31
28
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
33
|
-
|
34
|
-
prerelease: false
|
35
|
-
type: :runtime
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
29
|
+
version: '1.60'
|
30
|
+
- - "<="
|
39
31
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
32
|
+
version: '2.99'
|
41
33
|
- !ruby/object:Gem::Dependency
|
42
34
|
requirement: !ruby/object:Gem::Requirement
|
43
35
|
requirements:
|
@@ -52,7 +44,7 @@ dependencies:
|
|
52
44
|
- - ">="
|
53
45
|
- !ruby/object:Gem::Version
|
54
46
|
version: '0'
|
55
|
-
description: This gem is a
|
47
|
+
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
48
|
email: info@elastic.co
|
57
49
|
executables: []
|
58
50
|
extensions: []
|