Selective Logging for Text Payloads
To select the fields in the text format payloads, use the <TextSelectiveLog> tag in the log policy XML file. This table explains the field names for logging in a text payload.
Parameter | Description |
---|---|
Prefix | Specifies a prefix string to be printed before the value of string in the payload to be selectively logged. For example, for <Prefix>SSN</Prefix>, the selectively log string is SSN : 123 45 6789 |
LineNumber | Specifies a line number which contains the string to be selectively logged. |
StartsWith | Specifies the prefix for the string to be selectively logged. |
Regex | Specifies a regular expression pattern which matches the data string to be selectively logged. |
StartIndex | Specifies an index of the data string at which masking starts. |
EndIndex | Specifies an index of the data string at which masking ends. |
Example of Selective Logging Policy for Text Payloads
<TextSelectiveLog> <TextToLog> <Prefix>SSN</Prefix> <LineNumber>1</LineNumber> <StartsWith>XSD </StartsWith> <Regex></Regex> <StartIndex>1</StartIndex> <EndIndex>11</EndIndex> </TextToLog> <TextToLog> <Prefix></Prefix> <LineNumber>2</LineNumber> <StartsWith></StartsWith> <Regex>XSD</Regex> <StartIndex>1</StartIndex> <EndIndex>11</EndIndex> </TextToLog> </TextSelectiveLog>
Copyright © Cloud Software Group, Inc. All rights reserved.