Join our Newsletter — 33% off our NHI Course
Home› Guides› Zeek for Beginners: Turning Network Traffic Into Readable…
Guide SOC & Detection Engineering

Zeek for Beginners: Turning Network Traffic Into Readable Logs

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 2 December 2026 11 min read
On this page

Zeek is a free tool that watches network traffic and writes short, tidy records of what happened.

This guide is for anyone starting out in IT or security who keeps hearing about Zeek. If your organisation has a network, records like these can show what happened on it after something goes wrong.

In short

  • Zeek is an open-source tool that watches network traffic and turns it into easy-to-search log files.
  • Each kind of activity gets its own log, such as one for connections, one for DNS name lookups and one for web requests.
  • It keeps compact summaries, not full recordings of every packet, so the records are far smaller than a full capture.
  • Zeek only watches. It does not block traffic, so it works alongside firewalls and alerting tools.

What you will learn

  • Explain what Zeek is and what it is not.
  • Read a simple connection log line and say what it shows.
  • Describe how Zeek logs differ from a full packet capture.
  • Ask useful questions about where your network records go.
Network chatter (network traffic)
the data that flows between computers, phones and servers.
Record book (log)
a file where a system writes down events, one line per event.
Full recording (packet capture)
a copy of every piece of data that crossed the network, sometimes called PCAP.

What is Zeek?

Think of a busy parcel depot. One option is to photocopy every letter inside every parcel. Another is to keep a logbook: who sent a parcel, to whom, when, and how heavy it was.

Zeek is the logbook for a computer network. Its makers call it a passive, open-source network traffic analyser [1]. "Passive" means it watches traffic but does not change it. It writes what it sees into tidy log files, either as tab-separated text or as JSON, a common data format [1].

Zeek started life in 1995 under the name Bro, created by Vern Paxson at Lawrence Berkeley National Laboratory [2]. The project chose the new name Zeek in 2018, and the first release under that name came out in 2019 [2].

Where the comparison stops working: a depot clerk only notes the label. Zeek understands many network languages, so its logbook can also note details such as which website name was looked up.

For how networks pass data in the first place, read Networking Fundamentals for Beginners.

Why does it matter?

When something goes wrong, teams need to know which devices talked to which, and when. Zeek's records help answer that quickly.

If you are new to a security team

What could happen: an alert names a laptop, and you cannot tell what else it connected to.

Check this: ask whether your team keeps network logs like Zeek's, and for how long.

Next: Network Detection and Response for Beginners

If you look after a network

What could happen: Zeek sees only part of the network, so key traffic is never recorded.

Check this: map which parts of the network Zeek can see and which it cannot.

Next: Network Segmentation for Beginners

If you manage IT or security budgets

What could happen: you pay to store full recordings you rarely use, or keep nothing at all.

Check this: ask what records you would need to rebuild a week-old incident.

Next: SIEM for Beginners

What does it look like?

Here are made-up, simplified lines from two Zeek logs. Real logs have more columns.

Example only. All values are made up.

conn.log (one line per connection)                        (1)
ts=2026-12-02T09:15:00  uid=CFAKE0000                       (2)
from=192.0.2.10  to=198.51.100.20:443  proto=tcp           (3)
duration=0.80s  sent=1000 bytes  received=9000 bytes        (4)

dns.log (one line per name lookup)                          (5)
ts=2026-12-02T09:14:59  uid=CFAKE0001
from=192.0.2.10  query=update.example.invalid  answer=198.51.100.20
  1. The connection log: one line for each conversation between two devices.
  2. A time stamp and a unique ID. The ID lets you find the same conversation in other Zeek logs.
  3. Who started it, who answered and on which port. In a real file, this line would contain your own network's addresses.
  4. How long it lasted and how much data went each way.
  5. The DNS log: which website name a device looked up, and the address it got back.

Why this is risky: without records like these, a team may not be able to say what a device contacted last week.

The safer way: keep these logs somewhere searchable, for long enough to look back at an incident.

How does it work?

  1. Zeek watches a copy of the traffic. It is passive. It cannot block, drop or change traffic itself [1].
  2. It works out what each conversation is. It groups packets into connections and recognises network languages, such as DNS and web traffic.
  3. It writes a log for each kind of activity. The connection log covers both TCP and UDP traffic, the two main ways data is sent [3]. The DNS log records name lookups [4]. The HTTP log records web requests, such as the page asked for and the reply code [5].
  4. It links them with an ID. Each connection gets a unique ID used to track related activity in the other logs [3].
  5. Teams search and alert on the logs. The logs are often sent to a central search tool. Zeek's own scripting language lets teams add their own checks [1].
Diagram titled How Zeek turns traffic into logs. Four boxes in a row joined by arrows. Box 1, Network traffic: a copy of the data flowing between devices. Box 2, Zeek watches: passive, it does not block or change traffic. Box 3, Log files: one log each for connections, DNS lookups and web requests. Box 4, shown in green, Search and alert: teams look back at incidents and add their own checks. A note underneath says Zeek keeps compact records, not a full recording of every packet.
Figure 1. Zeek watches traffic and writes a separate log for each kind of activity.
Diagram titled Zeek logs or full packet capture? Two boxes side by side. Left box, Full packet capture: a copy of every packet, shows every detail, and is large to store at scale. Right box, shown in green, Zeek logs: compact summaries of each conversation, much smaller and easier to search. A note underneath says a team can use both: Zeek logs to find the moment, a packet capture to see every detail.
Figure 2. Zeek logs and full packet captures answer different questions.

