fluent-plugin-cloudwatch-transform 0.0.2 → 0.0.3
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/.DS_Store +0 -0
- data/.gitignore +2 -0
- data/README.md +6 -4
- data/fluent-plugin-cloudwatch-transform.gemspec +1 -1
- data/lib/.DS_Store +0 -0
- data/lib/fluent/.DS_Store +0 -0
- data/lib/fluent/plugin/out_cloudwatch_transform.rb +3 -2
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f298c3db2f89a6b7b20e7e70586f5e8f1166169
|
4
|
+
data.tar.gz: 8b5cd1939471e4cc5ce5b0e74e89122df2c90d02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbb8c9b0100e1ac8408ce615f86f7c3a4144f56f68cb0273262a3bdd54089eb1ad5ec9a50d521eb80aade43f0a163aec641a65b030f10dca82bae2acc80b765e
|
7
|
+
data.tar.gz: e1eeab2ea5d3214565e39d5751fb198a8e1d6c2aaaf829f65e21df6be958c8cad66a4d967211dd1af22fe57f68abb8426e2237251cb108f228a78a7232d14cf4
|
data/.DS_Store
CHANGED
Binary file
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -10,7 +10,6 @@ If you don't, please run through [quick start for fluentd] (https://github.com/f
|
|
10
10
|
Now after you have fluentd installed you can follow either of the steps below:
|
11
11
|
|
12
12
|
|
13
|
-
//not available yet:
|
14
13
|
|
15
14
|
Add this line to your application's Gemfile:
|
16
15
|
|
@@ -19,8 +18,12 @@ Add this line to your application's Gemfile:
|
|
19
18
|
Or install it yourself as:
|
20
19
|
|
21
20
|
$ gem install fluent-plugin-cloudwatch-transform
|
21
|
+
|
22
|
+
or
|
23
|
+
|
24
|
+
$ fluent-gem install fluent-plugin-cloudwatch-transform
|
22
25
|
|
23
|
-
//for
|
26
|
+
//for build the gem locally:
|
24
27
|
|
25
28
|
just download or clone this repository
|
26
29
|
|
@@ -28,7 +31,7 @@ Or install it yourself as:
|
|
28
31
|
|
29
32
|
$ gem build fluent-plugin-cloudwatch-transform.gemspec
|
30
33
|
|
31
|
-
$ sudo gem install ./fluent-plugin-cloudwatch-transform-0.0.
|
34
|
+
$ sudo gem install ./fluent-plugin-cloudwatch-transform-0.0.3.gem
|
32
35
|
|
33
36
|
|
34
37
|
## Usage
|
@@ -82,7 +85,6 @@ Add the following into your fluentd config.
|
|
82
85
|
## To DO
|
83
86
|
need to write the test
|
84
87
|
|
85
|
-
not push to fluent.org yet
|
86
88
|
|
87
89
|
|
88
90
|
|
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.name = "fluent-plugin-cloudwatch-transform"
|
6
|
-
gem.version = "0.0.
|
6
|
+
gem.version = "0.0.3"
|
7
7
|
gem.date = '2015-03-18'
|
8
8
|
gem.authors = ["Ling Zhang"]
|
9
9
|
gem.email = ["zhangling.ice@gmail.com"]
|
data/lib/.DS_Store
ADDED
Binary file
|
Binary file
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Fluent
|
2
|
-
class
|
2
|
+
class CloudWatchTransOutput < Output
|
3
3
|
# First, register the plugin. NAME is the name of this plugin
|
4
4
|
# and identifies the plugin in the configuration file.
|
5
5
|
Fluent::Plugin.register_output('cloudwatch_transform', self)
|
@@ -44,9 +44,10 @@ module Fluent
|
|
44
44
|
end
|
45
45
|
# add more information for the cloudwatch alert
|
46
46
|
timestamp = Engine.now # Should be receive_time_input
|
47
|
-
newhash[
|
47
|
+
newhash["receive_time_input"]=timestamp.to_s
|
48
48
|
newhash["application_name"] = last_tag
|
49
49
|
newhash["intermediary_source"] = "cloudwatch"
|
50
|
+
newhash["event_type"] = "alert.cloudwatch"
|
50
51
|
|
51
52
|
#log the transformed message and emit it
|
52
53
|
$log.info "Tranformed message #{newhash}"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-cloudwatch-transform
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ling Zhang
|
@@ -97,6 +97,8 @@ files:
|
|
97
97
|
- README.md
|
98
98
|
- Rakefile
|
99
99
|
- fluent-plugin-cloudwatch-transform.gemspec
|
100
|
+
- lib/.DS_Store
|
101
|
+
- lib/fluent/.DS_Store
|
100
102
|
- lib/fluent/plugin/out_cloudwatch_transform.rb
|
101
103
|
- sample/.DS_Store
|
102
104
|
- sample/cloudwatch-transform.conf.sample
|