Skip to content
Maskline home

How to remove passwords and personal data from logs

Mask every secret and personal detail in the log before it leaves your machine, and rotate any key that was already shared.

What logs and config files give away

  • Passwords, API keys, access tokens and private keys.
  • Connection strings with a user name and password in them.
  • Email addresses, user names and customer IDs.
  • IP addresses, MAC addresses and host names.
  • Names and addresses from the data being processed.

Clean it by hand

  1. Search for words such as key, token, secret, password and Authorization.
  2. Replace each value with a placeholder, keeping the name of the setting.
  3. Search for @ to find email addresses, and for numbers with dots to find IP addresses.
  4. Read the whole log once more before you share it.

Mask it with Maskline

Paste the log into Studio. Passwords, keys, tokens, emails, IP addresses and the other details are masked, and the rest of the log stays as it was, so the error still makes sense. Add your own host and project names to the words library. Paste the answer into Restore to see it with the real values.

Nothing you paste is sent to our servers.

If a key was already shared anywhere, masking it now does not help. Rotate it.

Start masking for free.

Get started free