fluent-plugin-syslog_rfc5424 0.5.1 → 0.5.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: ee4be79798fa377cdaa6f46eac5164605a6e776f
4
- data.tar.gz: c2bcd1dbd5ad4a831aa0e5f41dbd7817fd2e9620
3
+ metadata.gz: c2bed35d8abefd1c17302a5a92d8cd7ac7f5d25d
4
+ data.tar.gz: a3d2271fb9fe57e9cc346fbcc0c758cf71a0e299
5
5
  SHA512:
6
- metadata.gz: d49f27b105429bbb813a503f67cbdba4ef88b3a9767d26f5a072905f53f5639ed235b28bbc3e6971535675ede46cbad0275da8ef933ea0db9af5938f9f91ea03
7
- data.tar.gz: ef36eedddc6089415d4b5704e2ec7df02498923268571dfbc1ee833bb2f7c8fe958e9b1518b13d75e540ddca624eabb0c83861143a4168c25ec925b61c072106
6
+ metadata.gz: 74316e16c552f1823e0678342ff6f9439336fb3a1b12bc9ace40ac0792343101b39a2f23498f4b6512b0d1f9badb5ef4dcb73fc790c911e3adeedb4bc324efce
7
+ data.tar.gz: '073509edc9d37be3ab37a92a07a0634af90204e2e2badc58f0dbd91fabdbb4cad8317ea6c4b23c3808fd8dc6e8f1220a7d94c9095f7892505a8b256fba507981'
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "fluent-plugin-syslog_rfc5424"
7
- spec.version = "0.5.1"
7
+ spec.version = "0.5.2"
8
8
  spec.authors = ["Pivotal"]
9
9
  spec.email = %w(cf-loggregator@pivotal.io)
10
10
  spec.homepage = "https://github.com/cloudfoundry/fluent-plugin-syslog_rfc5424"
@@ -8,12 +8,17 @@ module Fluent
8
8
  config_param :rfc6587_message_size, :bool, default: false
9
9
 
10
10
  def format(tag, time, record)
11
+ log.debug(record.map { |k, v| "#{k}=#{v}" }.join('&'))
12
+
11
13
  msg = RFC5424::Formatter.format(
12
14
  log: record['log'],
13
15
  timestamp: time,
14
- app_name: 'app-name',
16
+ app_name: 'app-guid',
15
17
  proc_id: 'instance-id'
16
18
  )
19
+
20
+ log.debug(msg)
21
+
17
22
  return msg unless @rfc6587_message_size
18
23
 
19
24
  msg.length.to_s + ' ' + msg
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-syslog_rfc5424
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pivotal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-10 00:00:00.000000000 Z
11
+ date: 2020-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler