Masking in logs and the log viewer
This page is for administrators. Logs are full of personal data: addresses, e-mail addresses in URLs, user agents. Exponential masks them in two places, when writing request logs and when showing any log (Log viewer: Privacy, Request logs).
Note This page describes features and common practice; it is not legal advice. Check the law that applies to your organization with your legal counsel.
Contents
When writing
site.ini [RequestLogSettings] for 404.log and security.log:
MaskIP=enabled(default): the client address with its host part hidden (203.0.x.x,2001:db8:x:x); the raw address is never written to a file.disabledwrites it in full, "only for a site that has a reason and a legal basis for it".- In
404.logevery query value is replaced by***; insecurity.logquery values are kept as evidence, with secrets, e-mail and IP addresses in them masked. - User agents: a short hash and the first 60 characters.
Other kernel logs (error.log, debug.log ...) are written as the code writes them; they are masked when shown.
When showing
settings/logviewer.ini [RedactionSettings]:
| Setting | Masks |
|---|---|
MaskEmails | [email protected] becomes j***@***.com |
MaskIPs | 203.0.113.7 becomes 203.0.x.x; IPv6 keeps its first two groups |
MaskSecrets | passwords in addresses, password=, token=, api_key= values, Bearer and Basic credentials, JSON web tokens, session ids and cookies, long keys and hashes |
SecretSettings[], SecretGroups[] | always masked, whatever the switches |
Downloads from the viewer are masked the same way.
Unmasked access
A user with the policy setup/unmasklogs can switch Show unmasked on for themselves; it applies to the page, its
polls and its downloads, and the audit records that the file was read unmasked. Give the policy to very few people,
for investigations.
Good practice
- Make screenshots and support reports with masking on, as the log viewer's documentation advises.
- When you send a log to a supplier, send a masked download, not the raw file.
- Web server access logs are outside Exponential and usually contain full addresses: set their retention and masking in the web server or with your host.
Related pages
- The log viewer
- Request logs
- Log retention
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.