diff options
author | Ali Masarwa <amasarwa@redhat.com> | 2024-12-01 12:28:03 +0100 |
---|---|---|
committer | Ali Masarwa <amasarwa@redhat.com> | 2024-12-17 12:06:04 +0100 |
commit | ca9e0f40612bc2ed98f0c4cf3119f06f0beed812 (patch) | |
tree | 16b004a3a290967b645432a2019683c20a216736 /examples | |
parent | test/rgw/logging: add bucket logging test suite to teuthology (diff) | |
download | ceph-ca9e0f40612bc2ed98f0c4cf3119f06f0beed812.tar.xz ceph-ca9e0f40612bc2ed98f0c4cf3119f06f0beed812.zip |
RGW/logging: add filtering for bucket logging
Signed-off-by: Ali Masarwa <amasarwa@redhat.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/rgw/boto3/bucket_logging.py | 11 | ||||
-rw-r--r-- | examples/rgw/boto3/service-2.sdk-extras.json | 4 |
2 files changed, 15 insertions, 0 deletions
diff --git a/examples/rgw/boto3/bucket_logging.py b/examples/rgw/boto3/bucket_logging.py index fdc219c5765..7a972dac8bc 100644 --- a/examples/rgw/boto3/bucket_logging.py +++ b/examples/rgw/boto3/bucket_logging.py @@ -39,6 +39,17 @@ bucket_logging_conf = {'LoggingEnabled': { }, 'ObjectRollTime': 60, 'LoggingType': 'Journal', + "Filter": { + "Key": { + "FilterRules": + [ + { + "Name": "prefix", + "Value": "myfile" + } + ] + } + } } } diff --git a/examples/rgw/boto3/service-2.sdk-extras.json b/examples/rgw/boto3/service-2.sdk-extras.json index 5c22ee9f248..15aa6bc8538 100644 --- a/examples/rgw/boto3/service-2.sdk-extras.json +++ b/examples/rgw/boto3/service-2.sdk-extras.json @@ -287,6 +287,10 @@ "RecordsBatchSize":{ "shape":"RecordsBatchSize", "documentation":"indicates how many records to batch in memory before writing to the object. if set to zero, records are written syncronously to the object. if <code>ObjectRollTime</code>e is reached, the batch of records will be written to the object regardless of the number of records. </p>" + }, + "Filter":{ + "shape":"NotificationConfigurationFilter", + "documentation":"<p>A filter for all log object. Types of filter for the object by its: attributes, tags and key (prefix, suffix and regex).</p>" } }, "documentation":"<p>Describes where logs are stored the prefix assigned to all log object keys for a bucket, and their format. also, the level the delivery guarantee of the records.</p>" |