LogDuck Documentation

Analysis

Markdown: this page · all of the docs · index

Analysis holds three views of an environment: event volume over time, where those events came from, and the top values of any one field.

Top values

Pick a field and a range and see its most common values with counts: a fixed column such as type, country or source, or data.<key> for any key of your event payload — top error codes, top plans, top pages. Narrow to one event type first to ask "which plans among completed signups". The card says how many events in the range carried the field, so a short list is never mistaken for a complete one. Also available to agents as get_field_breakdown.

Event volume

Events over time, across the last 30 or 90 days, 6 or 12 months, or a year. Shorter ranges are grouped by day and longer ones by month.

Where events come from

The map counts events by the location LogDuck derived from each request's IP address — the same requestcountry and requestcity fields stored on the event. Countries are shaded by volume and cities are drawn as marks; selecting a country focuses it and lists its cities.

The region control zooms to a continent rather than filtering — nothing is excluded from the counts, you are only choosing what to look at.

Filtering by traffic source

Server and client traffic mean different things on a map, so the source control separates them. Devices only shows events from keys marked as client — roughly a map of your users. Servers only shows events from keys marked as server, which plot wherever your backend is hosted rather than anywhere a person is.

Events posted with a key created before this distinction existed carry no source type and appear only under All traffic. Setting the type on those keys in API Keys applies to events posted from then on; it does not relabel history.

Live

Live streams events onto the map as they arrive, marking each place they come from. A mark brightens as more events land on it and fades over about 30 seconds, so a busy place stays lit while a quiet one disappears.

It is deliberately bounded: at most 60 places are marked at once, and the stream stops itself after a couple of thousand events with a button to resume. Leaving a dashboard open on a busy project would otherwise read continuously for as long as the tab is open.

How accurate is the location?

It is an approximation from the IP address. A country is almost always right; a city often is not, and resolves for rather fewer addresses. City marks are placed at the centre of the city rather than at a device, and the underlying accuracy radius is typically 5–200 km. Treat the map as a distribution, never as a position.