fluent-plugin-cloudwatch-logs 0.7.2 → 0.7.3
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 +4 -4
- data/README.md +31 -21
- data/lib/fluent/plugin/cloudwatch/logs/version.rb +1 -1
- data/lib/fluent/plugin/out_cloudwatch_logs.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac2327006fac3805ebf9fa2861895618806da41cfb2fc7cb58940b0c4f72049e
|
4
|
+
data.tar.gz: 0d7387d3d62c0c834a76a3c552b2b2e0dca81115a03ebda51074933420689ed6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df9deb817b1c0ff936ff777efe26df89f9e07c681951fa1c2840edb49b4b02dc1e4688e7df842f9ef7608cf8b8beeb9c976b0ee55be4a87dbe84d710eec6dbed
|
7
|
+
data.tar.gz: c72a272b1bd52f597f839bfa8468f8c8736e51206adc43385a7c91c031c9631e183d6061a8ecd524d0b38852f9d573d8b682fb7d9140bf5b02530e6ecc90dd6f
|
data/README.md
CHANGED
@@ -97,26 +97,34 @@ Fetch sample log from CloudWatch Logs:
|
|
97
97
|
</match>
|
98
98
|
```
|
99
99
|
|
100
|
-
* `
|
101
|
-
* `
|
102
|
-
* `
|
103
|
-
* `
|
104
|
-
* `max_message_length`: maximum length of the message
|
105
|
-
* `max_events_per_batch`: maximum number of events to send at once (default 10000)
|
106
|
-
* `use_tag_as_group`: to use tag as a group name
|
107
|
-
* `use_tag_as_stream`: to use tag as a stream name
|
100
|
+
* `auto_create_stream`: to create log group and stream automatically. (defaults to false)
|
101
|
+
* `concurrency`: use to set the number of threads pushing data to CloudWatch. (default: 1)
|
102
|
+
* `endpoint`: use this parameter to connect to the local API endpoint (for testing)
|
103
|
+
* `http_proxy`: use to set an optional HTTP proxy
|
108
104
|
* `include_time_key`: include time key as part of the log entry (defaults to UTC)
|
105
|
+
* `json_handler`: name of the library to be used to handle JSON data. For now, supported libraries are `json` (default) and `yajl`.
|
109
106
|
* `localtime`: use localtime timezone for `include_time_key` output (overrides UTC default)
|
107
|
+
* `log_group_aws_tags`: set a hash with keys and values to tag the log group resource
|
108
|
+
* `log_group_aws_tags_key`: use specified field of records as AWS tags for the log group
|
109
|
+
* `log_group_name`: name of log group to store logs
|
110
110
|
* `log_group_name_key`: use specified field of records as log group name
|
111
|
+
* `log_rejected_request`: output `rejected_log_events_info` request log. (defaults to false)
|
112
|
+
* `log_stream_name`: name of log stream to store logs
|
111
113
|
* `log_stream_name_key`: use specified field of records as log stream name
|
114
|
+
* `max_events_per_batch`: maximum number of events to send at once (default 10000)
|
115
|
+
* `max_message_length`: maximum length of the message
|
116
|
+
* `message_keys`: keys to send messages as events
|
117
|
+
* `put_log_events_disable_retry_limit`: if true, `put_log_events_retry_limit` will be ignored
|
118
|
+
* `put_log_events_retry_limit`: maximum count of retry (if exceeding this, the events will be discarded)
|
119
|
+
* `put_log_events_retry_wait`: time before retrying PutLogEvents (retry interval increases exponentially like `put_log_events_retry_wait * (2 ^ retry_count)`)
|
120
|
+
* `remove_log_group_aws_tags_key`: remove field specified by `log_group_aws_tags_key`
|
112
121
|
* `remove_log_group_name_key`: remove field specified by `log_group_name_key`
|
113
122
|
* `remove_log_stream_name_key`: remove field specified by `log_stream_name_key`
|
114
|
-
* `
|
115
|
-
* `
|
116
|
-
* `
|
117
|
-
* `
|
118
|
-
* `
|
119
|
-
* `log_rejected_request`: output `rejected_log_events_info` request log. (defaults to false)
|
123
|
+
* `remove_retention_in_days`: remove field specified by `retention_in_days`
|
124
|
+
* `retention_in_days`: use to set the expiry time for log group when created with `auto_create_stream`. (default to no expiry)
|
125
|
+
* `retention_in_days_key`: use specified field of records as retention period
|
126
|
+
* `use_tag_as_group`: to use tag as a group name
|
127
|
+
* `use_tag_as_stream`: to use tag as a stream name
|
120
128
|
|
121
129
|
### in_cloudwatch_logs
|
122
130
|
|
@@ -133,16 +141,18 @@ Fetch sample log from CloudWatch Logs:
|
|
133
141
|
</source>
|
134
142
|
```
|
135
143
|
|
136
|
-
* `tag`: fluentd tag
|
137
|
-
* `log_group_name`: name of log group to fetch logs
|
138
|
-
* `log_stream_name`: name of log stream to fetch logs
|
139
|
-
* `use_log_stream_name_prefix`: to use `log_stream_name` as log stream name prefix (default false)
|
140
|
-
* `state_file`: file to store current state (e.g. next\_forward\_token)
|
141
|
-
* `endpoint`: use this parameter to connect to the local API endpoint (for testing)
|
142
|
-
* `aws_use_sts`: use [AssumeRoleCredentials](http://docs.aws.amazon.com/sdkforruby/api/Aws/AssumeRoleCredentials.html) to authenticate, rather than the [default credential hierarchy](http://docs.aws.amazon.com/sdkforruby/api/Aws/CloudWatchLogs/Client.html#initialize-instance_method). See 'Cross-Account Operation' below for more detail.
|
143
144
|
* `aws_sts_role_arn`: the role ARN to assume when using cross-account sts authentication
|
144
145
|
* `aws_sts_session_name`: the session name to use with sts authentication (default: `fluentd`)
|
146
|
+
* `aws_use_sts`: use [AssumeRoleCredentials](http://docs.aws.amazon.com/sdkforruby/api/Aws/AssumeRoleCredentials.html) to authenticate, rather than the [default credential hierarchy](http://docs.aws.amazon.com/sdkforruby/api/Aws/CloudWatchLogs/Client.html#initialize-instance_method). See 'Cross-Account Operation' below for more detail.
|
147
|
+
* `endpoint`: use this parameter to connect to the local API endpoint (for testing)
|
148
|
+
* `fetch_interval`: time period in seconds between checking CloudWatch for new logs. (default: 60)
|
149
|
+
* `http_proxy`: use to set an optional HTTP proxy
|
145
150
|
* `json_handler`: name of the library to be used to handle JSON data. For now, supported libraries are `json` (default) and `yajl`.
|
151
|
+
* `log_group_name`: name of log group to fetch logs
|
152
|
+
* `log_stream_name`: name of log stream to fetch logs
|
153
|
+
* `state_file`: file to store current state (e.g. next\_forward\_token)
|
154
|
+
* `tag`: fluentd tag
|
155
|
+
* `use_log_stream_name_prefix`: to use `log_stream_name` as log stream name prefix (default false)
|
146
156
|
* `use_todays_log_stream`: use todays and yesterdays date as log stream name prefix (formatted YYYY/MM/DD). (default: `false`)
|
147
157
|
|
148
158
|
## Test
|
@@ -43,7 +43,7 @@ module Fluent::Plugin
|
|
43
43
|
config_param :retention_in_days_key, :string, default: nil
|
44
44
|
config_param :remove_retention_in_days, :bool, default: false
|
45
45
|
config_param :json_handler, :enum, list: [:yajl, :json], :default => :yajl
|
46
|
-
config_param :
|
46
|
+
config_param :log_rejected_request, :bool, :default => false
|
47
47
|
|
48
48
|
config_section :buffer do
|
49
49
|
config_set_default :@type, DEFAULT_BUFFER_TYPE
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-cloudwatch-logs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryota Arai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|