﻿---
title: Knowledge Indicators
description: Understand the Knowledge Indicators that Elastic nightshift extracts from your data, how detection uses them, and how to review, exclude, or keep them.
url: https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9654/solutions/observability/nightshift/context/knowledge-indicators
products:
  - Elastic Cloud Serverless
  - Elastic Documentation
  - Elastic Observability
applies_to:
  - Serverless Observability projects: Preview
---

# Knowledge Indicators
Knowledge Indicators (KIs) are what Elastic nightshift learns about your system from your data: which services run, what they depend on, which technologies they use, and which log patterns point to trouble. You don't need a service catalog or a schema. Elastic nightshift reads samples of the logs in your detection sources and writes the KIs itself.
Detection uses KIs to create rules and to find significant events. As your system changes, KIs follow: services that appear get KIs, and KIs for services that disappear expire.

## From a log line to Knowledge Indicators

Say one of your detection sources contains this log line from `inventory-api`:
```text
2026-11-11T19:52:14.201Z ERROR inventory-api GET /tickets failed: canceling statement due to lock timeout (SQLSTATE 55P03) db=encore table=section_inventory
```

From this line and others like it, Elastic nightshift extracts:

| KI                         | Type       | What it says                                                                                    |
|----------------------------|------------|-------------------------------------------------------------------------------------------------|
| `inventory-api`            | Entity     | A service called `inventory-api` exists.                                                        |
| `inventory-api` → `encore` | Dependency | `inventory-api` depends on the Postgres database `encore`.                                      |
| PostgreSQL                 | Technology | The `encore` database runs on PostgreSQL.                                                       |
| Lock timeouts on `encore`  | Query      | An ES|QL query that finds lock timeouts, with a severity score. Detection turns it into a rule. |

The first three are **feature KIs**: they describe your system. The last one is a **query KI**: it finds a known failure pattern.

## Where KIs come from

Detection samples the logs in each [source](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9654/solutions/observability/nightshift/detection/sources) and extracts feature KIs and query KIs, then turns query KIs into rules. Refer to [How detection works](/elastic/docs-content/pull/9654/solutions/observability/nightshift/detection#nightshift-detection-flow).
In Tech Preview, detection is optimized for logs. Refer to [Limitations](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9654/solutions/observability/nightshift/known-issues).

## Review KIs

On the [**Knowledge** page](/elastic/docs-content/pull/9654/solutions/observability/nightshift/context#nightshift-context-open), select the **Knowledge Indicators** tab.
The table lists each KI with the number of **Events** it matched, its **Type** (**Match query**, **Stats query**, or a feature type), its **Source**, and its **Durability** (**Durable** or **Expiring**). Filter by type, subtype, source, or status (**Active** or **Excluded**). Turn on **Show computed features** to include statistical KIs.
Select a KI to read its description, confidence, evidence from your logs, and properties. Select **Open in Discover** to find the matching documents.
Is the tab empty? Detection hasn't learned anything yet. Select **Go to Sources** to add a source, or wait for the first extraction to finish.

## Generate KIs

Elastic nightshift extracts KIs when you add a source, and then again with [continuous KI onboarding](#sig-events-ki-continuous). To start an extraction yourself, refer to [Manage sources](/elastic/docs-content/pull/9654/solutions/observability/nightshift/detection/sources#nightshift-detection-sources-manage).

## KI types


| Kind                                  | What it does                          | Types                                                  |
|---------------------------------------|---------------------------------------|--------------------------------------------------------|
| [Feature KIs](#sig-events-ki-feature) | Describe your system                  | Entity, Infrastructure, Technology, Dependency, Schema |
| [Query KIs](#sig-events-ki-query)     | Find a notable condition in your logs | Match query, Stats query                               |


### Feature KIs

Feature KIs have the following types:
- **Entity**: Services, applications, and jobs
- **Infrastructure**: Where things run, such as Kubernetes, a cloud provider, or an operating system
- **Technology**: Languages, frameworks, libraries, and databases
- **Dependency**: Which component calls which
- **Schema**: Log format conventions, such as Elastic Common Schema (ECS), OpenTelemetry, or a custom format

Each feature KI cites evidence from your logs and has a confidence score from 0 to 100. KIs that Elastic nightshift computed from statistics always have 100.

### Query KIs

Query KIs are ready-to-run ES|QL queries for notable conditions, such as connection exhaustion, out-of-memory errors, or lock timeouts. Each has a severity score from 0 to 100.
- **Match query**: Finds specific log events, such as errors or failure messages.
  ```esql
  FROM logs-* METADATA _id, _source
  | WHERE service.name == "inventory-api" AND message : "lock timeout"
  ```
- **Stats query**: Counts or aggregates over time, for when the signal is a change in volume rather than one event.
  ```esql
  FROM logs-*
  | STATS error_count = COUNT(*) WHERE log.level == "ERROR" BY service.name, @timestamp
  ```

High-severity match queries become rules automatically, and you can promote the others. Stats queries can't become rules yet. Refer to [Where rules come from](/elastic/docs-content/pull/9654/solutions/observability/nightshift/detection/rules-and-signals#nightshift-detection-rules-origins).

## KI lifecycle

KIs stay current without manual cleanup:
- **Expiring**: By default, a KI expires 30 days after the last extraction that found it. KIs for a decommissioned service disappear on their own, and come back with the next extraction if the service returns.
- **Durable**: To keep a KI, select it and select **Make durable**. A durable KI doesn't expire. Select **Make expiring** to undo this.
- **Excluded**: If a feature KI is wrong, select **Exclude**. Later extractions skip it. Filter by **Excluded** and select **Restore** to use it again.
- **Deleted**: Select **Delete** to remove a KI permanently.


## Continuous KI onboarding

Continuous KI onboarding learns each enabled source again every **Onboarding interval (hours)**, 12 by default. Refer to [When learning runs](/elastic/docs-content/pull/9654/solutions/observability/nightshift/detection/learning#nightshift-detection-learning-when) and [Continuous KI onboarding](/elastic/docs-content/pull/9654/solutions/observability/nightshift/settings#nightshift-settings-ki-onboarding).

## Learn more

- [How detection learns your system](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9654/solutions/observability/nightshift/detection/learning): Start and track KI extraction for your sources.
- [Rules and signals](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9654/solutions/observability/nightshift/detection/rules-and-signals): Review the rules that detection creates from query KIs.
- [How Elastic nightshift builds context](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9654/solutions/observability/nightshift/context): Compare KIs with the Wiki and Memory.