Last winter a friend in Delhi planned a family trip that kept growing. Every cousin wanted one more stop, and by the third revision the itinerary had twenty-two entries, a hotel in each corner of the city and a budget that no longer closed. She did not fix it by cancelling at random. She asked which stops were load-bearing, which could be merged and which could be dropped without anyone noticing. Security teams face the same puzzle with log streams, and the method they use is a core piece of SecDataOps. Here is that method as a short, repeatable how-to.
Why SecDataOps teams cut a stream
Every security log costs money to collect, move, index and keep. When one source dominates the bill, such as firewall flow records or verbose endpoint events, finance asks for cuts. Done carelessly, cuts blind the detections built on that data. The Ops Atlas, a reference published by xOps School, treats this as a routine job in SecDataOps and gives it a named playbook. The overview lives at the Atlas page on SecDataOps; below I walk through the playbook in my own words.
Step 1: Name the stream and its owner
Start with one stream, not the whole estate. Write its name, the system that produces it, who owns it and what it costs per day. If you cannot name an owner, stop and find one. A cut without an owner is a decision nobody can reverse or defend. This is the same instinct as asking who is paying for a booking before cancelling it.
Step 2: List every consumer that depends on it
The first real step in the Atlas playbook is to list the detections, reports and audits that read the stream. Search your rule repository for the source name, the table it lands in and any fields it supplies. Include people as well as rules: an analyst who runs a weekly query is a consumer too.
For the itinerary, this is the moment when she asked each relative which stop they really cared about. One uncle only wanted the old fort. A rule that only needs one field from a stream is that uncle.
Step 3: Classify the fields
Next, sort the fields of each record into three bins: needed by someone on your list, useful but not critical, and unused. Be strict about evidence. If no consumer reads a field, mark it unused even if it looks interesting. The Atlas notes that a mismatch between what a rule expects and what a source supplies can silently render the rule useless, so be careful to check names and types, not only whether the field exists.
Step 4: Choose the lever
The Atlas names four levers for reducing a stream. Pick the gentlest one that meets the budget.
- Trim: drop the unused fields from each record. Cheap, safe, and often a surprising saving.
- Summarise: replace many similar events with an aggregate, such as a count per source and destination per interval. Good for chatty network data.
- Route: send the full-fidelity stream to cheap storage and keep only a selection in the expensive tier.
- Sample: keep a fraction of events. This is the riskiest lever, because rare, important events can vanish, so use it last.
The Atlas illustrates the routing-plus-summary combination with a costed example: a 400 GB-per-day firewall flow stream, all kept in the premium tier, costs about 400 units a day, whereas 8 GB of daily summaries in premium with the raw data held in a lake for 400 days lands near 164 units, and raw retention rises from three months to over thirteen. Spending dropped although more is preserved than before. That counterintuitive result is the reason for choosing routing before sampling.
Step 5: Replay a week of raw data
This step separates careful teams from hopeful ones. Take a recent week of raw records and run them through the new design in a test environment. Then confirm that every detection on your Step 2 list still fires on the same events as before. If a rule goes quiet, either the field you removed was needed or the summary lost detail the rule uses. Adjust and replay again.
The itinerary equivalent is walking the new route on a map before booking anything. She discovered that merging two neighbourhoods made the Metro changes awkward and put one stop back.
Step 6: Check the plumbing around the change
Several quiet failures lurk beside the cut itself. The Atlas lists a few worth checking before go-live: collectors with memory-only buffers do not survive restarts, so prefer disk buffering for streams you cannot afford to lose; the classic syslog protocol has no acknowledgement; and replays double-count unless each event has a stable identifier. If the raw stream heads to a lake, verify the schema there as well, and make sure every record carries two UTC stamps: one for when it happened, one for when your pipeline handled it.
Step 7: Roll out with a canary and a monitor
Switch over a small portion first. Add a canary record, a harmless test event sent on purpose, so you can see it reach each tier. Put a monitor on the new route with a freshness target and a page after a stated silence. Keep the old path available for a defined period. The Atlas suggests running a silence test afterwards to prove your new alerting really notices when the stream stops.
Step 8: Record the decision
Finally, update the stream’s contract, a short page listing the owner, schema, mandatory fields, freshness target, tiers, retention, canary, price and any known holes. Note the date of the change and the replay result. Six months later, when someone asks why the field is missing, you will have an answer that takes ten seconds.
A small worked example
Suppose a firewall stream feeds three rules: one watches for connections to unusual ports, one counts denied traffic per source and one supports a quarterly audit report. Listing the dependents shows that the port rule needs destination port and action, the denial rule needs source address and action, and the audit needs only daily totals. Fields such as interface name and rule counters are unused by anyone. Trimming them is safe. Summarising per source, destination and port per five minutes serves two of the three consumers, while the raw stream goes to cheap storage for investigations. The replay then confirms the rules fire on the same events as before. Notice that the whole analysis fits on a single page and takes an afternoon, not a project.
Questions to ask before you start
- Who is the owner, and who approves a change?
- Which rules, reports and people read this stream today?
- What would we lose if a week of data vanished tomorrow?
- Can we prove, with replay, that nothing we rely on breaks?
Common mistakes to avoid
- Cutting before listing the consumers. You cannot protect what you did not find.
- Sampling first because it sounds simplest.
- Dropping the raw copy after normalising. The Atlas wants originals kept somewhere cheap so parsing errors remain fixable.
- Choosing a retention shorter than the platform’s included window. The Atlas gives an example of one cloud plan with a 31-day inclusion where shortening below that saves nothing.
Back to the Delhi trip
My friend’s final plan had fourteen stops, two hotels and a budget that closed. Nobody complained, because she had checked who cared about what before she cut. Should you be planning a visit yourself, our tips on arranging a relaxed full-city sightseeing plan in Delhi and the broader guide to the capital’s heritage, food and culture are good companions.
The principle carries back to logs. Cut with evidence, prove with replay, and write the reason down. A stream that is cheaper and still catches everything it used to is a quiet success, which is exactly what this kind of engineering aims to deliver.