Developers log full request bodies and you find credit card numbers and emails in the log store. What do you do?
AdvancedScenarioLogging Pipelines
Answer
Situation read → This is a data-protection incident (PCI DSS / GDPR), not just a logging bug.
What I'd do →
- Raise it with security, scope which indices, buckets and backups contain the data, and restrict access immediately.
- Stop the source: remove body logging or add an allow-list of safe fields in the app.
- Add redaction in the pipeline as a safety net (Vector
remapwithredact(), Fluent Bit Lua filter, OTel Collectorredactionortransformprocessor). - Delete or reindex affected data, including archives and snapshots, per the retention and legal guidance.
- Add a CI check or log linter and periodic scanning for PAN/email patterns.
Why → Logs are often less protected than databases and copied into many places.
Interview tip → Lead with containment and notification, then the technical fix.
More on Logging Pipelines
Developers SSH into servers and `grep` log files to debug. You are asked to centralise logging. Where do you start?BeginnerYour app writes free-text logs like `User 42 paid 19.99 in 340ms`. Why push for structured logging, and how?BeginnerLoki ingestion is failing with `stream limit exceeded` and the ingester memory is exploding. What happened?IntermediateFluent Bit pods on busy nodes are dropping logs during traffic spikes. How do you make the pipeline lossless?IntermediateThe Elasticsearch cluster for logs goes red every Monday after the weekend batch jobs. How do you stabilise it?AdvancedFinance says the log bill doubled in a quarter. How do you cut it without losing debugging ability?Intermediate