Files
cheatsheet-tldr/tldr/zeek
2025-07-21 00:23:22 +00:00

35 lines
995 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# zeek
> Passive network traffic analyzer.
> Any output and log files will be saved to the current working directory.
> More information: <https://docs.zeek.org/en/lts/quickstart.html#zeek-as-a-command-line-utility>.
- Analyze live traffic from a network interface:
`sudo zeek --iface {{interface}}`
- Analyze live traffic from a network interface and load custom scripts:
`sudo zeek --iface {{interface}} {{script1 script2 ...}}`
- Analyze live traffic from a network interface, without loading any scripts:
`sudo zeek --bare-mode --iface {{interface}}`
- Analyze live traffic from a network interface, applying a `tcpdump` filter:
`sudo zeek --filter {{path/to/filter}} --iface {{interface}}`
- Analyze live traffic from a network interface using a watchdog timer:
`sudo zeek --watchdog --iface {{interface}}`
- Analyze traffic from a PCAP file:
`zeek --readfile {{path/to/file.trace}}`