Auto-refresh and log context scopes
Rerun a log search on a timer, narrow a log's context to its service or pod, and start an OTLP-ready index from a template.
Rootprint 0.4.7 adds auto-refresh to Logs. The arrow beside Run reruns the search every 5, 10, 15, 30 or 60 seconds on a relative time range. It pauses while you are scrolled down, the tab is in the background, or a log is open.
A log’s Context tab narrows the surrounding lines to the log’s service, instance, pod, node, container or host, or to the fields you tick under Custom. Click a line to open that log, and Back returns to the previous one. These scopes replace the per-index Context fields setting.
A new index can start from the OpenTelemetry logs template, which loads the mapping OTLP log ingest needs. OpenID Connect can be configured from environment variables instead of Settings → Authentication.
Before you upgrade
- Replace calls to the per-user, per-key and per-index activity endpoints. Pass
user,apiKeyorindexas query parameters toGET /api/admin/activity/summary,/latency,/top-actors,/recentand/indexes, and read search volume from each/latencybucket’scount. - If you read
numHitsfromGET /api/indexes/{indexId}/logs, passcountAll=true. Without it,numHitsisnull. - Send
startTsandendTswith everyGET /api/indexes/{indexId}/logs/histogramrequest. Use anintervalin seconds, minutes, hours or days that gives at most 2,000 buckets. - Send at most 50 filters to
GET /api/indexes/{indexId}/fields/values, stop readingelapsedTimeMicros, and checktruncatedfor fields that were cut short. - Upgrading drops each index’s saved Context fields. Stop reading
contextFieldsfrom the index endpoints.
Changelog
Highlights
- Auto-refresh. In Logs, the arrow beside Run reruns the search every 5 to 60 seconds.
- Log context scopes. A log’s Context tab narrows the surrounding lines to its service, pod, node, container or host, or to the fields you pick.
- OpenTelemetry logs template. A new index can start from the mapping that OTLP log ingest needs.
- OpenID Connect from environment variables. Keep the provider in your deployment config instead of Settings → Authentication.
⚠️ Breaking
- The per-user, per-key and per-index activity endpoints are gone.
GET /api/admin/activity/users/{userId}/…,/api-keys/{apiKeyId}/…and/indexes/{indexId}/…return404. Passuser,apiKeyorindexas query parameters toGET /api/admin/activity/summary,/latencyand/top-actors, and to the new/recentand/indexes. The/volumeendpoints have no replacement: each/latencybucket carries its searchcount. (#182) GET /api/indexes/{indexId}/logsreturnsnumHits: nullwithoutcountAll=true, instead of a number that could be lower than the real count. (#197)GET /api/indexes/{indexId}/logs/histogramrequiresstartTsandendTs.intervaltakes seconds, minutes, hours or days, not weeks, months or years, and the range divided by the interval can give at most 2,000 buckets. Anything else returns400. (#190)GET /api/indexes/{indexId}/fields/valuesaccepts at most 50 filters and no longer returnselapsedTimeMicros. The fields in one request share 65,000 values, so each field getslimitor its share of that, whichever is lower;truncatedsays which fields were cut short. (#190)- The per-index Context fields setting is removed.
GET /api/indexes/{indexId}andGET /api/indexes/{indexId}/configno longer returncontextFields,PATCH /api/indexes/{indexId}ignores it, and upgrading drops the saved values. The Context tab’s scopes replace it. (#196)
Added
- Auto-refresh in Logs. The arrow beside Run sets an interval of 5, 10, 15, 30 or 60 seconds. It runs on relative time ranges, sorts newest first, and pauses while you are scrolled down, the tab is in the background, or a fold or a log is open. A failed refresh keeps the rows and chart on screen and retries. (#193)
- Context scopes. A log’s Context tab offers All, Service, Instance, Pod, Node, Container and Host, each shown when the log has the fields for it, and Custom, which matches any of the log’s fields you tick. Open in search carries the scope into Logs. (#196)
- Back button in the log drawer. Clicking a line in Context opens that log, and Back returns to the previous one. (#196)
- OpenTelemetry logs template under Start from when creating an index. (#199)
bytesfield type in index mappings, with base64 or hex input and output formats, and a default search path for JSON fields. (#199)OIDC_ISSUER_URL,OIDC_CLIENT_IDandOIDC_CLIENT_SECRETconfigure OpenID Connect from the environment. Set all three or none. They replace the provider saved in Settings → Authentication, which then shows it read-only, andPUTandDELETE /api/settings/auth/oidc/credentialsreturn409with codeOIDC_MANAGED_BY_ENV. Moving a provider from the UI to the variables unlinks every OpenID Connect account once. See Configure with environment variables. (#186)GET /api/admin/activity/recentandGET /api/admin/activity/indexeslist recent searches and per-index usage, filtered byuser,apiKeyandindex. Summary rows gaindisplayName. (#182)- Search volume chart on Settings → Activity, beside latency. (#182)
GET /api/indexes/{indexId}/fieldsreportsindexedper field, andGET /api/indexes/{indexId}/configlistsunfilterableFields. (#196)
Changed
- The API finishes in-flight requests before it exits on
SIGTERMorSIGINT. (#192) GET /api/indexes/{indexId}/logsreturns400whenstartTsis not beforeendTs, as the trace and service endpoints do. (#194)- Settings → Overview reports a failed metrics refresh at once, with the error and a retry, instead of after several failures. (#179)
- Service pages drop the heading that repeated each tab’s name, and the Overview tab says what its charts measure. (#202)
- The Docker image runs on Bun 1.4.4. (#188)
Removed
- The span count above the trace explorer’s span list. (#201)
Fixed
- The field panel shows cut-off values for large fields instead of failing with a
503once its open fields together pass 65,000 values. (#190) - Include and exclude are offered only on fields a filter can match. The log drawer hides them on unindexed fields and on values Quickwit cannot match. (#196)
- Filters work on field names that contain spaces, colons, parentheses or quotes. (#196)
- A service’s failing spans and the trace explorer’s span list ignore answers to requests they cancelled. Rows stay on screen while new ones load, and a failed first page can be retried. (#195)
- Sign-in provider forms keep text typed into a list field. It is added when you leave the field, and the form does not save while text that could not be added remains. (#196)