Guide
Investigation spaces
An investigation space is one place to investigate a security incident, a customer complaint or an outage after the fact. You choose the values you want to follow, such as users, IP addresses, HTTP methods or any value of your own, and where each one is found: your logs and traces, and your own databases. Then you enter one value and a time range. Logthread queries every source at once, shows each answer as it arrives, links together the values found with it, and names the source of every result.
Open Investigate → Investigation spaces in the sidebar.
Create a space#
You need the member role. New space walks you through three steps.
- Values to follow. Everything in this step is checked on your recent data: choose Look at the last hour, 6 hours or 24 hours (the default). On busy workspaces only a sample of that window is read, and the page says so. A check that takes too long shows *Not checked* with Retry, and the rest of the page still works.
- Start from offers templates: *Account takeover*, *Suspicious IP or web attack*, *API abuse or data access* and *Incident forensics*. It also offers Detected in your data, a space made of the values your logs and traces already carry. Each card says how many of its values were found in your last 24 hours, and only those are added.
- Add values (on the left): Any other value at the top adds your own; below it, Built-in values (user, email, IP address, HTTP method, HTTP status, URL path, user agent, host, service, session id, trace id) list the attribute names they were found under, with counts.
- Values in this space (on the right) has one section per value. Each header shows the value's name, where it is found and how many log lines and spans carry it, with a delete button. Open a section (one at a time; a value you just added opens by itself) to rename it, pick the attributes it is found under from the keys seen in your data, or give a pattern in the message with one capturing group, such as
order=([A-Z0-9-]+), and see its top values. On a phone the two columns stack. - Where to find them. Your logs and traces are always read. Connect a database first asks the type: PostgreSQL, MySQL / MariaDB or SQL Server. Then it asks for the host, port, database, user, password, TLS mode, a timeout (1 to 15 seconds) and a row cap (1 to 200 rows per value). Test connection must succeed before the source is added. Then, for each value, choose the table, the column that holds it and an optional time column:
- the most likely column is suggested;
- Check on real data tells you how many of the value's recent values from your logs and traces are in that column, and shows matching rows;
- under Columns to show, link a column to another value of the space (for example
last_ip*is* IP address) so the investigation connects the two systems. - Review and create. The space is created with its sources in one step, and opens on the full correlation for a real value.
Nothing is saved half set up. A source no value reads, or a source that did not answer last time, is shown on the space and on Home, with the action that fixes it.
The pane#
Open a space without a value to see, for the chosen time range, every value's top values with how often each appears in logs, traces and each database, how many failed and when each was last seen. Click any value to investigate it. Group by shows which values of one field appear with which values of another on the same log line or span, for example every IP address each user came from. It works on any range up to 366 days: it reads newest first, the pairs appear at once and their counts grow as older data is read, with a progress bar. On very busy ranges a count can show as ≥ n: each time slice returned its most frequent pairs, so the true count is between n and the value shown on hover.
Investigate a value#
Choose the field, enter the value and press Investigate. Any range up to 366 days works, within what your workspace keeps: long ranges are read newest first, in time slices, so the first results appear within seconds and fill in while older data is read (each source shows how much it has read).
- Sources shows each source as it answers: *Answered*, *Nothing found*, *Timed out*, *Unavailable* or *Failed*, with the reason and the time it took. A source that is slow shows *Slow* and keeps running. A source that fails never stops the others.
- Summary: what happened, in plain sentences (first and last seen, failures, the busiest moment, where else it appears, and which sources were not checked), and the values found with it per field, with the count from each source.
- Chart: events over time per source, with failures in red.
- Graph: the value in the middle and every value and service found with it, one colour per source. Select a node to see the counts per source, then Investigate this value to follow it.
- Story: everything found, in time order, each with its source, with links to the trace or to Explore.
- By source: the newest log lines, spans and database rows themselves.
The address of the page holds the space, field, value and time range, so you can share it.
How databases are read#
- Logthread only reads. Every query has your timeout (and a lock timeout) and is rolled back. Use a database user that can only read the tables you map.
- PostgreSQL and MySQL / MariaDB run every query in a read-only transaction.
- MySQL / MariaDB reads only tables in the database you name, even if the user can see others.
- SQL Server has no read-only transaction, so use a login that is only in
db_datareader. Test connection says when the login could change data. - TLS: PostgreSQL and MySQL offer
require(encrypted),verify-caandverify-full(the certificate is checked against public certificate authorities, andverify-fullalso checks the host name), anddisable. SQL Server offersverify-full,verify-caanddisable. - Queries are built from your mapping alone: the table and column names are quoted and the value is passed as a parameter. No SQL is typed or stored.
- At most your row cap is returned per value. Counts stop at 10,000.
- A value that does not fit the column's type (for example text in a number column) matches nothing. MySQL never turns
abcinto0here. - Text is compared the way your database compares it: on MySQL and SQL Server with their usual collations,
Bobandbobmatch. - The host must be reachable from the internet. Private and internal addresses are refused. Logthread checks the address once and connects to exactly that address. A SQL Server that redirects the connection to another host is refused.
- The password is encrypted at rest and never shown again. Changing a source tests it again before it is saved.
- Every investigation that reads a database is in the Audit log with the field and value, as are all changes to spaces and sources.
- People limited to part of the data cannot open investigation spaces, because database rows cannot be limited to their part.
PostgreSQL, MySQL / MariaDB and SQL Server (including Azure SQL Database) are available today. Snowflake and DynamoDB are not available yet.
AI agents#
Agents connected through MCP can call list_investigation_spaces and investigate_value.