fluent-plugin-cassandra-driver 0.0.23 → 1.0.0
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/README.md +11 -1
- data/VERSION +1 -1
- data/fluent-plugin-cassandra-driver.gemspec +2 -2
- data/lib/fluent/plugin/out_cassandra_driver.rb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4abb44738b21e0a6f7125ff876eeb47a454097eb
|
4
|
+
data.tar.gz: 3ff6bc7e6eb84ab6dc078b7e84f17c36178a6bfe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
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
|
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
|
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
|
-
|
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
|