Skip to content
ScrubLogs

Guides

How to share logs with ChatGPT or Claude safely

Updated

Pasting a stack trace into ChatGPT, Claude, Gemini or Copilot is one of the fastest ways to debug. But a log is a record of your system at work, and it carries the keys to that system and details about the people using it.

The good news: an AI doesn’t need any of that to help you.

What to remove

Secrets, which give access to your systems:

Personal data, which belongs to your customers and colleagues:

Internal details you may not want to share:

What to keep

The AI needs to understand what happened. Keep:

That last point is why deleting values doesn’t work well. If every email becomes [REDACTED], the AI can’t tell one user from another. Consistent placeholders fix this: the first email becomes <EMAIL_1> everywhere it appears, the second <EMAIL_2>, and the log still tells the same story.

A two-minute routine

  1. Cut the log down to the relevant window: the error and a few dozen lines before it. Less text means less to leak, and better answers.
  2. Paste it into ScrubLogs. It highlights and replaces keys, tokens, passwords, emails, IPs and more with numbered placeholders. It runs in your browser; nothing is uploaded.
  3. Review the highlights. Click anything you need to keep, and select anything it missed (names and addresses have no fixed pattern) and press Redact selection.
  4. Copy the cleaned text and paste that into the AI.
  5. Read the answer with your placeholders in mind. When the AI says “<HOST_1> is refusing connections”, you know which host it means.

Check your company’s AI policy

Many companies now have rules about what may be shared with AI tools, and which tools are approved. Business and enterprise plans of the major assistants usually exclude your conversations from model training by default, but your data is still stored by a third party. Redacting first keeps you within almost any policy.

If something sensitive has already been pasted, see pasted an API key into ChatGPT.

What these keys look like

More guides