Zeek is not a system for storing full recordings at scale. Its makers aim for compact but detailed logs instead [1]. It is also not a classic alarm system that only matches known patterns. It can do that, but it can also look for unusual behaviour [1].

Zeek is free under the BSD licence [6]. It is used by universities, research labs, large companies and government agencies [1].

A worked example

Jonah Engel works on the IT team at a further education college. The college runs Zeek, and its logs go to a central search tool.

On Tuesday, the email team warns that a staff member clicked a link in a phishing email the day before. They ask Jonah what that laptop did next.

Jonah searches the DNS log for the web address in the email. He finds one lookup from the staff laptop at 10:42 on Monday. He notes the address it got back.

Next he searches the connection log for that address. There is one connection from the laptop, lasting a few seconds, with a small amount of data sent each way. He copies its unique ID.

Using the ID, he checks the other logs. The HTTP log is empty for it, because the site used encryption. The logs show the laptop connected, but not what was typed into the page.

Jonah reports what he found. The college resets the staff member's password and checks the account. Jonah also searches for other devices that looked up the same name. In the records available to him, no other device did.

His lesson: Zeek told him who talked to whom and when, in minutes. It could not tell him the content of an encrypted page, so the account check still mattered.

Myths and mistakes

What people thinkWhat is true
Zeek blocks attacks.Zeek only watches. It can feed other tools, but it does not block traffic itself.
Zeek records everything that was sent.It keeps compact summaries. For every byte, you need a separate full packet capture.
Zeek is just an alarm that matches known bad patterns.It can match patterns, but it is built to record activity and spot unusual behaviour too.
Encrypted traffic makes Zeek useless.It can still record who connected to whom, when and how much data moved.
Installing Zeek is enough.It only sees traffic you send to it, and the logs only help if someone keeps and searches them.

What can I do this week?

  • Ask whether your organisation keeps network logs, and which tool writes them.
  • Find out how long those logs are kept.
  • Look at one connection log line with a colleague and name each part.
  • List the parts of the network the logs do not cover.
  • Read the Zeek project's "What is Zeek?" page.

Checklist

  • I can explain that Zeek watches traffic and does not block it.
  • I know the difference between Zeek logs and a full packet capture.
  • I can name the connection, DNS and HTTP logs and what each records.
  • I know how the unique ID links records across logs.
  • Our logs are kept long enough to look back at an incident.
  • We know which parts of the network Zeek can and cannot see.

Common questions

Is Zeek the same as a packet capture tool?

No. A packet capture keeps a copy of every piece of data. Zeek's makers say it is not built to store full captures at scale, and writes compact logs of each conversation instead. A team can use both: logs to find the right moment, a capture to see every detail.

Is Zeek an intrusion detection system?

Not in the classic sense. Its makers say it is not a classic signature-based intrusion detection system, meaning one that only matches known bad patterns. It can do pattern matching, but it also records activity and can look for unusual behaviour.

Why was Zeek called Bro?

Bro was its original name when Vern Paxson created it in 1995. In 2018 the project leaders chose a new name, Zeek, to avoid unwanted links to "bro culture". Version 3.0, released in 2019, was the first under the new name.

Is Zeek free?

Yes. Zeek is open source and free to use under the BSD licence, a permissive licence. Running it still costs time and computer resources, including storage for the logs it writes and people who know how to read them.

Can Zeek see inside encrypted traffic?

Not the content. Zeek can still log who connected to whom, when, how long for and how much data moved. Its makers note that the move to encrypted traffic has made HTTP logging less active in many places.

Where next?

Ready for the detail? Read the practitioner guide: Zeek Logs Cheat Sheet. It goes further into the key fields in the connection, DNS, HTTP and SSL logs, connection states and how analysts pivot between logs.

Also useful:

Related NHI Mgmt Group resources: SIEM for Beginners, Network Ports and Protocols for Beginners and Indicators of Compromise for Beginners.

Key terms

Zeek
A free, open-source tool that watches network traffic and writes compact logs of what it sees.
Connection log
A record of each conversation between two devices: who, when, how long and how much data.
DNS
The system that turns website names into the number addresses computers use.
IP address
A number that identifies a device on a network.
Intrusion detection system
A tool that watches for signs of attack and raises alerts.
Network detection and response
Tools and work that spot and act on threats by watching network traffic.
Metadata
Data about data, such as who sent something and when, rather than the content itself.

Sources and further reading

  1. The Zeek Project, "What Is Zeek?", Book of Zeek (LTS). https://docs.zeek.org/en/lts/about/what.html (accessed 2 Dec 2026).
  2. The Zeek Project, "History", Book of Zeek (LTS). https://docs.zeek.org/en/lts/about/history.html (accessed 2 Dec 2026).
  3. The Zeek Project, "conn.log", Book of Zeek (LTS). https://docs.zeek.org/en/lts/logs/conn.html (accessed 2 Dec 2026).
  4. The Zeek Project, "dns.log", Book of Zeek (LTS). https://docs.zeek.org/en/lts/logs/dns.html (accessed 2 Dec 2026).
  5. The Zeek Project, "http.log", Book of Zeek (LTS). https://docs.zeek.org/en/lts/logs/http.html (accessed 2 Dec 2026).
  6. The Zeek Project, "About". https://zeek.org/about/ (accessed 2 Dec 2026).

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.