SubstituteStringEntry - Amazon CloudWatch Logs
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

SubstituteStringEntry

This object defines one log field key that will be replaced using the substituteString processor.

Contents

from

The regular expression string to be replaced. Special regex characters such as [ and ] must be escaped using \\ when using double quotes and with \ when using single quotes. For more information, see Class Pattern on the Oracle web site.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 128.

Required: Yes

source

The key to modify

Type: String

Length Constraints: Minimum length of 1. Maximum length of 128.

Required: Yes

to

The string to be substituted for each match of from

Type: String

Length Constraints: Minimum length of 1. Maximum length of 128.

Required: Yes

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: