Shinydocs Pro finds PII and ROT with rules. Each rule is a JSON file, and you can add your own next to the ones that ship with the product. For the shipped rules, see Default PII Rules and Default ROT Rules.
Where the rule files are
On the Shinydocs Pro server, in the Control Center install folder (by default C:\Program Files\Shinydocs Professional\ControlCenter):
-
PII:
Pii Rules\Potential PII\ -
ROT:
Rot Rules\Obsolete\,Rot Rules\Redundant\andRot Rules\Trivial\
Save one rule per file. The shipped files are named <field name>-<value>.json, for example potential_pii-Email_address.json; use a name of your own that won't clash with them. Keep a copy of your custom rules somewhere else too, so you can put them back after a reinstall.
Write a rule
RawQuery is an OpenSearch query (Query DSL) that picks the documents the rule tags. Test it before you apply the rule; see Testing PII and ROT rules.
Tips:
-
Add a
must_noton the rule's own field and value, as in the examples, so documents already tagged aren't processed again. -
Add the
must_notontag-Exclude-from-PII-detectionortag-Exclude-from-ROT-detection, so files people excluded in the Catalog stay excluded. The rule's query is what skips them. -
Extensions are stored in lowercase without the dot (
log, not.log), though some connectors keep the original case.
Apply the rule
-
Restart the Shinydocs Control Center Windows service so it loads the new file. Otherwise it can take an hour or more to appear.
-
In the Control Center, go to Settings > Analysis and open the PII or ROT tab.
-
In Available rules, select your rule and select Add.
-
Select Save changes, check the list of changes, and select Save changes again. Save each tab on its own.
Applied rules are used by every source, the next time each source runs.
Run it on your sources
-
Go to Sources and open a source.
-
In Analysis, make sure Personal & sensitive information (PII) or Non-valuable content (ROT) is on. Personal & sensitive information also needs Reading file contents.
-
Select Run now, or wait for the source's next scheduled update. Each card shows its progress.
Expand a card to see the rule sets applied to it. Manage rule sets opens the PII or ROT tab.
Review the results
-
Overview shows PII and ROT across your sources. See Getting to Know Overview.
-
Catalog: filter on PII or ROT (Any PII, Any ROT, or a single rule's value) and combine them with other filters. The text a PII rule matched is in
pii_matches. See Getting to Know Content Catalog.
Stop using a rule
-
Go to Settings > Analysis and open the PII or ROT tab.
-
In Applied rules, select the rule and select Remove.
-
Select Save changes and confirm.
The rule's tags are removed from each source's documents the next time that source runs.