How to use File Name Filters when indexing documents (IDM)

book

Article ID: 159599

calendar_today

Updated On:

Products

Data Loss Prevention Endpoint Prevent Data Loss Prevention Network Monitor Data Loss Prevention Network Prevent for Email Data Loss Prevention Enforce Data Loss Prevention Network Prevent for Web Data Loss Prevention Network Protect Data Loss Prevention Endpoint Discover

Issue/Introduction

How to use file name filters to specify files to include or exclude from indexing.

Resolution

Filters let you specify files to include or exclude from indexing. If the filter fields (File Name Include Filters, File Name Exclude Filters, and Size Filters) are empty, Symantec DLP indexes all documents in the specified .zip file or file share. If you enter anything in the File Name Include Filters textbox, Symantec DLP indexes only files that match the filters you specify. If you enter anything in the File Name Exclude Filters textbox, Symantec DLP indexes all files except those that match the filters you specify. When selecting file name filters, it is recommended to select either exclusion filters or inclusion filters—not both.

The filter syntax is as follows:

* (asterisk)—represents any number of characters.

? (question mark)—represents one character.

, (comma) and newline—represents a logical OR.

In the filter fields, Symantec DLP treats forward slashes (/) and backslashes (\) as equivalent and it ignores whitespace at the beginning or end of the pattern. Filtering does not support escape characters, so you cannot match on literal question marks, commas, or asterisks.

Here are some example filters along with descriptions of Symantec DLP’s behavior if you type them in the File Name Include Filters textbox:

*.txt,*.doc

Symantec DLP indexes only .txt and .doc files in the .zip file or file share, ignoring everything else.

?????.doc

Symantec DLP indexes only .doc files with five-character names, such as hello.doc and stats.doc (but not good.doc or foobar.doc). (Note: Be sure the expression includes the full pathname to the share in question).

*/documentation/*,*/specs/*

Symantec DLP indexes only files in two subdirectories called "documentation" and "specs."

Excerpted from the 8.1 Admin Guide