Stop data loss with DLP for Drive

View DLP content and rule size limits

DLP recommended size limits for content and rules

Supported editions for this feature: Enterprise; Education Fundamentals, Standard, Teaching and Learning Upgrade, and PlusCompare your edition

DLP for Drive is also available to Cloud Identity Premium users who are also licensed for Workspace editions that include Drive audit log.

You configure DLP rules to protect sensitive content. To keep DLP rules working to protect your content, make sure your DLP configuration settings stay within the following recommended size limits. Some of these limits are not enforced, but it's recommended you stay within the limits stated in this article. If you exceed these limits, your DLP rule might not work.

Drive DLP Content limits



Drive text content (with markup)

  • 1 MB; go to Searching in Google Drive for details on the search indexing process.
  • Any text beyond this limit is not scanned by DLP for Drive, and the text is truncated.

Number of files scanned within a zip file 


Rule size limits

Rule attribute


Rule count maximum


You cannot save any rules after exceeding this limit. 

Rule description length

500 characters

Individual rule size

1.5 KB

This limit is accrued after you save the rule and it’s compiled by the system. If you reach this limit, you can’t save additional settings for the rule. For example, this limit can be exceeded if you have a very large description or a long list of conditions.

In general, you should not create very large rules. To avoid large rules:

  • Use short rule descriptions
  • Use word lists where possible
  • Avoid using long lists of conditions

All rule configuration settings: The size limit for all DLP rule configuration settings, such as the number of rules and the size of rule descriptions.

2 MB 

This 2 MB limit is the combined size of all DLP rule configuration settings, after you save them and they’re compiled by the system. Notwithstanding any of the limits above, if you reach this limit, you can’t save additional settings. 

Detector size limits

Detector attribute


Word list detector

128 KB

Word list phrase component length (continuous sequences containing only letters, only digits, only non-letter characters, or only non-digit characters)


Size of a regular expression

1,000 characters

Regex detector count and word list detector count maximums combined for all rules

Combined limit: 30

  • Word list detectors maximum (used in all rules):  10
  • Regex detectors maximum (used in all rules): 20

Note that the number word list and Regex detectors are combined and together cannot exceed 30 detectors. 

Email address detector

40,000 entries

Detector size

Notwithstanding the other limits above, an individual detector may not be more than 2 MB

Related information

Was this helpful?
How can we improve it?

Need more help?

Sign in for additional support options to quickly solve your issue

Clear search
Close search
Google apps
Main menu
Search Help Center