logstash-filter-sumo 3.0.9 → 3.0.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/filters/sumo.rb +6 -0
- data/logstash-filter-sumo.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: a7039d4016ad9fcbe52fbe44aed760af1007d55e
|
4
|
+
data.tar.gz: 3d06020053b522e6e2934c1697020c465c4dd3d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14229d53a733c59ce72489dd070d749b32771c1476d202e416870cc357e548186082a2663d0ab758b3aab4091ef1989c967ba19d41dd30cd9c931c37f55c61e1
|
7
|
+
data.tar.gz: 97fd33e7a6713c1135f043bcc192d825c952e91bdcb0f12be978834c9b0733dd0a9572146b0547b02a3b5e2080dc0930c7d4d058dce5144e9766630fa11316d1
|
@@ -99,9 +99,15 @@ class LogStash::Filters::Sumo < LogStash::Filters::Base
|
|
99
99
|
public
|
100
100
|
def filter(event)
|
101
101
|
if @field && event[@field]
|
102
|
+
begin
|
102
103
|
data = parse_page(event[@field])
|
103
104
|
data.each { |k, v|event[k.to_s]=v }
|
104
105
|
@logger.debug("SUMO> ",:pg => event[@field],:data => data)
|
106
|
+
rescue => e
|
107
|
+
@logger.error("SUMO> ",:pg => event[@field],:exception => e)
|
108
|
+
|
109
|
+
end
|
110
|
+
|
105
111
|
end
|
106
112
|
|
107
113
|
# filter_matched should go in the last line of our successful code
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-filter-sumo'
|
3
|
-
s.version = '3.0.
|
3
|
+
s.version = '3.0.10'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = "This filter extracts interessting SUMO values from the page element if present."
|
6
6
|
s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
|