logstash-output-datadog_logs 0.2.0 → 0.2.1

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
- SHA256:
3
- metadata.gz: b4c66af2034439f393e80d224b6fa48a512a0054eefa9e1326d5b5de677c855c
4
- data.tar.gz: bcc1512fb38ad7127575c4c390a42144173b9f71cb3423da47d81645e630e8d1
2
+ SHA1:
3
+ metadata.gz: c708a309549e6084b60795dfc4ff3be4329d0e8f
4
+ data.tar.gz: c5b93168d3a46b54accb8e5aa9790550301b0318
5
5
  SHA512:
6
- metadata.gz: 195b4bfdf4a0caf30d58774d3da1441b91d6e7fb9773c9dac6cc3ce04d4bc8a4197c15f0e98738a14bacfe1f2264d83e50488aa976428c7db06fb81a4010b541
7
- data.tar.gz: 402809566483749cde572ac9a90382bea9103b35b2b4e0218801d07d62c158c0f36405a01e63019a658519081f74543a23d567fdecbf1e2029cf3293e0c8d5ba
6
+ metadata.gz: 4fb5d1b94aa280e44b746fdcd7f5834e866a22d674c981542e7510f2dd3028a5fa3520e9ed6b03c27c58f7967548f430d00affd7f41a01d8f48326eb698cc14a
7
+ data.tar.gz: fe129eff08cb0c34099134fa1165236e9c9b6738a087f134e6b0171dd5274405d55a30d47605db20d762c07d9ca748e9452c014d7f612eb1ce4ff426b6c4f4d0
@@ -1,2 +1,5 @@
1
- ## 0.1.0
2
- - Adapted Logmatic output plugin for Datadog needs
1
+ ## 0.2.1
2
+ - Fixed a bug where logs would be truncated at 16kB
3
+
4
+ ## 0.2.0
5
+ - Created an output plugin to send logs to Datadog
@@ -12,6 +12,7 @@ Contributors:
12
12
  * Richard Pijnenburg (electrical)
13
13
  * hantuo (hantuo)
14
14
  * Alexandre Jacquemot (ajacquemot)
15
+ * Alexandre Chaintreuil (achntrl)
15
16
 
16
17
  Note: If you've sent us patches, bug reports, or otherwise contributed to
17
18
  Logstash, and you aren't on the list above and want to be, please let us know
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # logstash-output-datadog_logs
2
- *Link to the [Datadog documentation](https://docs.datadoghq.com/logs)*
2
+ *Link to the [Datadog documentation](https://docs.datadoghq.com/integrations/logstash/#log-collection)*
3
3
 
4
4
  DatadogLogs lets you send logs to Datadog based on LogStash events.
5
5
 
@@ -26,7 +26,7 @@ class LogStash::Outputs::DatadogLogs < LogStash::Outputs::Base
26
26
 
27
27
  client_socket = nil
28
28
  @codec.on_event do |event, payload|
29
- # open a connection if needed and send JSON payload
29
+ # open a connection if needed and send JSON payload
30
30
  begin
31
31
  client_socket = new_client_socket unless client_socket
32
32
  r,w,e = IO.select([client_socket], [client_socket], [client_socket], nil)
@@ -34,7 +34,7 @@ class LogStash::Outputs::DatadogLogs < LogStash::Outputs::Base
34
34
  if w.any?
35
35
  # send message to Datadog
36
36
  message = "#{@api_key} #{payload}\n"
37
- client_socket.syswrite(message)
37
+ client_socket.puts(message)
38
38
  @logger.debug("Sent", :payload => payload)
39
39
  end # w.any?
40
40
  rescue => e
@@ -56,8 +56,8 @@ class LogStash::Outputs::DatadogLogs < LogStash::Outputs::Base
56
56
 
57
57
  private
58
58
  def new_client_socket
59
- # open a secure connection with Datadog
60
- begin
59
+ # open a secure connection with Datadog
60
+ begin
61
61
  socket = TCPSocket.new @host, @port
62
62
  sslSocket = OpenSSL::SSL::SSLSocket.new socket
63
63
  sslSocket.connect
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-datadog_logs'
3
- s.version = '0.2.0'
3
+ s.version = '0.2.1'
4
4
  s.licenses = ['Apache-2.0']
5
5
  s.summary = 'DatadogLogs lets you send logs to Datadog based on LogStash events.'
6
6
  s.homepage = 'https://www.datadoghq.com/'
metadata CHANGED
@@ -1,45 +1,45 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-datadog_logs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Datadog
8
8
  - Alexandre Jacquemot
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-12-19 00:00:00.000000000 Z
12
+ date: 2018-10-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
+ name: logstash-core-plugin-api
15
16
  requirement: !ruby/object:Gem::Requirement
16
17
  requirements:
17
18
  - - "~>"
18
19
  - !ruby/object:Gem::Version
19
20
  version: '2.0'
20
- name: logstash-core-plugin-api
21
- prerelease: false
22
21
  type: :runtime
22
+ prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
27
  version: '2.0'
28
28
  - !ruby/object:Gem::Dependency
29
+ name: logstash-devutils
29
30
  requirement: !ruby/object:Gem::Requirement
30
31
  requirements:
31
32
  - - ">="
32
33
  - !ruby/object:Gem::Version
33
34
  version: '0'
34
- name: logstash-devutils
35
- prerelease: false
36
35
  type: :development
36
+ prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - ">="
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
- description:
42
+ description:
43
43
  email: support@datadoghq.com
44
44
  executables: []
45
45
  extensions: []
@@ -60,7 +60,7 @@ licenses:
60
60
  metadata:
61
61
  logstash_plugin: 'true'
62
62
  logstash_group: output
63
- post_install_message:
63
+ post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths:
66
66
  - lib
@@ -75,9 +75,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubyforge_project:
79
- rubygems_version: 2.6.13
80
- signing_key:
78
+ rubyforge_project:
79
+ rubygems_version: 2.5.2
80
+ signing_key:
81
81
  specification_version: 4
82
82
  summary: DatadogLogs lets you send logs to Datadog based on LogStash events.
83
83
  test_files: