logstash-input-file_progress 3.1.1 → 3.1.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
  SHA1:
3
- metadata.gz: 3d329d0d601d7cf1919657e41ddc340e48569ffb
4
- data.tar.gz: b31695fdb662802f831dcf3ac97abc43e169bbdd
3
+ metadata.gz: 291540c6f2fc5fa581572587815f657f5d119fd6
4
+ data.tar.gz: d293e8f8dd2d7d755c31c512e6da205432bf4a25
5
5
  SHA512:
6
- metadata.gz: 3a4b0f5281984e9cca1bfaa83b4d844fa065332af6d300abb9f995d3d7ce113bc656cd615caec0d0e5e750e1457969c3f6f6dde7c0d1aa4af4952fa63b6707b9
7
- data.tar.gz: 11ca00bfdf0fd96fa2d88368f097aeb8af3d4fa0466b5425aa904fe4f2e8ccc09fba1c08e95a8bfa6d35c84311a38546a29a393d78c3978d9ba2f80ffa8f2b89
6
+ metadata.gz: b8989d2bd9550f72c2924c6f43ff54187fc6ee1d6c62d238674f5fe05a53d7ae8c7001a953bdcda2cb657d44ad9154a8595dceafde9bc61a7f4839587f55e27d
7
+ data.tar.gz: 86767ca40655291d6d86d3b9a59f84e8a4a188861d79caeb60c495f3f0ca31e8f2c0aff8b5f890bed5813d5b8df6395c00bf9966621d53921e97af96308aa7a2
@@ -264,10 +264,10 @@ class LogStash::Inputs::FileProgress < LogStash::Inputs::Base
264
264
  end
265
265
 
266
266
  def process_event(event)
267
- event["[@metadata][size]"] = size unless size.nil?
268
- event["[@metadata][pos]"] = pos unless pos.nil?
269
- event["[@metadata][path]"] = path
270
- event["path"] = path if !event.include?("path")
267
+ event.set("[@metadata][size]", size) unless size.nil?
268
+ event.set("[@metadata][pos]", pos) unless pos.nil?
269
+ event.set("[@metadata][path]", path)
270
+ event.set("path", path) if !event.include?("path")
271
271
  input.post_process_this(event)
272
272
  end
273
273
 
@@ -313,7 +313,7 @@ class LogStash::Inputs::FileProgress < LogStash::Inputs::Base
313
313
  end # def run
314
314
 
315
315
  def post_process_this(event)
316
- event["host"] = @host if !event.include?("host")
316
+ event.set("host", @host) if !event.include?("host")
317
317
  decorate(event)
318
318
  @queue << event
319
319
  end
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-input-file_progress'
4
- s.version = '3.1.1'
4
+ s.version = '3.1.2'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Stream events from files with progress-events."
7
7
  s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-file_progress
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Signify
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-17 00:00:00.000000000 Z
11
+ date: 2017-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement