fluent-plugin-papertrail 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/fluent-plugin-papertrail.gemspec +1 -1
- data/lib/fluent/plugin/out_papertrail.rb +15 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42c8af52e623ffec4a15ded0e4ae8e9e904b7d79
|
4
|
+
data.tar.gz: 94d4af82a033ca41c2a034ec69f8c536819555f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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.
|
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:
|
13
|
+
date: 2019-02-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: fluentd
|