fluent-plugin-nais 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fdc6303b9eb6eefde308f091e45194b3b2eeb1e4
4
- data.tar.gz: 0e0e558eba6e98ecff6367cf9ce8eac9168b2113
3
+ metadata.gz: 59625fa65272a66dddddddf8c2bb9cf79f5ea114
4
+ data.tar.gz: 7c886c75a7f90d0589a51e8e61ad97c2d3db7258
5
5
  SHA512:
6
- metadata.gz: 731eb4c5bd836731ff10064af1f2cf77ac77f533d93fa3c782655a661786afe7c43cfbdf45e61d18356b5d0421d0617cdf7fd41e73c3a3d8440560b3cf2472e3
7
- data.tar.gz: f4e5664b02a751f441925ae3f308ecb5c4eb6e1fb764ba835e9b932981b2215f5996aca77d8beb2c4b447fd97623a27fe8f49e3c601929b58bed65af98769651
6
+ metadata.gz: b2171af5e632ec83d9a394506aba29db28c5450b9be11759968487167906fb34c063a562518c2544e117f5f1beabd6addab09cb189014330eff3017b6ea2195f
7
+ data.tar.gz: ac7eb4f8c08e315b7faee4fdd1fd1d70b5f13d8c012b959617c8ae92311cbbad94f2c368ab90ed5af9e73a607d8ad1a03e69468db3f2dcd14cd20804e29606c3
@@ -37,7 +37,11 @@ module Fluent::Plugin
37
37
  r['log'] = r.delete('request')
38
38
  r['request'] = r.delete('request_id')
39
39
  else
40
- r['log'] = record['log'].sub(/^\S+ /, '')
40
+ if r.has_key?('timestamp')
41
+ r['log'] = record['log'].sub(/^\S+ \S+ \S+ /, '')
42
+ else
43
+ r['log'] = record['log'].sub(/^\S+ /, '')
44
+ end
41
45
  end
42
46
  end
43
47
  end
@@ -1,7 +1,7 @@
1
1
  module Fluent
2
2
  module Plugin
3
3
  module Nais
4
- VERSION = "0.7.0"
4
+ VERSION = "0.7.1"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-nais
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Terje Sannum