fluent-plugin-cassandra-driver 0.0.23 → 1.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: 942907da161e254b6cea03ac2d2b2222e7d2f908
4
- data.tar.gz: 8313fa790aceda3826d47790866f64446ac4d4b5
3
+ metadata.gz: 4abb44738b21e0a6f7125ff876eeb47a454097eb
4
+ data.tar.gz: 3ff6bc7e6eb84ab6dc078b7e84f17c36178a6bfe
5
5
  SHA512:
6
- metadata.gz: 9095eae5759abde972166a1366b23d359902880a9bcefc05ff318ad51c3626b1b5653763d193862ec4b1f1a5a9c2ee026f93dfc23a00516c43a873f8f9c63cf1
7
- data.tar.gz: cf30a475184e29ec9e949e73908ea8ef19483bf5b996506d17e9ac0f18cb7c9bc390513efdd06f0164fc2dbe20bdab430650171419bc5e346cde6657513b34c7
6
+ metadata.gz: 3292a334e41ec49736794657ed8f701a182a65eaceb76eaafa717af2d51a0a98ae36d60f2114aa180b4baf70eb08ca5b4967b28f9f11738454b2128096f6d55c
7
+ data.tar.gz: 04d4db4c3a6027c24580e274599e4e9c0eae572c5b2013f0a8259b1a4a724ebf5bd20de06ab0f776263e6d367fa9fb53cae8c107f82f9b08f59fccc8bfc51ce4
data/README.md CHANGED
@@ -5,6 +5,12 @@ Cassandra output plugin for Fluentd.
5
5
  Implemented using the Datastax Ruby Driver for Apache Cassandra gem and targets [CQL3](https://docs.datastax.com/en/cql/3.3/)
6
6
  and Cassandra 1.2 - 3.x
7
7
 
8
+ # Warning
9
+
10
+ This project is in an alpha state, so configuration params could be changed without changing of major version.
11
+
12
+ Be careful before updating.
13
+
8
14
  # Installation
9
15
 
10
16
  via RubyGems
@@ -25,10 +31,14 @@ via RubyGems
25
31
  <match cassandra.**>
26
32
  type cassandra_driver # fluent output plugin file name (sans fluent_plugin_ prefix)
27
33
  hosts 127.0.0.1 # comma delimited string of hosts
34
+
28
35
  keyspace metrics # cassandra keyspace
29
- columnfamily logs # cassandra column family
36
+ column_family logs # cassandra column family
37
+
30
38
  ttl 60 # cassandra ttl (optional, default is 0)
39
+
31
40
  schema # cassandra column family schema (see example below)
41
+
32
42
  pop_data_keys # pop values from the fluentd hash when storing it as json (optional, default is true)
33
43
  json_column json # column where store all remaining data from fluentd (optional)
34
44
  </match>
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.23
1
+ 1.0.0
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: fluent-plugin-cassandra-driver 0.0.23 ruby lib
5
+ # stub: fluent-plugin-cassandra-driver 1.0.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "fluent-plugin-cassandra-driver".freeze
9
- s.version = "0.0.23"
9
+ s.version = "1.0.0"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
@@ -94,7 +94,7 @@ module Fluent
94
94
  record_key, type = column_family_key, mapping
95
95
  end
96
96
 
97
- value = record[record_key]
97
+ value = record[record_key.to_s]
98
98
 
99
99
  case type
100
100
  when :integer
@@ -112,7 +112,9 @@ module Fluent
112
112
  }.to_h
113
113
 
114
114
  self.schema.each { |column_family_key, mapping|
115
- record.delete(mapping.class == Hash ? mapping.first.first : column_family_key)
115
+ record_key = mapping.class == Hash ? mapping.first.first : column_family_key
116
+
117
+ record.delete(record_key.to_s)
116
118
  } if self.pop_data_keys
117
119
 
118
120
  # if we have one more data in record and json column
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-cassandra-driver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.23
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yaroslav Lukyanov