0046-00000001

Updated at:

Problem description

The region does not support custom configuration of the user_defined_log_fields field in real-time logs.

Causes

The region in which the bucket resides does not support custom logging.  

Examples

The following example shows an invalid PutUserDefinedLogFieldsConfig request that causes the error.

PUT /?userDefinedLogFieldsConfig HTTP/1.1
Date: GMT Date
Content-Length: ContentLength
Content-Type: application/xml
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Authorization: SignatureValue

<?xml version="1.0" encoding="UTF-8"?>
<UserDefinedLogFieldsConfiguration>
	<HeaderSet>
		<header>header1</header>
		<header>header2</header>
		<header>header3</header>
	</HeaderSet>
	<ParamSet>
		<parameter>param1</parameter>
		<parameter>param2</parameter>
	</ParamSet>
</UserDefinedLogFieldsConfiguration>

Solutions

You can refer to PutUserDefinedLogFieldsConfig to fix the problem.