logstash-input-acquia 1.2.0 → 1.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8502810e5de402989520ba3d6e20c9e9da50c7b5
4
- data.tar.gz: c541ad31cce1ee0ddf5d7cee62c2023a025e3004
3
+ metadata.gz: a840b28e80cad39b49e44b7c31ddec7c6c907b3f
4
+ data.tar.gz: f04c3151560fb3205feb29e7cb811d4ecbaf4714
5
5
  SHA512:
6
- metadata.gz: c20979367d6753fdafad45fde29143ad0de36d4f5270b0a47ec266a99f5d93111c207b5aac41ca9d7ea9e6202a22023b7112d44cd8bb9321080ba5805b49b5cd
7
- data.tar.gz: 194575727ba32cda4ecb318d9367a7c61c590bb042dca2445b69e322a321d0eb9c1033b681346d22a3724f161485e6eeb103bbbd7cc44b3b025a1a3aa3557ad9
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.2.0'
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'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-acquia
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Equiem