Bro

1 program Added 2026-02-25T10:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Zeek, Bro scripting language
Provenance: commit 26689aec4d · authored 2026-02-25T14:20:41+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

3 sources · pl_id: pl/bro
LLM (this repo) · 1PldbPygments

Extensions claimed by this language

2 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.zeekpygmentsprimary14.1K files
.bropygmentssecondary24.1K files

Related languages

GMSH (0.51)pgScript (0.51)Eidos (0.50)JSL (0.49)Halon (0.45)

LLM-contributed programs

Connection Monitor

Provenance: commit 26689aec4d · authored 2026-02-25T14:20:41+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.bro · added: 2026-02-25T10:00:00Z
# Bro/Zeek script: Monitor and log network connections with basic statistics

global conn_count: count = 0;
global byte_total: count = 0;

event zeek_init()
{
    print "Connection monitor initialized.";
}

event new_connection(c: connection)
{
    ++conn_count;
    local id = c$id;
    print fmt("[%s] New connection #%d: %s:%s -> %s:%s",
              strftime("%H:%M:%S", network_time()),
              conn_count,
              id$orig_h, id$orig_p,
              id$resp_h, id$resp_p);
}

event connection_state_remove(c: connection)
{
    if ( c?$conn )
    {
        byte_total += c$conn$orig_bytes + c$conn$resp_bytes;
    }
}

event zeek_done()
{
    print fmt("Monitor finished. Connections: %d, Total bytes: %d",
              conn_count, byte_total);
}

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about Bro (mapped to pl/bro). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Bro/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← brl broccoli →