Running Zeek for Canadian clients: keeping connection logs and captures in Canada

I’m setting up Zeek for a few Canadian clients who need their data kept in Canada because of PIPEDA and provincial rules in BC and Quebec. The sensors run on Canadian networks, but Zeek logs are detailed enough that I want to be careful about where they go. These are the things I’m checking:

  1. Log contents. conn, dns, http, ssl and files logs hold IP addresses, domains, user agents and file names, so I treat them as personal data.
  2. Retention. I set clear rotation and retention periods instead of keeping logs forever.
  3. Log shipping. When logs go to a SIEM, Elasticsearch or a data lake, that backend has to sit in a Canadian data centre too.
  4. File extraction. Extracted files can contain personal documents, so I limit what gets saved and encrypt it.
  5. Intel lookups. Sending IPs or hashes to outside threat intel services can move data abroad, so I review each integration.
  6. Cluster layout. Managers, proxies, workers and loggers all stay in Canada, including any cloud nodes.
  7. Backups. Scripts, configuration and retained logs are backed up to encrypted Canadian storage.

What else would you check when network logs have to stay inside one country?

Your list seems thorough, and I’m assuming that data movement (3. Log shipping), is over an encrypted channel, so the only other non-technical issue would be to ensure your clients are aware and sign off.

One extra operational check: include packet capture files (Zeek -w output or full-pcap taps), not just conn/dns/http logs. PCAPs contain payloads and are easy to leave in /tmp or a default capture directory that later gets shipped to a central collector. Confirm the capture path, rotation, compression and deletion are all on Canadian storage, and that Filebeat/Elastic Agent or similar shippers are not configured to send raw files to an out-of-country endpoint. Also check crash dumps and temporary spool files, since they can contain fragments of log data.

@robertwilson That makes little sense because you run Zeek so you don’t need to collect pcaps, or because doing so is prohibitively expensive.