The command get-user-defined-log-fields-config is used to query the custom configurations of the user_defined_log_fields
field in the real-time logs of a bucket.
Note
By default, an Alibaba Cloud account has the permissions to query the custom configurations of the user_defined_log_fields
field in the real-time logs of a bucket. Making query requests as a RAM user or by using Security Token Service (STS) requires the oss:GetUserDefinedLogFieldsConfig
permission. For more information, see Attach a custom policy to a RAM user.
Syntax
ossutil api get-user-defined-log-fields-config --bucket value [flags]
Parameter | Type | Description |
--bucket | string | Name of the bucket. |
The get-user-defined-log-fields-config command corresponds to the
GetUserDefinedLogFieldsConfig
operation. For information about the parameters within, see GetUserDefinedLogFieldsConfig.For more information about supported global command-line options, see Global command-line options.
Examples
Query the custom configurations of the
user_defined_log_fields
field in the real-time logs of examplebucket:ossutil api get-user-defined-log-fields-config --bucket examplebucket
Query the custom configurations of the
user_defined_log_fields
field in the real-time logs of examplebucket and display the result in the JSON format:ossutil api get-user-defined-log-fields-config --bucket examplebucket --output-format json
Query the custom configurations of the
user_defined_log_fields
field in the real-time logs of examplebucket and display the result in the YAML format:ossutil api get-user-defined-log-fields-config --bucket examplebucket --output-format yaml