logstash-filter-webservicemap 1.0.3 → 1.1.0
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/CHANGELOG.md +4 -1
- data/lib/logstash/filters/webservicemap.rb +11 -3
- data/logstash-filter-webservicemap.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: 3c9eaaf8a52e8c83dea14a5b67f02bbdaa195422
|
4
|
+
data.tar.gz: 433bb4b6b1c63d2ab289de75da9f0723289fd3e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4289a676827193aa4cbf99a99738e8ea43c1adc72cfe6c50142d9965edbad6c3fe6d8d7deb80dcf8aa2802a996b072463f1f8ecda433bb4f202ef966eed466b8
|
7
|
+
data.tar.gz: ce25b367ae0e46440cf53f9ade30cfa93323aed8c94558856125f4075a8f9f8da870633ef45657ded0a8037b969986daeb7183afe4346149240bd6f42a3f2189
|
data/CHANGELOG.md
CHANGED
@@ -130,11 +130,19 @@ class LogStash::Filters::WebServiceMap < LogStash::Filters::Base
|
|
130
130
|
extension = get_extension(path)
|
131
131
|
temp_extension = '_temp'+extension;
|
132
132
|
file_name = Digest::SHA1.hexdigest path
|
133
|
-
|
134
|
-
open(
|
135
|
-
|
133
|
+
begin
|
134
|
+
File.open(file_name+temp_extension, 'wb') do |saved_file|
|
135
|
+
open(path, 'rb') do |read_file|
|
136
|
+
saved_file.write(read_file.read)
|
137
|
+
end
|
136
138
|
end
|
139
|
+
rescue Exception => _
|
140
|
+
if registering
|
141
|
+
raise "#{self.class.name}: Failed to initialize with #{file_name} and path #{path}"
|
142
|
+
end
|
143
|
+
@logger.warn("#{self.class.name}: Something happened with URL. Continuing with old map", :map_path => file_name, :path => path)
|
137
144
|
end
|
145
|
+
|
138
146
|
begin
|
139
147
|
load_file(registering, extension, file_name+temp_extension)
|
140
148
|
FileUtils.mv(file_name+temp_extension, file_name+extension)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-filter-webservicemap'
|
4
|
-
s.version = '1.0
|
4
|
+
s.version = '1.1.0'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "A general search and replace tool which uses a configured web service to determine replacement values."
|
7
7
|
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 logstash-filter-webservicemap. This gem is not a stand-alone program. See https://github.com/angel9484/logstash-filter-webservicemap"
|