logstash-input-acquia 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logstash/inputs/acquia.rb +9 -0
- data/logstash-input-acquia.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: a840b28e80cad39b49e44b7c31ddec7c6c907b3f
|
4
|
+
data.tar.gz: f04c3151560fb3205feb29e7cb811d4ecbaf4714
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ea75ea910df60a1b122a6748a66d23e674b22a60c24804119c6127eaa4acaabafe5c0a5832131111891ea6f594e179ffcd587caffc3834dd1d358616c0faeaa
|
7
|
+
data.tar.gz: 4795ffdddab97f9c60cda2bf47f48bb1e7c502b70e10b12233fa19415d3def0af994f15401ee1447c62bfa526a99b71122b54c8fdb2f8d7d99070925a0548535
|
@@ -62,6 +62,15 @@ class LogStash::Inputs::Acquia < LogStash::Inputs::Base
|
|
62
62
|
# Rename some of Acquia's parameters to more relevant Logstash names.
|
63
63
|
log['host'] = log.delete('server')
|
64
64
|
log['message'] = log.delete('text')
|
65
|
+
# Trim off duplicated request id if Acquia has already provided it
|
66
|
+
# separately.
|
67
|
+
if log['request_id']
|
68
|
+
matches = log['message'].match %r{\s+request_id="#{log['request_id']}"\s+$}
|
69
|
+
if matches
|
70
|
+
log['message'] = log['message'][0, log['message'].length - matches[0].length]
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
65
74
|
log['@timestamp'] = Time.parse(log.delete('disp_time') + ' +0000').iso8601
|
66
75
|
|
67
76
|
LogStash::Event.new(log)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.name = 'logstash-input-acquia'
|
4
|
-
s.version = '1.
|
4
|
+
s.version = '1.3.0'
|
5
5
|
s.licenses = ['MIT']
|
6
6
|
s.summary = 'Logstash Input plugin that streams logs from Acquia Cloud'
|
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 gemname. This gem is not a stand-alone program'
|