logstash-input-mongoprofile 0.1.9 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/logstash/inputs/mongoprofile.rb +4 -1
- data/logstash-input-mongoprofile.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77930a374857fbc1c7dae2ef304e39010668aa12
|
4
|
+
data.tar.gz: 744d70085380a289411ea02d7811a82672979daf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3cd5ecfa4535babdf1f33bf5bbc19973a1a9deba9457e8188304347c09d500670449b7c741853286f41fcb841e6c4586c1c9124cb04ddcc312e5e92b52b0440
|
7
|
+
data.tar.gz: a971b5cd2a4b8b42a13291c2c3f13a82826a3b824b44a14acdd7ecb9f4f39108fb78813cd6b474fc9489548531fc7835e9abad24b08894776068a6e1279ca4e8
|
@@ -116,14 +116,17 @@ class ProfileCollection
|
|
116
116
|
end
|
117
117
|
|
118
118
|
class DocumentParser
|
119
|
-
def initialize(host)
|
119
|
+
def initialize(host, logger)
|
120
120
|
@host = host
|
121
|
+
@logger = logger
|
121
122
|
end
|
122
123
|
|
123
124
|
def parse(document)
|
125
|
+
@logger.info('Start documents parsing')
|
124
126
|
event = LogStash::Event.new('host' => @host)
|
125
127
|
|
126
128
|
document.each do |key, value|
|
129
|
+
@logger.info("Try set event field key: #{key} value: #{value}")
|
127
130
|
event.set(key, value)
|
128
131
|
end
|
129
132
|
|