# Zeek: analyze a packet capture Analyze a packet capture. ## 1. Run the example [Download the Zeek example](https://www.security.run/docs/examples/zeek.zip). Extract it, install `httpx`, set your API URL and token, then run `python client.py`. The client uploads the included inputs, submits the command, and saves the result under `results/RUN_ID`. ## 2. Check the result Read conn.log for the connection record produced using the supplied Zeek script. Read the native exit code and cleanup status printed by the client. [Read results and save reports](https://www.security.run/docs/visibility.html) explains the returned files. ## 3. Use your own inputs Edit `example.json` to change the command arguments, requested outputs or deadline. Replace the files under `inputs/` with your own data, keeping the staged paths aligned with the command. The client creates the artifact IDs for you; illustrative IDs shown here must not be copied into a live request. ### Files used by this example - `capture.pcap` - `custom.zeek` The example uses supplied files or the disposable execution environment. Nothing from the environment carries into a later run unless you request and reuse its output. Qualified version: `9.0.1`. Commands: `zeek`, `zeek-cut`, `zeek-config`, `zeekctl`, `zeek-client`, `zkg`, `spicyc`, `spicyz`, `spicy-driver`, `spicy-dump`, `spicy-build`, `spicy-config`, `hiltic`, `hilti-config`, `binpac`, `capstats`, `trace-summary`. - Offline packet analysis is available; live capture requires an executor with capture capabilities. Additional packages may need a compiler and reachable package sources. Inspect `GET /v1/tools/zeek` for the current installed version and readiness. The published snapshot has 1 functional case(s), plus timeout and cancellation checks. These examples demonstrate the native path; other flags and inputs are supported within the tool’s runtime limits. ## Command submitted by the example ```json { "tool": "zeek", "timeout_seconds": 90, "invocation": { "args": [ "-C", "-r", "capture.pcap", "LogAscii::use_json=T", "custom.zeek" ], "outputs": [ "conn.log" ], "success_exit_codes": [ 0 ], "executable": "zeek", "files": [ { "path": "capture.pcap", "artifact_id": "artifact_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "executable": false }, { "path": "custom.zeek", "artifact_id": "artifact_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "executable": false } ] } } ```