logstash-filter-influxdb 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logstash/filters/influxdb.rb +6 -1
- data/logstash-filter-influxdb.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b514687ed29ed501eff2f01a7cbe144c7112c251a03b21bc2285961beadbf2a
|
4
|
+
data.tar.gz: 623ec115f79d7e93c2c5a132295f2cdb4a058caf1ec06f108b977d76eee906ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5c61c2c5688c897a98bda0927b2012f3ba77ff60b11e2edd5c95b5deb18b2690fb2e641494329b6015943240f2efc4d630d8832df2118955664202861296ae3
|
7
|
+
data.tar.gz: 25e10f0640e63e34d68ed0db3eb6153443025d20cd3fe72021d476bbc84a55084a926b8c59dc6246641c92d56e91593620f5c4aeb6a7447f89160300c2acd42b
|
@@ -29,8 +29,13 @@ class LogStash::Filters::Influxdb < LogStash::Filters::Base
|
|
29
29
|
|
30
30
|
public
|
31
31
|
def filter(event)
|
32
|
+
|
32
33
|
point = InfluxParser.parse_point(event.get('message'))
|
33
|
-
|
34
|
+
if point
|
35
|
+
event.set('point', point)
|
36
|
+
else
|
37
|
+
event.set('point', {'_influxparseerror' => true })
|
38
|
+
end
|
34
39
|
# event.set("point")
|
35
40
|
# if @message
|
36
41
|
# # Replace the event message with our message as configured in the
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-filter-influxdb'
|
3
|
-
s.version = '0.0.
|
3
|
+
s.version = '0.0.2'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = "Parse a string of influx line protocol to fields"
|
6
6
|
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"
|