1. Reducing before sending #
The first economic argument.
The levers #
| Lever | Processor | Typical gain | Risk |
|---|---|---|---|
| Drop unneeded levels | Severity Filter | High on verbose applications | Losing DEBUG that is useful during incidents: keep it in object storage |
| Deduplicate | Deduplicate Logs | High on looping errors | Count occurrences (count field) |
| Delete fields | Delete Fields | Medium | Removing a field used by a dashboard |
| Sample | Sampling | Proportional to the rate | Skewing counts: reserve it for success logs |
| Convert logs into metrics | Extract Metric / Count | Very high | Loss of detail: keep a sample |
Good practice: Measure before cutting: the per-processor throughput shown on the pipeline gives the real gain of each rule, and Bindplane's recommendations (Pipeline Intelligence) flag sources where a reduction is possible.
2. Protecting data #
Masking as close to the source as possible.
Masking #
The Mask Sensitive Data processor replaces recognized patterns (email addresses, credit card numbers, phone numbers, IP addresses, social security numbers) or your own regular expressions with a masked value, in the log body and in the chosen attributes.
{"msg":"paiement refusé","user":"alice@example.com","card":"4111 1111 1111 1111"}
# après masquage
{"msg":"paiement refusé","user":"[fqdn_masked]","card":"[credit_card_masked]"}Good to know: The exact format of masked values depends on the chosen rules: check it with a snapshot after the processor.
Common mistake: Masking only in the backend is not enough: the sensitive data has already crossed the network and may have been stored. Put masking in the edge collector, before any destination.
3. Routing #
One collection, several destinations.
Routing #
A configuration can send to several destinations, each with its own processors. The routing connector goes further: it directs each record, based on a condition (attribute, source, content), to a different branch of the pipeline.
- SIEM: only security logs (authentication, firewall), already masked.
- Observability tool: filtered application logs.
- Object storage (S3, GCS): everything, at low cost, to rehydrate later during an investigation.
Good practice: A backend migration can be done safely by adding the new destination next to the old one, comparing for a few weeks, then removing the old one with a simple rollout.
