logstash-logger 0.24.0 → 0.24.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -0
- data/lib/logstash-logger/formatter/base.rb +8 -3
- data/lib/logstash-logger/version.rb +1 -1
- metadata +26 -40
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '072939788bcf388d76724ff50216a9428402634c'
|
4
|
+
data.tar.gz: b56a87e489b4f61d01d729007e9fe193e7557722
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47ff10a039ff172bf2fc2f220258c42a40d7c5a33721b4e6091b1764f808156b22119f99994327dfbceb72fda116072fa07c7df5230ad068d782208bbc77303b
|
7
|
+
data.tar.gz: 81d52c7aadfde04bd54cfa4b875c378c7c977cea6b6ccd4178acdd14815a160ea18dc67aff34f11f86b5c19daa7f77db2d0aeda76343fbdea705992597f724ce
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -803,6 +803,7 @@ logger = LogStashLogger.new('localhost', 5228, :tcp)
|
|
803
803
|
* [Craig Read](https://github.com/Catharz)
|
804
804
|
* [glaszig](https://github.com/glaszig)
|
805
805
|
* [Bin Lan](https://github.com/lanxx019)
|
806
|
+
* [Joao Fernandes](https://github.com/jcmfernandes)
|
806
807
|
|
807
808
|
## Contributing
|
808
809
|
|
@@ -25,7 +25,12 @@ module LogStashLogger
|
|
25
25
|
when LogStash::Event
|
26
26
|
data.clone
|
27
27
|
when Hash
|
28
|
-
event_data = data.
|
28
|
+
event_data = data.clone
|
29
|
+
event_data['message'.freeze] = event_data.delete(:message) if event_data.key?(:message)
|
30
|
+
event_data['tags'.freeze] = event_data.delete(:tags) if event_data.key?(:tags)
|
31
|
+
event_data['source'.freeze] = event_data.delete(:source) if event_data.key?(:source)
|
32
|
+
event_data['type'.freeze] = event_data.delete(:type) if event_data.key?(:type)
|
33
|
+
event_data['@timestamp'.freeze] = time
|
29
34
|
LogStash::Event.new(event_data)
|
30
35
|
else
|
31
36
|
LogStash::Event.new("message".freeze => msg2str(data), "@timestamp".freeze => time)
|
@@ -37,7 +42,7 @@ module LogStashLogger
|
|
37
42
|
event['host'.freeze] ||= HOST
|
38
43
|
|
39
44
|
current_tags.each { |tag| event.tag(tag) }
|
40
|
-
|
45
|
+
|
41
46
|
LogStashLogger.configuration.customize_event_block.call(event) if LogStashLogger.configuration.customize_event_block.respond_to?(:call)
|
42
47
|
|
43
48
|
# In case Time#to_json has been overridden
|
@@ -48,7 +53,7 @@ module LogStashLogger
|
|
48
53
|
if LogStashLogger.configuration.max_message_size
|
49
54
|
event['message'.freeze] = event['message'.freeze].byteslice(0, LogStashLogger.configuration.max_message_size)
|
50
55
|
end
|
51
|
-
|
56
|
+
|
52
57
|
event
|
53
58
|
end
|
54
59
|
end
|
metadata
CHANGED
@@ -1,164 +1,150 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.24.
|
4
|
+
version: 0.24.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Butler
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
+
name: logstash-event
|
14
15
|
requirement: !ruby/object:Gem::Requirement
|
15
16
|
requirements:
|
16
17
|
- - "~>"
|
17
18
|
- !ruby/object:Gem::Version
|
18
19
|
version: '1.2'
|
19
|
-
name: logstash-event
|
20
|
-
prerelease: false
|
21
20
|
type: :runtime
|
21
|
+
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
requirement: !ruby/object:Gem::Requirement
|
29
|
-
requirements:
|
30
|
-
- - ">="
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '0'
|
33
28
|
name: rails
|
34
|
-
prerelease: false
|
35
|
-
type: :development
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
29
|
requirement: !ruby/object:Gem::Requirement
|
43
30
|
requirements:
|
44
31
|
- - ">="
|
45
32
|
- !ruby/object:Gem::Version
|
46
33
|
version: '0'
|
47
|
-
name: redis
|
48
|
-
prerelease: false
|
49
34
|
type: :development
|
35
|
+
prerelease: false
|
50
36
|
version_requirements: !ruby/object:Gem::Requirement
|
51
37
|
requirements:
|
52
38
|
- - ">="
|
53
39
|
- !ruby/object:Gem::Version
|
54
40
|
version: '0'
|
55
41
|
- !ruby/object:Gem::Dependency
|
42
|
+
name: redis
|
56
43
|
requirement: !ruby/object:Gem::Requirement
|
57
44
|
requirements:
|
58
45
|
- - ">="
|
59
46
|
- !ruby/object:Gem::Version
|
60
47
|
version: '0'
|
61
|
-
name: poseidon
|
62
|
-
prerelease: false
|
63
48
|
type: :development
|
49
|
+
prerelease: false
|
64
50
|
version_requirements: !ruby/object:Gem::Requirement
|
65
51
|
requirements:
|
66
52
|
- - ">="
|
67
53
|
- !ruby/object:Gem::Version
|
68
54
|
version: '0'
|
69
55
|
- !ruby/object:Gem::Dependency
|
56
|
+
name: poseidon
|
70
57
|
requirement: !ruby/object:Gem::Requirement
|
71
58
|
requirements:
|
72
59
|
- - ">="
|
73
60
|
- !ruby/object:Gem::Version
|
74
61
|
version: '0'
|
75
|
-
name: aws-sdk
|
76
|
-
prerelease: false
|
77
62
|
type: :development
|
63
|
+
prerelease: false
|
78
64
|
version_requirements: !ruby/object:Gem::Requirement
|
79
65
|
requirements:
|
80
66
|
- - ">="
|
81
67
|
- !ruby/object:Gem::Version
|
82
68
|
version: '0'
|
83
69
|
- !ruby/object:Gem::Dependency
|
70
|
+
name: aws-sdk
|
84
71
|
requirement: !ruby/object:Gem::Requirement
|
85
72
|
requirements:
|
86
73
|
- - ">="
|
87
74
|
- !ruby/object:Gem::Version
|
88
75
|
version: '0'
|
89
|
-
name: SyslogLogger
|
90
|
-
prerelease: false
|
91
76
|
type: :development
|
77
|
+
prerelease: false
|
92
78
|
version_requirements: !ruby/object:Gem::Requirement
|
93
79
|
requirements:
|
94
80
|
- - ">="
|
95
81
|
- !ruby/object:Gem::Version
|
96
82
|
version: '0'
|
97
83
|
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec
|
98
85
|
requirement: !ruby/object:Gem::Requirement
|
99
86
|
requirements:
|
100
87
|
- - ">="
|
101
88
|
- !ruby/object:Gem::Version
|
102
89
|
version: '3'
|
103
|
-
name: rspec
|
104
|
-
prerelease: false
|
105
90
|
type: :development
|
91
|
+
prerelease: false
|
106
92
|
version_requirements: !ruby/object:Gem::Requirement
|
107
93
|
requirements:
|
108
94
|
- - ">="
|
109
95
|
- !ruby/object:Gem::Version
|
110
96
|
version: '3'
|
111
97
|
- !ruby/object:Gem::Dependency
|
98
|
+
name: rake
|
112
99
|
requirement: !ruby/object:Gem::Requirement
|
113
100
|
requirements:
|
114
101
|
- - ">="
|
115
102
|
- !ruby/object:Gem::Version
|
116
103
|
version: '0'
|
117
|
-
name: rake
|
118
|
-
prerelease: false
|
119
104
|
type: :development
|
105
|
+
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
107
|
requirements:
|
122
108
|
- - ">="
|
123
109
|
- !ruby/object:Gem::Version
|
124
110
|
version: '0'
|
125
111
|
- !ruby/object:Gem::Dependency
|
112
|
+
name: pry
|
126
113
|
requirement: !ruby/object:Gem::Requirement
|
127
114
|
requirements:
|
128
115
|
- - ">="
|
129
116
|
- !ruby/object:Gem::Version
|
130
117
|
version: '0'
|
131
|
-
name: pry
|
132
|
-
prerelease: false
|
133
118
|
type: :development
|
119
|
+
prerelease: false
|
134
120
|
version_requirements: !ruby/object:Gem::Requirement
|
135
121
|
requirements:
|
136
122
|
- - ">="
|
137
123
|
- !ruby/object:Gem::Version
|
138
124
|
version: '0'
|
139
125
|
- !ruby/object:Gem::Dependency
|
126
|
+
name: wwtd
|
140
127
|
requirement: !ruby/object:Gem::Requirement
|
141
128
|
requirements:
|
142
129
|
- - ">="
|
143
130
|
- !ruby/object:Gem::Version
|
144
131
|
version: '0'
|
145
|
-
name: wwtd
|
146
|
-
prerelease: false
|
147
132
|
type: :development
|
133
|
+
prerelease: false
|
148
134
|
version_requirements: !ruby/object:Gem::Requirement
|
149
135
|
requirements:
|
150
136
|
- - ">="
|
151
137
|
- !ruby/object:Gem::Version
|
152
138
|
version: '0'
|
153
139
|
- !ruby/object:Gem::Dependency
|
140
|
+
name: appraisal
|
154
141
|
requirement: !ruby/object:Gem::Requirement
|
155
142
|
requirements:
|
156
143
|
- - ">="
|
157
144
|
- !ruby/object:Gem::Version
|
158
145
|
version: '0'
|
159
|
-
name: appraisal
|
160
|
-
prerelease: false
|
161
146
|
type: :development
|
147
|
+
prerelease: false
|
162
148
|
version_requirements: !ruby/object:Gem::Requirement
|
163
149
|
requirements:
|
164
150
|
- - ">="
|
@@ -267,7 +253,7 @@ homepage: http://github.com/dwbutler/logstash-logger
|
|
267
253
|
licenses:
|
268
254
|
- MIT
|
269
255
|
metadata: {}
|
270
|
-
post_install_message:
|
256
|
+
post_install_message:
|
271
257
|
rdoc_options: []
|
272
258
|
require_paths:
|
273
259
|
- lib
|
@@ -282,9 +268,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
282
268
|
- !ruby/object:Gem::Version
|
283
269
|
version: '0'
|
284
270
|
requirements: []
|
285
|
-
rubyforge_project:
|
286
|
-
rubygems_version: 2.
|
287
|
-
signing_key:
|
271
|
+
rubyforge_project:
|
272
|
+
rubygems_version: 2.6.11
|
273
|
+
signing_key:
|
288
274
|
specification_version: 4
|
289
275
|
summary: LogStash Logger for ruby
|
290
276
|
test_files:
|