Free plan available. Set up in minutes with the collectors you already use. Start free
Logthread

Guide

Extract a field by selecting it

Select any part of a log line, and Logthread turns it into a field: typed, named, checked on your real lines, and read from every new line from then on. You write no rule, and nothing is dropped: a line the rule does not match simply has no value for the field.

It works on any line from any service or source: the raw message, or the value of any attribute, whether or not a parser or pipeline already handles it.

Extract in one click#

  1. Open an event: in Explore, Live tail, Threads or a story.
  2. Select the text you want in the message or in an attribute value. A small bar appears with Extract as field, Copy, and filters (=, ≠, or Contains for part of a value).
  3. Press Extract as field. Logthread picks the type and the name, writes the rule and checks it on the last hour of that service's lines. The preview is one sentence, for example *"Found in 98% of nginx-access lines in the last hour: 1,240 addresses"*, with the top values.
  4. Press Extract. From now on every new line of that service carries the field. Search past data runs the same rule over earlier lines in Explore, so history is never lost.

The panel also shows the rule as a readable LTQL line you can copy, for example parse "user=\"*\" action=\"*\"" as user, action. Search past data opens Explore with that parse line, so you can add | stats count() by user straight away. When no literal text around the value finds it (it sits inside another value, say), the rule is a regexp instead. To pick several values by clicking and add them to a search, use Build a parse by clicking.

When the field is saved, Open analytics opens it in Every dimension: top values, the trend, new values and what drives a change, and a page for any one value.

You can change the name and the type before you extract. Advanced shows the rule, which lines it reads, where it will run, the lines it does not match and what the check read.

Several fields at once#

Select one value, extract, then select the next: or, from an agent, pass several selections. Several selections in one line become several fields in one rule.

Types#

The type is detected from the selected text, in this order:

TypeExampleWhat it adds
ip_list34.206.108.84, 172.71.119.106An address chain (for example X-Forwarded-For). Added to the enrichment IP fields, so location, network owner, cloud and proxy status and threat feeds apply to it.
ip203.0.113.7, 2001:db8::1The same enrichment as an address chain.

An extracted address is trusted the same way as any other address field (see Enrichment): when the address that connected to your server is a public one and not a proxy's, that address is the client and the extracted value is ignored; behind your load balancer or Cloudflare, the extracted value is read from the right. | url | https://shop.example.com/cart/7?step=2 | Also extract the domain, path and query splits it into <name>_domain, <name>_path and <name>_query. The preview groups paths into routes (/cart/:id). | | email | joe@example.com | Also extract the domain. Each address opens as a user on its value page. | | uuid | 9f471413-c959-4490-9845-58eb8dd04f02 | An id: lines that share it are joined in Threads. | | timestamp | 2026-11-30T10:00:00Z, 30/Nov/2026:22:29:16 +0000 | A time, which can become the event time in the pipeline. | | duration | 12ms, 0.42s | A number with its unit: chart it, alert on it or turn it into a log metric. | | number | 182.5 | A number, with its unit when the line says it (ms, s, bytes) or the name does (latency_ms). | | hex_id | 50dc6c495c0c9188 | An id, like uuid. | | path | /api/v1/items | Templated routes in the preview (/users/:id). | | user_agent | Mozilla/5.0 (…), curl/8.7.1 | Browsers and bots counted apart in the preview. | | text | anything else | Defined by the text around it. |

Names#

The name comes from the label next to the value when there is one (order_id=A-77812 gives order_id, port 52234 gives port), otherwise from the type (client_ip, client_ip_chain, http_path, user_email, http_user_agent). Names are a lowercase letter followed by up to 63 lowercase letters, digits or _. Use _ where you would use a dot: the name is also the rule's group name, so the field has the same name at ingest and in a search over past data. Names starting with logthread are reserved.

How the rule is written#

The rule is one LTQL regexp stage with a named group per field. The value is matched by its type (an address, a URL, a number and so on) between short anchors taken from the line:

  • the label before it (user=, client: );
  • its position among quoted fields, for example "the 4th quoted field" in an access log;
  • the literal text around it, at most 40 characters, with runs of digits generalised.

Before it is offered, every rule is checked: on the line you selected it must give back exactly the text you selected.

Where it runs#

Extract runs the rule as records arrive:

  • When a pipeline already handles the service (a parser from the Library such as nginx access, or your own), the rule becomes a new last step of that pipeline, as a new version. The pipeline's own steps run first and are unchanged, so every field it already reads stays.
  • Otherwise a new pipeline runs on every record of that service.
  • A second field from the same service joins the pipeline the first one made, as a new version. Saving the same rule again changes nothing and says it is already extracted.

The rule always runs on the service of the line you selected (and its severity, when you chose one); a line without a service cannot be extracted at ingest, though Search past data still works. Either way it is activated in the same step, and the pipeline's history keeps the version before it. It applies to new lines; use Search past data for earlier ones.

When you extract an address and GeoIP is off, the panel says so and offers Turn on GeoIP. When the enrichment IP field list is full, it says which field was not added.

Logthread finds them first#

On Explore and in Data in, a card lists values your lines carry that no field reads yet, for example *"Your nginx-access lines carry address chains that no field reads yet (in 100% of lines)"*. Each suggestion was checked on a sample of that service's newest lines (the share is how many of them the rule reads), and values already stored as attributes are left out. Extract opens the same one-click panel. The sample is read at most once a day.

Roles#

  • Members can select text, see the type, name, rule and preview, and search past data. Ask an admin copies the rule with a note to send to an admin.
  • Admins and owners can extract at ingest.

From an AI agent (MCP)#

The same steps are MCP tools: find_unextracted_fields, extract_suggest, extract_preview and extract_field. extract_field shows the plan and the preview first and changes nothing until it is called again with confirm: true; it needs an API key with the pipelines scope whose creator is an admin, and the audit log names the key. See Connect AI agents.