Capture live samples
Live capture taps a route on a running collector and shows you the real records flowing through it right now. Save a bounded sample and you can reuse it to test pipelines against real telemetry instead of hand-typed input. The loop it unlocks: capture once, iterate on your processing repeatedly against the same real data.
How capture works
Section titled “How capture works”When you start a capture, LinkMesh temporarily tees a copy of the route’s records to the co-located agent. The agent redacts each record and returns a bounded batch — it stops at whichever limit you hit first: a maximum number of events or a maximum duration. The tap reverts automatically when the capture ends. Your live pipeline is never modified — capture is read-only observation of real traffic.
The server caps how large a capture can be: by default at most 1000 events and 300 seconds. A capture that asks for more is refused before anything touches the collector, and the Capture panel tells you the limit before you start. Leave a bound empty and the capture uses 100 events and 30 seconds. Admins tune the caps in the server config:
capture:
maxEventsLimit: 1000 # hard ceiling 10000
maxDurationSecondsLimit: 300 # hard ceiling 600, and never above defaultTtlSeconds
A value above its ceiling is lowered to the ceiling at startup, with a warning in the server log.
You can tap at two points on the route:
- Pre-process — records as the route accepts them, before its pipeline’s processors run. This is the raw input your processors will see.
- Post-process — records after the route’s pipeline has run. This is what actually leaves for the destinations.
Capturing both at once lets you compare a record before and after processing.
Capture events on a route
Section titled “Capture events on a route”-
Open the collector’s Routing tab and find the route you want to observe. Click its Capture action.
-
Choose the tap point — Pre-process, Post-process, or both. Optionally add a filter to narrow what you capture, and set the bounds (max events and max seconds).
-
Click Start capture. Matching events stream into the live table as they arrive; expand any row to see the full record. Stop early whenever you have what you need — otherwise the capture ends on its own when it hits a bound.
-
Click Save as sample on a capture to keep it. Give it a name — saved captures go to the Sample Library.
routes/capture-panelCapture on a group route
Section titled “Capture on a group route”A route can be scoped to a single collector or to a whole collector group. When you capture on a group-scoped route, LinkMesh taps one member, not all of them — a capture is a look at real records flowing through the route, and one member’s stream is a representative sample of that.
- By default the tap lands on the first member (in group order), so starting a capture on a group route Just Works with no extra choice.
- You can target a specific member instead — for example to observe the host you think is misbehaving. The member has to belong to the group.
- Only members that currently have a connected agent are eligible to tap (capture needs the agent sink). A member without one can’t be the capture target.
Everything else — tap points, filter, bounds, redaction, saving to the library — works exactly as it does for a single-collector route.
Manage samples in the Sample Library
Section titled “Manage samples in the Sample Library”The Sample Library (Process → Sample Library) lists every capture — both saved and still-ephemeral. From here you can:
- View a sample’s records,
- Save an ephemeral capture (name it to keep it),
- Rename a saved sample, or
- Delete one you no longer need.
Ephemeral captures expire automatically after a short retention window (about 30 minutes by default), so they never pile up. A saved sample is kept for 7 days by default, unless you delete it first.
The store as a whole is capped too: by default at 500 samples and 1 GiB
of captured events. When either cap is exceeded, the oldest samples are deleted
first until the store is back under it, and each saved sample removed this way
is named in the server log. Admins tune the caps in the server config, and 0
switches a cap off:
storage:
sampleRetentionDays: 7 # saved samples; 0 keeps them forever
sampleMaxCount: 500 # 0 = no count cap
sampleMaxBytes: 1073741824 # 1 GiB; 0 = no size cap
The same keys can be set as environment variables, for example
LINKMESH_STORAGE_SAMPLEMAXCOUNT=0.
samples/libraryDry-run a pipeline against a sample
Section titled “Dry-run a pipeline against a sample”This is the payoff. In the pipeline editor’s Sample Data panel, click Choose captured sample and pick one from the library. LinkMesh loads a representative record into the dry-run input — for a multi-event sample, step through the records with the 1 / N control — so you can dry-run your processor chain against real captured telemetry and see the before/after at each step.
Permissions
Section titled “Permissions”Capture splits into two permissions so you can let people run captures without exposing raw customer payloads:
capture:run— start and stop captures, list sessions, and save, rename or delete samples.capture:read— view the raw event payloads (the live table and a sample’s records). Without it you can still run captures and save them, but the payloads stay hidden.
See Manage users, roles, and permissions.
Further reading
Section titled “Further reading”- Debugging telemetry pipelines with live capture — the workflow behind this feature: tap a live route, capture a bounded sample, and dry-run pipeline changes against real records before you ship them.