fluent-plugin-cloudwatch-ingest 0.1.41 → 0.1.44

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: 071cd84a70a8fea5b961a52942f920bb258eb09d
4
- data.tar.gz: f4f34350bc7a06254a73b4d2162dcb367a3c74f6
3
+ metadata.gz: c77f3677f1eaa6dfefa44e0b6b95a807da4f7a50
4
+ data.tar.gz: 670444496c3b7227eb07f1f5ca78a0ac6e25c65a
5
5
  SHA512:
6
- metadata.gz: 212b6281c3557b089241ea33b668f47f5dff63881e878b9ec1ef1f836b101db1766401628e21a3994e7d56121035769f23556a721b34a67ea0eac2acf369f094
7
- data.tar.gz: 2d35b1ed9fb494e5b976ff400544eb50c4b441e99ef837bb554f6847d51c8b208d9e3021cdd1ea1ae8988052cf6bae542e3c177534bf4a99da2568608bca4ef9
6
+ metadata.gz: bb178fc87f33026daa352994191007c162da24baa8b4b62c09607ea7d2bef4136ed8a8bdbea7f4e0b215b5be2b9283b1db2413a5b4205617c4fa2552204b6ba8
7
+ data.tar.gz: d5d2a1318f144641e67c2926da10ee39b1b90a606b667df22e7b3dd3a71cd4ca31fff8f899b3707fff09af02daf5ef85418f58a1dc643293876eb2a5d96d7b1a
data/README.md CHANGED
@@ -41,6 +41,10 @@ Or install it yourself as:
41
41
  state_file_name /mnt/nfs/cloudwatch.state
42
42
  interval 120
43
43
  api_interval 300 # Time to wait between API call failures before retry
44
+ <parse>
45
+ expression ^(?<message>.+)$
46
+ event_time true # Take time from the Cloudwatch event, rather than parse it from the body
47
+ </parse>
44
48
  </source>
45
49
  ```
46
50
 
@@ -2,7 +2,7 @@ module Fluent
2
2
  module Plugin
3
3
  module Cloudwatch
4
4
  module Ingest
5
- VERSION = '0.1.41'.freeze
5
+ VERSION = '0.1.44'.freeze
6
6
  end
7
7
  end
8
8
  end
@@ -48,6 +48,16 @@ module Fluent::Plugin
48
48
  super
49
49
  compat_parameters_convert(conf, :parser)
50
50
  parser_config = conf.elements('parse').first
51
+ unless parser_config
52
+ raise Fluent::ConfigError, '<parse> section is required.'
53
+ end
54
+ unless parser_config['expression']
55
+ raise Fluent::ConfigError, 'parse/expression is required.'
56
+ end
57
+ unless parser_config['event_time']
58
+ raise Fluent::ConfigError, 'parse/event_time is required.'
59
+ end
60
+
51
61
  @parser = parser_create(conf: parser_config)
52
62
  log.info('Configured fluentd-plugin-cloudwatch-ingest')
53
63
  end
@@ -10,6 +10,14 @@ module Fluent
10
10
  config_set_default :time_format, '%Y-%m-%d %H:%M:%S.%L'
11
11
  config_set_default :event_time, true
12
12
 
13
+ def initiaize
14
+ super
15
+ end
16
+
17
+ def configure(conf)
18
+ super
19
+ end
20
+
13
21
  def parse(event)
14
22
  time = nil
15
23
  record = nil
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-cloudwatch-ingest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.41
4
+ version: 0.1.44
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Pointer