Log Costs

Log costs shows which kinds of line take the most room across all your sources, what they add up to in a month, and what you'd save by dropping or sampling them. Open it from Log costs in the sidebar, from the By source card on the Billing page, or from a source's Patterns tab.

4 min read

On this page6 sections

Each row is one pattern on one source: lines that differ only in their numbers, ids and quoted text. The list holds the 50 biggest, ordered by size.

What each row shows#

  • Pattern: the masked template, with the newest example line on hover, and the source it came from.
  • Level and Errors: the newest line's level, and how many of its lines were error or worse.
  • Lines: how many lines of the pattern arrived in the window.
  • Stored: the bytes we store for those lines (the message plus the context), and that size as a share of everything your sources stored in the window.
  • A month: the window's size scaled to 30 days. A pattern that wrote 0.7 GB in the last 7 days is about 3 GB a month.
  • Dropping it saves: see Money below.

Pick 24 hours, 7 days (the default) or 30 days at the top. The window never reaches past what your plan or any of your sources keeps: on the Free plan, which keeps logs for 3 days, every window is 3 days, and the page says so.

Size is approximate#

Billing counts the raw bytes each request sent, at ingest. This page measures what we stored, so the two are close but not the same: a parse rule that turns a message into fields, or a redaction, changes the stored size. Treat the numbers as a ranking and a rough size, and read your actual usage on the Billing page.

Money#

The page only shows money when it's real: you're on a paid plan (Pro or Business) and the month is projected to go past its included GB. Then the saving of a row is the overage price ($0.15 per GB) on the GB it would remove, but never more than the GB you're projected to go over, because the GB inside your plan cost nothing extra.

Otherwise the saving is the share of your included GB it would free. On the Free plan that matters most: ingest stops at 1 GB, so freeing a third of it means a third more room for the lines you want.

At the top, This month, projected is your usage so far at its current pace, against the plan's included GB. Drop the top 5 adds up what the five biggest rows would save together.

Drop or keep 1 in N#

Owners and admins get two buttons on each row:

  • Drop adds a drop rule for the pattern, like the Drop button on the Patterns tab. Its lines are discarded before they're counted, so they don't use your quota.
  • Keep 1 in N adds a keep-a-percentage rule for the pattern: 1 in 2 keeps half, 1 in 5 keeps 20%, 1 in 10 keeps 10%, 1 in 100 keeps 1%. The same lines are kept on every retry of a batch. Choosing again changes the rule in place.

Both are ordinary transform rules. They count against your plan's rules per source (3 on Free, 15 on Pro, 50 on Business) and the limit of 10 drop and keep-a-percentage rules per source. When a source is full, the page tells you, and nothing changes.

Members and viewers see the page without the buttons. Billing members can't open it: it shows example log lines, and that role sees no log data.

Undo#

Already cut lists every pattern dropped or sampled with one click, on the sources you can see. Undo removes that rule, and lines of the pattern are stored again from then on. Lines dropped in the meantime don't come back. A rule you wrote yourself with a query stays on the source's Transform rules page.

Good to know#

  • Lines stored before patterns were introduced have no pattern, so they count in the totals but not in any row.
  • Members limited to some client groups only see those groups' sources, in the rows, the totals and the Already cut list.
  • Fixing the noise at its source is often better than dropping it here. A health check that logs every second, or a debug level left on in production (LOG_LEVEL=debug), costs nothing once it's turned off.

Still stuck?

Email us and we will help you get it working.

Contact support