8. What should you avoid putting in application security logs?
EasyDetection & response
Technical
Show model answer
Avoid passwords, access tokens, private keys, and unnecessary personal or confidential content. Record enough structured context to investigate the event without copying the sensitive payload.
Control access, retention, and integrity of the logs themselves. Use safe identifiers and fixed event categories where practical; redaction needs checking because error paths can accidentally expose more than normal requests.
What interviewers listen for
- No secrets in logs
- Minimum useful context
- Protect the log store