fluent-plugin-gelf 0.2.4 → 0.2.5

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
  SHA256:
3
- metadata.gz: 70a3623ed2adde0ca73a4f9b406657a50ba9cbb33ffbe5512fad9c9fb76591db
4
- data.tar.gz: 6a7acdaa55e1088efbce002224c88c8795a84b5d1ac634f48dd2c5e063c3f4ad
3
+ metadata.gz: 9b95b9d630db3296ea2d920c10b1a5cb05b6f3cbcc86de82795a5c238328083d
4
+ data.tar.gz: 25016aaaec6a129f4719fae348af1474f8a170849bc658afe81d4a7035b3dde2
5
5
  SHA512:
6
- metadata.gz: 76b60605cf69b29427372dedf3792132a761410e23f7bf7f918290694e1eb06225f90f5263a6a54c08ca7bc52ab44a8cdbb0baa4cf34d31d685bb4ffc75f2e7f
7
- data.tar.gz: 73742730f414d4643e12914c15cbdd61a4900ee50219b74538afe312ca74243a3a249cd77c26c63b2ec20aa1260e3297ca0f60b29e6cb873bddc0cede6ef8492
6
+ metadata.gz: ee1b9173784a298b8a5ec79444381d3af7dc6f29aa5a44575d8b956666240785f8cb6169544ef66249c2a41641f247f0f39bbfae5a79c820534f2f48dd7939a4
7
+ data.tar.gz: 20d84f40b14342d4d884cf5cd28bde66ccc13610dea51565a865bd6f77cd92680b6f7f264c641ba6f6d9e9bd0abf6c59b2ccef2375a38d4c74adc6706cae2313
data/.circleci/config.yml CHANGED
@@ -30,12 +30,9 @@ jobs:
30
30
  mkdir -p ~/.gem
31
31
  echo ":rubygems_api_key: $RUBYGEMS_API_KEY" > ~/.gem/credentials
32
32
  chmod 0600 ~/.gem/credentials
33
- - run:
34
- name: Build gem
35
- command: bundle exec rake build --trace
36
33
  - run:
37
34
  name: Release gem
38
- command: bundle exec rake release:rubygem_push --trace
35
+ command: bundle exec rake build release:rubygem_push --trace
39
36
  rubocop:
40
37
  executor: ruby
41
38
  steps:
data/README.md CHANGED
@@ -43,7 +43,7 @@ This `gelf` plugin is for fluentd v1.0 or later.
43
43
 
44
44
  The hostname of your Graylog cluster.
45
45
 
46
- ####o port (integer) (optional)
46
+ #### port (integer) (optional)
47
47
 
48
48
  The TCP port of your Graylog cluster. Default value: `12201`.
49
49
 
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "fluent-plugin-gelf"
8
- spec.version = "0.2.4"
8
+ spec.version = "0.2.5"
9
9
  spec.authors = ["Funding Circle"]
10
10
  spec.email = ["engineering+fluent-plugin-gelf@fundingcircle.com"]
11
11
 
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.require_paths = ["lib"]
23
23
 
24
24
  spec.add_development_dependency "oj", "~> 3.3.10"
25
- spec.add_development_dependency "bundler", "~> 2.1.4"
25
+ spec.add_development_dependency "bundler", "~> 2.2.32"
26
26
  spec.add_development_dependency "rake", ">= 12.3.3"
27
27
  spec.add_development_dependency "test-unit", "~> 3.0"
28
28
  spec.add_development_dependency "test-unit-rr", "~> 1.0.5"
@@ -41,7 +41,7 @@ module Fluent
41
41
  json["host"] = record["host"] # preserve host
42
42
  record.delete(key)
43
43
  record.merge(json)
44
- rescue Oj::ParseError
44
+ rescue Oj::ParseError, EncodingError, IndexError
45
45
  record
46
46
  end
47
47
 
@@ -0,0 +1,31 @@
1
+ {
2
+ "event": {
3
+ "tag": "docker.9ee424d12013",
4
+ "time": "2022-02-03 16:17:23.034547719",
5
+ "record": {
6
+ "container_id": "9ee424d120137232b53bbaa678097b71e50e69de148e2ee4b77a94795e561862",
7
+ "container_name": "/mesos-b3e48670-9810-4c80-93dc-e45ffd485a00",
8
+ "source": "stdout",
9
+ "log": " \"${catalina.home}/lib/*.jar\"",
10
+ "mesos_framework": "marathon",
11
+ "app": "jira",
12
+ "mesos_task_id": "jira.instance-ab27d9c9-850c-11ec-a8d1-024295fdd3e6._app.1",
13
+ "host": "mesosslave-private-04610d00f6a6254ec",
14
+ "msec": "512"
15
+ }
16
+ },
17
+ "expected": {
18
+ "timestamp": 1643905043.035,
19
+ "_fluentd_tag": "docker.9ee424d12013",
20
+ "_container_id": "9ee424d120137232b53bbaa678097b71e50e69de148e2ee4b77a94795e561862",
21
+ "_container_name": "/mesos-b3e48670-9810-4c80-93dc-e45ffd485a00",
22
+ "_source": "stdout",
23
+ "_mesos_framework": "marathon",
24
+ "_app": "jira",
25
+ "_mesos_task_id": "jira.instance-ab27d9c9-850c-11ec-a8d1-024295fdd3e6._app.1",
26
+ "host": "mesosslave-private-04610d00f6a6254ec",
27
+ "_msec": "512",
28
+ "short_message": " \"${catalina.home}/lib/*.jar\"",
29
+ "level": 6
30
+ }
31
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-gelf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Funding Circle
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-13 00:00:00.000000000 Z
11
+ date: 2022-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oj
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 2.1.4
33
+ version: 2.2.32
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 2.1.4
40
+ version: 2.2.32
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -141,6 +141,7 @@ files:
141
141
  - test/fixtures/docker_unformatted.json
142
142
  - test/fixtures/level_from_tag.json
143
143
  - test/fixtures/message_json_parsable_to_nil.json
144
+ - test/fixtures/quoted_string.json
144
145
  - test/fixtures/systemd.json
145
146
  - test/fixtures/systemd_inner_json.json
146
147
  - test/fixtures/systemd_with_real_timestamp.json
@@ -166,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
167
  - !ruby/object:Gem::Version
167
168
  version: '0'
168
169
  requirements: []
169
- rubygems_version: 3.0.3
170
+ rubygems_version: 3.2.32
170
171
  signing_key:
171
172
  specification_version: 4
172
173
  summary: Graylog output plugin for fluentd
@@ -179,6 +180,7 @@ test_files:
179
180
  - test/fixtures/docker_unformatted.json
180
181
  - test/fixtures/level_from_tag.json
181
182
  - test/fixtures/message_json_parsable_to_nil.json
183
+ - test/fixtures/quoted_string.json
182
184
  - test/fixtures/systemd.json
183
185
  - test/fixtures/systemd_inner_json.json
184
186
  - test/fixtures/systemd_with_real_timestamp.json