Guide
Segments, scores and identities
Group the users, IP addresses, organisations or any values in your logs by what they did, give them scores that fade over time, and link values that belong to one identity. Everything is counted from your own logs; nothing has to be sent from your application.
Open Investigate → Segments.
Segments#
A segment is a saved condition over any field: *the values of a field with at least N matching lines in a time window*. For example:
| Segment | Field | Matching lines | At least | Window |
|---|---|---|---|---|
| IPs with repeated sign-in failures | client_ip | status:401 | 20 | last hour |
| Users with many errors | user.id | level:error | 50 | last 24 hours |
| Organisations calling the export API | org_id | http.route:"/v2/export" | 1 | last 7 days |
Create one in five steps (members and above): choose the field (users, IP addresses and ids from your logs are listed first), write the condition as an Explore filter or pick an example, set the minimum and the window (1 hour to 7 days), select Preview to see the count and the members on your data right now, then name it and save. A segment that matches nothing says so before you save.
Counts refresh every hour. Each segment shows how many members it has, how many matching lines they made and when it was counted; a count that is more than 3 hours old is marked. The members list shows the top 1,000 by matching lines, when each was last seen and since when it is in the segment. Select a member to open its value page.
Where segments are used#
- Alerts: from a segment, Create alert fires when a new value joins (one incident per new member, never for members already there when you create the rule) or when the segment has more than a number of members. Choose who to notify in the same step.
- Dashboards: Add to dashboard adds a stat panel with the segment's count. The panel runs the same count as a query for the dashboard's own time range:
level:error user.id:* | stats count() as events by user.id | where events >= 50 | stats count() as members. - Situations: a value in a Situation that is a member of a segment shows the segment's name next to it.
- Value pages: every value page lists the segments it is in.
Scores#
A scoring rule gives a value points for each line matching a condition, and the points fade with a half-life: with a half-life of a day, a line from yesterday counts half, one from two days ago a quarter. A value's score is the sum over the rules on its field. Negative points lower a score.
| Rule | Field | Each line matching | Points | Half-life |
|---|---|---|---|---|
| Failed sign-ins | user.id | status:401 | +10 | 1 day |
| Blocked by the WAF | client_ip | waf.action:block | +25 | 6 h |
| Successful MFA | user.id | event:mfa_ok | -5 | 1 day |
Create one on Segments → Scores: choose the field, the condition, the points and the half-life, then Preview on the last 24 hours to see which values would score and how much, before saving.
Scores are added up every hour from the lines that arrived in that hour, so a line that arrives late still counts, once. A new rule starts from the last 24 hours and fills within the hour. Changing a rule's field, condition, points or half-life starts its scores again.
Top scored lists the values of a field by score, by matching lines or by last event, with each rule's part of the score. Each value page shows its score too.
Identities#
Values that almost only appear together are probably the same person or thing: an e-mail address and a user id, a user id and a device. Logthread looks at the last 24 hours, in the same request (trace) or on the same line, and suggests a link when each value's pairs are at least 80% with the other, over 3 or more requests.
- Nothing is linked until you confirm it, on Segments → Identities or on a value's page.
- A value shared by many others, such as an office IP address behind many users, is listed as shared and is never suggested.
- Undo any link at any time; the history of links and undos is kept.
Linked values show as one identity on their value pages: every linked value is listed, and its lines and failed share are counted together.
For AI agents (MCP)#
list_segments, segment_members (a saved segment's members, or a live count for any field and condition), top_scored and entity_identity. See MCP.
Limits#
- 50 segments and 50 scoring rules per workspace.
- Segment windows up to 7 days; identity suggestions over the last 24 hours.
- Fields are record attributes, resource attributes or
service; text inside messages cannot be used here. - Segments, scores and identities are built from the whole workspace: people whose access is limited to part of the data can preview counts but not see saved segments, scores or links.
- Members and above create and change segments, scoring rules and links; viewers read them.