Common wildcard patterns and their behavior
In Spirion Sensitive Data Platform (SDP) (and the underlying scanning engine), selecting “Include” with a wildcard (for example, * or ?) in the path filtering options explicitly restricts the scan scope to only the directories, subdirectories, or files that match that wildcard pattern.
Any items or paths that do not match the pattern are bypassed during discovery and are not queued for content inspection.
How the Scanning Pipeline Processes Wildcard "Include" Paths
- Discovery Agent Filtering:
- When the Discovery Agent enumerates the target filesystem, cloud bucket, or file share, it evaluates each encountered path/item against the include pattern.
- Only matching paths and items are written as
Pendingrows into the local PostgreSQL work queue (search_queue_<scanId>). - All non-matching paths are discarded upfront, reducing scan overhead and queue size.
- Search Worker Processing:
- The Search Agents only pull and inspect files that met the inclusion criteria during the discovery phase.
- Precedence with "Exclude" Rules:
- If both Include and Exclude rules are configured, Exclude rules take precedence.
- A file matching an Include wildcard rule is skipped if it also matches an Exclude wildcard rule.
Common Wildcard Patterns & Their Behavior
Pattern Example | Wildcard Scope | Resulting Scan Behavior |
|---|---|---|
| Directory Wildcard | Scans the |
| Multi-Department Wildcard | Scans any subdirectory matching |
Best Practices & Operational Gotchas
- Trailing Slashes on Folders:
- If you intend to include an entire directory tree using a wildcard, ensure proper folder syntax.
- For example,
C:\Projects\*\vsC:\Projects\*
- For example,
- Be sure to include the trailing backslash character:
\ - Omitting the trailing backslash character
\may cause the engine to match only files named*instead of enumerating subfolder contents.
- Over-Restricting Scope:
- Because "Include" acts as a whitelist filter, any file or folder outside the wildcard pattern is ignored.
- If you only want to skip specific known directories (like
C:\Windows\ornode_modules\), it is usually safer to use Exclude rules instead of broad Include rules.
- Performance Benefit:
- Using targeted "Include" wildcards significantly speeds up scan duration and reduces Agent CPU/disk I/O by preventing the engine from opening and parsing irrelevant files.