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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a41a0244b6a04aba95c1ccc6669ef05b2dbab20e373da1a864ced7c8c329bfea
4
- data.tar.gz: 24207042d460ed53bbe3ee166e4aa94d95ef957f6cf69a0d4173099aaed3aac6
3
+ metadata.gz: 2b514687ed29ed501eff2f01a7cbe144c7112c251a03b21bc2285961beadbf2a
4
+ data.tar.gz: 623ec115f79d7e93c2c5a132295f2cdb4a058caf1ec06f108b977d76eee906ff
5
5
  SHA512:
6
- metadata.gz: 328301f11cb6f283278ca0d332b3bd6bfc7168d7277a05ceca3c0786c455fca28038891099a252513827b790d0d53da588a23a95bbebed18fcac98311d777b7b
7
- data.tar.gz: 21588070f7edf7bc5ec47a72370762e239a0edb5a98ddd7e175f7a1580e1923a4d5ba2839ec3020c55487bbb77af8a4401999244a0535177c0c46e24427f90b8
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
- event.set('point', point)
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.1'
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"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-filter-influxdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Labrie