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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c77f3677f1eaa6dfefa44e0b6b95a807da4f7a50
|
4
|
+
data.tar.gz: 670444496c3b7227eb07f1f5ca78a0ac6e25c65a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
@@ -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
|