logstasher 0.6.2 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/lib/logstasher/log_subscriber.rb +2 -2
- data/lib/logstasher/version.rb +1 -1
- metadata +16 -16
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
MGQwNDIwNDhlZTBjZDJhYzJkMTFlYzljNTJjYjhkNTlhMzFkYTQ4Zg==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 11247b1380b660b07d61c1ba3cb09a03e9c73c19
|
4
|
+
data.tar.gz: ad2c0ec6e3ba892c970646bc01f8afeecaa61a89
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
NzU5MDhjNzQyZjk2MzdlMmY5MDU3MjM5MGNhZGQyY2JhYzBlNmM1NjFlZmE3
|
11
|
-
Y2M0YTcxODIxZjRiNjY4NWE0OTA2NDJhMmNhNThlM2FlYTQyZmU=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
MjhlYjNjYmFjNzE1YjYzZjhhNTI4NGI3MzNiMjM5MTVhMDBjMGRmNjc2NGYw
|
14
|
-
OWViNzY3YTg2M2ViZDVhNmQ5MGNhZTY5ZTE1ZWIxODZhZmYyNjVkY2M2ODZk
|
15
|
-
Y2U1Yzc0NjkzNmQ1Y2QxYWZiYjRkNDIwZWE2ZTMyNDE0ZTQ3YWQ=
|
6
|
+
metadata.gz: f06b0803dffdb63f6e971ce000b16346488243a092ff32ee2dbbbcc636cca1cc4bdc66f766507365c109da407fe73f92b622e17ca04668f805dff2ee254e7be6
|
7
|
+
data.tar.gz: c1ef1086dd6b3ddb32fa1c1e9b480bfbedc4d6d4e9508eb34a2820e32d18de24de498554c90416e6da5ba4007debc6ddf997d33129d1fb5621238a8843437cbd
|
@@ -15,7 +15,7 @@ module LogStasher
|
|
15
15
|
|
16
16
|
tags = ['request']
|
17
17
|
tags.push('exception') if payload[:exception]
|
18
|
-
event = LogStash::Event.new('
|
18
|
+
event = LogStash::Event.new(data.merge('source' => LogStasher.source, 'tags' => tags))
|
19
19
|
LogStasher.logger << event.to_json + "\n"
|
20
20
|
end
|
21
21
|
|
@@ -122,7 +122,7 @@ module LogStasher
|
|
122
122
|
|
123
123
|
def process_event(event, tags)
|
124
124
|
data = LogStasher.request_context.merge(extract_metadata(event.payload))
|
125
|
-
event = LogStash::Event.new('
|
125
|
+
event = LogStash::Event.new(data.merge('source' => LogStasher.source, 'tags' => tags))
|
126
126
|
logger << event.to_json + "\n"
|
127
127
|
end
|
128
128
|
|
data/lib/logstasher/version.rb
CHANGED
metadata
CHANGED
@@ -1,83 +1,83 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstasher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shadab Ahmed
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logstash-event
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.2.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: request_store
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '2.14'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '2.14'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 1.0.0
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 1.0.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rails
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '3.0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '3.0'
|
83
83
|
description: Awesome rails logs
|
@@ -104,12 +104,12 @@ require_paths:
|
|
104
104
|
- lib
|
105
105
|
required_ruby_version: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
|
-
- -
|
107
|
+
- - ">="
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: '0'
|
110
110
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
111
111
|
requirements:
|
112
|
-
- -
|
112
|
+
- - ">="
|
113
113
|
- !ruby/object:Gem::Version
|
114
114
|
version: '0'
|
115
115
|
requirements: []
|