Cribl LogTotal Sanitizer: Pseudonymize Sensitive Log Data Inside Cribl Stream

Cribl LogTotal Sanitizer: Pseudonymize Sensitive Log Data Inside Cribl Stream

SOC Prime Team
SOC Prime Team linkedin icon Follow

Sooner or later, every security team hits the same situation: logs that normally just flow quietly through your own pipeline — from source to SIEM, doing their job — suddenly need to leave that pipeline. A vendor asks for a sample to help debug something. A one-off investigation, or a standing need to send telemetry to 3rd parties, or to support a POV of 3rd party products in the cloud. An outside Incident Response firm comes in to help with an incident. A partner integration needs a slice of your data. And that’s exactly when the problem shows up: those logs are still packed with usernames, email addresses, IPs, internal hostnames, sometimes even secrets that never should’ve been logged in the first place. Nobody wants that kind of data wandering outside the team that owns it — but scrubbing it by hand is slow, easy to mess up, and the first thing to get skipped when there’s a deadline.

The Cribl LogTotal Sanitizer, an open-source project by M3NIX, tackles this directly inside Cribl Stream. It takes the sanitization approach behind SOC Prime’s LogTotal and turns it into a standalone Cribl Pack that strips sensitive values out of log data before it reaches its destination. Instead of someone manually scrubbing a file before sending it out — and almost certainly missing something — the Pack swaps sensitive values for safe stand-ins right as the data flows through the pipeline. It’s a layer of protection teams can drop into exactly the pipeline that needs it, without changing how anyone works day to day.

What It Actually Does

The Sanitizer looks for the kinds of information that come up again and again in security work: names, email addresses, IP and MAC addresses, phone numbers, government IDs, payment details, health information, hostnames, and file paths. When it finds one, it doesn’t delete it — it swaps it for a consistent, disguised label instead.

That’s really the whole point. Most redaction tools flatten everything into a generic “REDACTED,” which protects privacy but wrecks the value of the data — you lose the ability to tell whether ten failed logins came from one compromised account or ten different ones. The Sanitizer avoids that. Since the same value always maps to the same disguised label everywhere it appears, analysts can still spot patterns, group related events, and follow a trail through the data — without ever seeing who or what was actually behind it.

That makes it handy in plenty of situations: sending a log sample to a vendor for troubleshooting, exporting data for a support ticket, sharing an excerpt with a partner or an outside investigator, or pulling logs into an AI tool for analysis without exposing real user data. Any time logs need to travel outside their usual pipeline, this is the kind of thing that makes it easy to do safely.

Why It’s Worth Knowing About

Sanitizer gives teams a way to handle data the moment it needs to leave the pipeline’s usual, trusted path — sanitizing it right there in Cribl Stream, instead of pulling in a separate tool or building out a whole new workflow for it.

It’s also part of a bigger shift in how security teams approach data protection: baking safeguards into the pipeline itself, so they’re ready the moment they’re needed, rather than cleaning up after something’s already gone out the door. With logs increasingly flowing through vendor integrations, automated systems, and AI tools, having a consistent, built-in way to sanitize sensitive data before it travels is genuinely useful to have on hand.

The Cribl LogTotal Sanitizer, open source and available on GitHub, is a solid example of that: sensitive data handled automatically, analytical value kept intact, and one less thing to worry about whenever logs need to travel.

Join SOC Prime's Detection as Code platform to improve visibility into threats most relevant to your business. To help you get started and drive immediate value, book a meeting now with SOC Prime experts.

More Articles