fluent-plugin-relp 0.1.1 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: af1204d8bc2fb612616cab7976c00a6cfc01363a
4
- data.tar.gz: 55c00b6b0ec1d381652cd0de767c25db1db78626
3
+ metadata.gz: 5aeae38a01e9a95232008ca942fda65afbd0d61c
4
+ data.tar.gz: 25ec2e89a2e32111e6162f3f8dad4153632f6456
5
5
  SHA512:
6
- metadata.gz: abfe9c247f9d4c038034272841bffdabc83198d747d5e0ba6ad622319769c561eaef73ae6aa4e0f1433ffde8825e6c0e7d482578f34a1987dd08658b8ae50adb
7
- data.tar.gz: 96258cdfcba3095e19fa4bcea2729ef71b5f929233876becf4c72f177e02c9fabcd4dabd6dc93234896f1de9b99906cfeba1f0806ebe5408321c7cb07e6e3451
6
+ metadata.gz: e20bc9892a4d26e8f33c3fc62a2bb7ccca1a628a7d3c7340cce8459635587fea74076de42c9fd132994646b72da42a3ef633f77eb3757ac482bb4408c4cb08e4
7
+ data.tar.gz: a5c3163caebbc1afa48837345f756c6b4fa000e93a96f82bd73150a0f3e44eba31aa17367786a26143b2968682f5e28850953cda3b6947d69551517c662db2c5
@@ -0,0 +1,19 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6
+ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ## [0.1.2] - 2017-06-27
11
+ ### Added
12
+ - Started writing this changelog
13
+ - Small fix for emit method
14
+
15
+ ## [0.1.1] - 2017-06-23
16
+ ### Added
17
+ - Version number started to follow Semantic versioning
18
+ - First released rubygem with correct dependencies
19
+
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Plugin for input to fluentd using [RELP protocol](http://www.rsyslog.com/doc/relp.html)
4
4
 
5
- this depends on `relp` ruby gem which host server-side ruby implementation
5
+ this depends on `relp` ruby gem which host server-side ruby implementation, available [here](https://github.com/ViaQ/Relp).
6
6
 
7
7
  ## Installation
8
8
 
@@ -39,7 +39,7 @@ sent by rsyslog's `omrelp` module, example of setting up (/etc/rsyslog.conf file
39
39
  ```aconf
40
40
  module(load="omrelp")
41
41
 
42
- *.* (action="omrelp"
42
+ *.* action(type="omrelp"
43
43
  Target="your_fluentd_host_or_ip"
44
44
  Port="5170_or_yours_set")
45
45
  ```
@@ -52,9 +52,9 @@ That is all you need to reliably send system logs to remote fluentd instance.
52
52
 
53
53
  ## Contributing
54
54
 
55
+ Before filing a bug check whether you are using latest version AND latest version of [Relp library](https://github.com/ViaQ/Relp).
55
56
  Bug reports and pull requests are welcome on GitHub at https://github.com/ViaQ/fluent-plugin-relp.
56
57
 
57
-
58
58
  ## License
59
59
 
60
60
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -1,17 +1,16 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |gem|
3
- gem.name = "fluent-plugin-relp"
4
- gem.version = "0.1.1"
5
- gem.authors = ["Jiří Vymazal"]
6
- gem.email = ["jvymazal@redhat.com"]
7
- gem.summary = %q{Fluent plugin to receive messages via RELP}
8
- gem.description = %q{Plugin allowing recieving log messages via RELP protocol from e.g. syslog}
9
- gem.homepage = "https://github.com/ViaQ/fluent-plugin-relp"
3
+ gem.name = 'fluent-plugin-relp'
4
+ gem.version = '0.1.2'
5
+ gem.author = "Jiří Vymazal"
6
+ gem.email = ['jvymazal@redhat.com']
7
+ gem.summary = "Fluent plugin to receive messages via RELP"
8
+ gem.description = "Plugin allowing recieving log messages via RELP protocol from e.g. syslog"
9
+ gem.homepage = 'https://github.com/ViaQ/fluent-plugin-relp'
10
10
  gem.license = "MIT"
11
11
 
12
- gem.files = `git ls-files`.split($\)
13
- gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
14
- gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
12
+ gem.files = `git ls-files`.split("\n")
13
+ gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
15
14
  gem.require_paths = ["lib"]
16
15
 
17
16
  gem.required_ruby_version = '>= 2.0.0'
@@ -36,7 +36,8 @@ module Fluent
36
36
 
37
37
  def on_message(msg)
38
38
  time = Engine.now
39
- router.emit(@tag, time, msg.dump)
39
+ record = {"message"=> msg}
40
+ router.emit(@tag, time, record)
40
41
  rescue => e
41
42
  log.error msg.dump, error: e, error_class: e.class
42
43
  log.error_backtrace
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-relp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jiří Vymazal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-22 00:00:00.000000000 Z
11
+ date: 2017-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -59,6 +59,7 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
+ - CHANGELOG.md
62
63
  - Gemfile
63
64
  - LICENSE.txt
64
65
  - README.md