Masking Data in Text Payloads
You can mask the data in the text format payloads using the <TextPayLoadMask> tag in the log policy XML file. This table explains the field names for masking the data in a text payload.
Parameter | Description |
---|---|
LineNumber | Specifies the line number which contains the string to be masked. |
Starts with | Specifies a prefix for the data string to be masked. |
Regex | Specifies a regular expression pattern which matches the data string to be masked. |
StartIndex | Specifies an Index of the data string at which masking starts. |
EndIndex | Specifies an Index of the data string at which masking ends. |
LengthOfClearAtStart | Specifies the number of characters to be left clear at the beginning. |
LengthOfClearAtEnd | Specifies the number of characters to be left clear at the end. |
Example of Data Masking in Text Payload
<TextPayLoadMask> <MaskText> <LineNumber></LineNumber> <StartsWith>enerat</StartsWith> <Regex></Regex> <StartIndex>1</StartIndex> <EndIndex>11</EndIndex> <LengthOfClearAtStart>1</LengthOfClearAtStart> <LengthOfClearAtEnd>1</LengthOfClearAtEnd> </MaskText> <MaskText> <LineNumber>4</LineNumber> <StartsWith></StartsWith> <Regex>SSN</Regex> <StartIndex>0</StartIndex> <EndIndex>1</EndIndex> <LengthOfClearAtStart>2</LengthOfClearAtStart> <LengthOfClearAtEnd>2</LengthOfClearAtEnd> </MaskText> <MaskText> <LineNumber>1</LineNumber> <StartsWith></StartsWith> <Regex></Regex> <StartIndex>4</StartIndex> <EndIndex>12</EndIndex> <LengthOfClearAtStart>2</LengthOfClearAtStart> <LengthOfClearAtEnd>2</LengthOfClearAtEnd> </MaskText> </TextPayLoadMask>
Copyright © Cloud Software Group, Inc. All rights reserved.