Sample Log Policy XML File
See the following example log policy file:
<?xml version="1.0" encoding="UTF-8"?> <LogPolicies> <LogPolicy> <Name>P1</Name> <MaskPolicy> <MaskChar>X</MaskChar> <MaskHeader> <HeaderName>client-ip</HeaderName> <HeaderName>content-type</HeaderName> </MaskHeader> <MaskQueryString> <Parameters> <ParamName>storenumber1</ParamName> <ParamName>rmsskuid</ParamName> </Parameters> </MaskQueryString> <PropertiesMaskFields> <PropertyToMask> <PropertyKey>Tibco</PropertyKey> <RemoveField>N</RemoveField> <StartIndex>3</StartIndex> <EndIndex>9</EndIndex> <LengthOfClearAtStart>2</LengthOfClearAtStart> <LengthOfClearAtEnd>2</LengthOfClearAtEnd> </PropertyToMask> <PropertyToMask> <PropertyKey>CC</PropertyKey> <RemoveField>N</RemoveField> <StartIndex>3</StartIndex> <EndIndex>9</EndIndex> <LengthOfClearAtStart>4</LengthOfClearAtStart> <LengthOfClearAtEnd>6</LengthOfClearAtEnd> </PropertyToMask> </PropertiesMaskFields> <XMLMaskFields> <XMLMaskField> <MaskFieldPath>/Envelope/Body/Title</MaskFieldPath> <RemoveField>Y</RemoveField> <StartIndex>0</StartIndex> <EndIndex>10</EndIndex> <LengthOfClearAtStart>6</LengthOfClearAtStart> <LengthOfClearAtEnd>2</LengthOfClearAtEnd> </XMLMaskField> <XMLMaskField> <MaskFieldPath>BookStore/Book/ISBN</MaskFieldPath> <RemoveField>Y</RemoveField> <StartIndex>3</StartIndex> <EndIndex>9</EndIndex> <LengthOfClearAtStart>4</LengthOfClearAtStart> <LengthOfClearAtEnd>6</LengthOfClearAtEnd> </XMLMaskField> </XMLMaskFields> <JSONMaskFields> <JSONMaskField> <MaskFieldPath>BookStore.Book.[0].Author</MaskFieldPath> <RemoveField>Y</RemoveField> <StartIndex>0</StartIndex> <EndIndex>10</EndIndex> <LengthOfClearAtStart>4</LengthOfClearAtStart> <LengthOfClearAtEnd>6</LengthOfClearAtEnd> </JSONMaskField> <JSONMaskField> <MaskFieldPath>BookStore.Book.[0].Title</MaskFieldPath> <RemoveField>N</RemoveField> <StartIndex>6</StartIndex> <EndIndex>12</EndIndex> <LengthOfClearAtStart>4</LengthOfClearAtStart> <LengthOfClearAtEnd>6</LengthOfClearAtEnd> </JSONMaskField> <JSONMaskField> <MaskFieldPath>BookStore.Book.[0].ISBN</MaskFieldPath> <RemoveField>N</RemoveField> <StartIndex>3</StartIndex> <EndIndex>9</EndIndex> <LengthOfClearAtStart>4</LengthOfClearAtStart> <LengthOfClearAtEnd>6</LengthOfClearAtEnd> </JSONMaskField> </JSONMaskFields> <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> </MaskPolicy> <SelectiveLogPolicy> <PropertySelectiveLogFields> <PropertyKey>CreditCard</PropertyKey> <PropertyKey>SSN</PropertyKey> </PropertySelectiveLogFields> <XMLSelectiveLogFields> <FieldPath>/Envelope/Body/Title</FieldPath> <FieldPath>/Envelope/Body/Author</FieldPath> </XMLSelectiveLogFields> <JSONSelectiveLogFields> <FieldPath>BookStore.Book.[0].Author</FieldPath> <FieldPath>BookStore.Book.[0].ISBN</FieldPath> </JSONSelectiveLogFields> <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> </SelectiveLogPolicy> </LogPolicy> <LogPolicy> <Name>P2</Name> <MaskPolicy> <MaskChar>X</MaskChar> <MaskHeader> <HeaderName>client-ip</HeaderName> <HeaderName>content-type</HeaderName> </MaskHeader> <MaskQueryString> <Parameters> <ParamName>storenumber1</ParamName> <ParamName>rmsskuid</ParamName> </Parameters> </MaskQueryString> <PropertiesMaskFields> <PropertyToMask> <PropertyKey>SSN</PropertyKey> <RemoveField>N</RemoveField> <StartIndex>3</StartIndex> <EndIndex>9</EndIndex> <LengthOfClearAtStart>4</LengthOfClearAtStart> <LengthOfClearAtEnd>6</LengthOfClearAtEnd> </PropertyToMask> <PropertyToMask> <PropertyKey>CreditCard</PropertyKey> <RemoveField>Y</RemoveField> <StartIndex>3</StartIndex> <EndIndex>9</EndIndex> <LengthOfClearAtStart>1</LengthOfClearAtStart> <LengthOfClearAtEnd>1</LengthOfClearAtEnd> </PropertyToMask> </PropertiesMaskFields> <XMLMaskFields> <XMLMaskField> <MaskFieldPath>/Envelope/Body/Author</MaskFieldPath> <RemoveField>Y</RemoveField> <StartIndex>6</StartIndex> <EndIndex>12</EndIndex> <LengthOfClearAtStart>4</LengthOfClearAtStart> <LengthOfClearAtEnd>6</LengthOfClearAtEnd> </XMLMaskField> <XMLMaskField> <MaskFieldPath>BookStore/Book/ISBN</MaskFieldPath> <RemoveField>Y</RemoveField> <StartIndex>3</StartIndex> <EndIndex>9</EndIndex> <LengthOfClearAtStart>4</LengthOfClearAtStart> <LengthOfClearAtEnd>6</LengthOfClearAtEnd> </XMLMaskField> </XMLMaskFields> <JSONMaskFields> <JSONMaskField> <MaskFieldPath>BookStore.Book.[0].Author</MaskFieldPath> <RemoveField>Y</RemoveField> <StartIndex>0</StartIndex> <EndIndex>10</EndIndex> <LengthOfClearAtStart>4</LengthOfClearAtStart> <LengthOfClearAtEnd>6</LengthOfClearAtEnd> </JSONMaskField> <JSONMaskField> <MaskFieldPath>BookStore.Book.[0].Title</MaskFieldPath> <RemoveField>N</RemoveField> <StartIndex>6</StartIndex> <EndIndex>12</EndIndex> <LengthOfClearAtStart>4</LengthOfClearAtStart> <LengthOfClearAtEnd>6</LengthOfClearAtEnd> </JSONMaskField> <JSONMaskField> <MaskFieldPath>BookStore.Book.[0].ISBN</MaskFieldPath> <RemoveField>N</RemoveField> <StartIndex>3</StartIndex> <EndIndex>9</EndIndex> <LengthOfClearAtStart>4</LengthOfClearAtStart> <LengthOfClearAtEnd>6</LengthOfClearAtEnd> </JSONMaskField> </JSONMaskFields> <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> </MaskPolicy> <SelectiveLogPolicy> <PropertySelectiveLogFields> <PropertyKey>SSN</PropertyKey> <PropertyKey>CreditCard</PropertyKey> </PropertySelectiveLogFields> <XMLSelectiveLogFields> <FieldPath>/SOAP-ENV:Envelope/SOAP-ENV:Body/ns0:BookStore/ns0:Book/ns0:Author</FieldPath> <FieldPath>/SOAP-ENV:Envelope/SOAP-ENV:Body/ns0:BookStore/ns0:Book/ns0:Publisher</FieldPath> </XMLSelectiveLogFields> <JSONSelectiveLogFields> <FieldPath>BookStore.Book.[0].Author</FieldPath> <FieldPath>BookStore.Book.[0].ISBN</FieldPath> </JSONSelectiveLogFields> <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> </SelectiveLogPolicy> </LogPolicy> </LogPolicies>
Copyright © Cloud Software Group, Inc. All rights reserved.