fluent-plugin-papertrail 0.2.6 → 0.2.7

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: b79fd8b51f35463dd10172bfdc7b14a0e48f6344
4
- data.tar.gz: '0630185850bcc226f7c847ac368984395ece655f'
3
+ metadata.gz: 42c8af52e623ffec4a15ded0e4ae8e9e904b7d79
4
+ data.tar.gz: 94d4af82a033ca41c2a034ec69f8c536819555f9
5
5
  SHA512:
6
- metadata.gz: f211a18ef1ac629128494817bd045bf77891a527114945f1384cdc3a74d609f716573390119a1585f1c9d65a118f105610b6bd44e75ea0f619415aedebfbf697
7
- data.tar.gz: 58f78fcfaa5b9588eb723d377f77521e2ed8ac62e6de893d713bb37cdbf7ee8ab752e466845c28ecf78506fa9746debc4b93acaf405f4eff86b28e57cac866dd
6
+ metadata.gz: 4f147daa44061c16cc727d385436e7ed82edefb59e994466140b6d9e0079239c86431e060ceefb6788ba618894e8e223f53781d6e4626430b9726f6a9d0f1a4e
7
+ data.tar.gz: bc4c1fbbae79595517d6849012113f5b039f01ee5ff93b14957676fde22e4de8cc268cdf0b6c00aa1b4dcbee551f4aca950172ebb44eb570df55c5830b6c4a5c
data/LICENSE CHANGED
@@ -186,7 +186,7 @@
186
186
  same "printed page" as the copyright notice for easier
187
187
  identification within third-party archives.
188
188
 
189
- Copyright {yyyy} {name of copyright owner}
189
+ Copyright 2018 SolarWinds Worldwide, LLC
190
190
 
191
191
  Licensed under the Apache License, Version 2.0 (the "License");
192
192
  you may not use this file except in compliance with the License.
@@ -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-papertrail"
7
- spec.version = "0.2.6"
7
+ spec.version = "0.2.7"
8
8
  spec.authors = ["Jonathan Lozinski", "Alex Ouzounis", "Chris Rust"]
9
9
  spec.email = ["jonathan.lozinski@solarwinds.com", "alex.ouzounis@solarwinds.com", "chris.rust@solarwinds.com"]
10
10
 
@@ -106,7 +106,21 @@ module Fluent
106
106
  host = @papertrail_host
107
107
  port = @papertrail_port
108
108
  end
109
- form_socket_key(host, port)
109
+ socket_key = form_socket_key(host, port)
110
+
111
+ if socket_key == ':'
112
+ kubernetes_err_msg = ''
113
+ if record.dig('kubernetes', 'namespace_name')
114
+ namespace_name = record['kubernetes']['namespace_name']
115
+ kubernetes_err_msg = " from Kubernetes namespace: \"#{namespace_name}\""
116
+ end
117
+ log.warn("Received nil socket_configuration#{kubernetes_err_msg}. Discarding message.")
118
+ host = DISCARD_STRING
119
+ port = DISCARD_STRING
120
+ socket_key = form_socket_key(host, port)
121
+ end
122
+
123
+ socket_key
110
124
  end
111
125
 
112
126
  def send_to_papertrail(packet, socket_key)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-papertrail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Lozinski
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2018-09-12 00:00:00.000000000 Z
13
+ date: 2019-02-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: fluentd