Traffic history
Search what went through a tunnel, long after the tunnel is gone.
Every request through an HTTP tunnel is kept for 30 days by default, so a question that occurs to you on Thursday can be answered about Monday. A reserved name can be set to keep its traffic for longer — see Retention below.
burrow log --since 24h --status 5xx
burrow log --tunnel staging-hooks --path /webhooks --bodies
burrow log --slower-than 500 --json | jq .The console's Traffic screen takes the same filters and shows the same rows.
For how much went through over a day or a month rather than which requests, see Data transfer.
Filters
| Flag | |
|---|---|
--since | how far back: 30m, 24h, 7d |
--tunnel | one tunnel |
--method | GET, POST, … |
--status | an exact code (404) or a class (5xx) |
--path | path contains this |
--contains | a captured body contains this |
--ip | one client address |
--identity | one signed-in caller, on a gated tunnel |
--outcome | ok, error, denied, agent-error |
--slower-than | milliseconds |
--bodies | also print what was sent and returned |
--json | one object per request, for piping |
--limit | how many rows at most (default 100) |
How many rows you get
The history is the one thing here that grows without bound, so burrow log
stops at --limit rather than reading everything. It follows the API's cursor
to get there, so --limit 2000 really does return up to 2000 rows.
When the limit is what stopped it — rather than running out of matches — it
says so on stderr, so --json | jq stays valid:
(stopped at --limit 100; there is more — raise --limit or narrow --since)Absence of that line means you have seen everything that matched.
The other ls commands have no limit: burrow names ls, burrow leases,
burrow tokens ls, burrow domains ls and burrow tunnels ls follow the
cursor to the end and print the whole set. Nothing on screen would tell you a
team had 400 reserved names rather than 40, so a first page and silence is the
one behaviour worth avoiding.
Saved filters
A search you will want again can be kept under a name:
burrow log --tunnel checkout --status 5xx --save checkout-errors
burrow log --filter checkout-errors
burrow filters ls
burrow filters rm checkout-errors--save runs the search as well as keeping it, so saving costs nothing extra.
The console's Traffic screen saves, applies and deletes the same filters; the
API is FilterService.
A saved filter is yours, not the team's. Nobody else sees it or can replay it, and another member asking for one by id is told it does not exist rather than that they may not have it.
A saved filter does not include its time window. --save keeps the
clauses; --filter searches the window you give it now:
burrow log --filter checkout-errors # the default 24h
burrow log --filter checkout-errors --since 168h # the last weekThat is deliberate. A filter is a question — "5xx on checkout" — and the window
is when you are asking it. A stored window would mean every replay searched the
day you saved it, which is the kind of thing you notice weeks later when the
answer is empty. burrow filters ls leaves the window out of what it prints
for the same reason.
--filter replays a saved search whole, so combining it with a clause flag is
an error rather than a merge:
$ burrow log --filter checkout-errors --status 404
burrow: --filter replays a saved search; drop --status, or save a new filter--since, --limit, --bodies and --json are not clauses and can be
combined with --filter freely — they decide the window and the output, not
which requests match.
Retention
30 days by default. A reserved name can keep its traffic for as long as the deployment allows, set per name:
burrow names retention checkout 90
burrow names ls # the TRAFFIC KEPT column
burrow names reserve api --retention 90The console's Names screen has the same control. Asking for more than the deployment's maximum gets you the maximum rather than an error — the command tells you when that happens.
Shortening it is not reversible. Anything already older than the new window is deleted shortly afterwards, on the store's next merge. Lengthening it only affects what has not expired yet: it cannot bring back a request that has already gone.
A tunnel with no reserved name behind it — a generated brave-otter-4f2a
style URL — keeps the deployment default.
TCP and UDP tunnels
burrow log is HTTP. A pooled tunnel has no requests to search, so it has its
own command:
burrow connections --since 24h
burrow connections --proto udp
burrow connections --tunnel pg --longer-than 60000
burrow connections --outcome denied
burrow connections --identity [email protected]One row per connection: when, from where, who, which pooled port, which protocol, how long it was held, and how many bytes went each way. A UDP flow is one row too — datagrams from one source address, ended by its idle timeout rather than by a close. The console has a Connections screen with the same filters.
Someone reaching the tunnel with burrow connect
is a row too, filed under the tunnel's pool port and the address they
connected from, though nothing reached that port from the internet. A
connect the tunnel's rules refuse is turned away before it reaches the tunnel,
so it leaves no denied row here.
The WHO column (Who in the console) is who a burrow connect user
signed in as, and --identity narrows to one of them. A — means nobody
signed in, not that something is missing: the public pool port has no sign-in,
and connect rows from before Burrow recorded identities have none.
--proto tcp or --proto udp narrows to one; by default you get both, which is
usually what you want, since the two protocols share one pool of ports and
"what reached 20431" is a question about the port. Rows recorded before the
protocol was tracked show — rather than a guess: the port number cannot say
which protocol it was.
Bytes are counted, never captured. There is nothing in a TCP stream or a datagram that is ours to read, and guessing at arbitrary protocols would be worse than useless — so that count is the whole of what a pooled tunnel can tell you. Everything on this page about captured bodies applies to HTTP only.
--outcome is ok, denied or agent-error. There is deliberately no
error, which burrow log does accept: a byte stream that fails mid-flight
cannot be told apart from one that ended normally.
A refused connection is recorded, so --outcome denied answers "is somebody
probing this port". Only for a port with a live tunnel — a connection to an
unclaimed port is dropped without a record.
Your team's own history
Two other records, separate from traffic. Sessions are kept for 90 days. The audit log is stored in the Xeonr platform audit log and follows that log's retention:
burrow audit # who reserved, released, minted, revoked
burrow sessions ls # every time an agent connected
burrow audit --since 168hburrow tunnels ls is what is up right now; burrow sessions ls is every
connection there has been, with how long each lasted. Both of these take
--limit (default 100) rather than printing everything, and say on stderr when
the limit rather than the end of the record is what stopped them.
What is captured, and what is not
Metadata always: time, method, path, query, status, duration, bytes, client address, user agent, the signed-in identity on a gated tunnel, and which access rule admitted the request.
Bodies up to 256 KiB each, marked truncated beyond that. They are copied as they stream past, so inspecting a large download never delays it.
Credential headers are replaced before anything is written. Authorization,
Cookie, Set-Cookie, X-Api-Key, X-Auth-Token and Proxy-Authorization
are stored as [redacted] — the value never reaches storage at all, so there is
nothing to scrub later.
A TCP or UDP tunnel's payload is never captured; only the connection or flow is recorded.