Skip to content

Use Tocharian AI

For people who ask questions in Tocharian AI.

This guide shows how to ask Tocharian AI about your data from anywhere in Kibana, check the evidence behind every answer, keep and reuse conversations, run longer investigations in the background, and confirm the changes it proposes. Each section is one task; read the one you need.

If Tocharian AI is not installed yet, start with Get started. The pictures show Kibana 9.5. Kibana 8.x looks slightly different and works the same.

  • The Tocharian AI feature privilege read in your Kibana role. An administrator sets it in role management. Without it, the app, the header button and the other entry points do not appear.
  • Read access to the data you ask about. Every query runs as you, so you only get answers from data your Elasticsearch and Kibana privileges allow.

Everything in this guide works in every edition. With a Tocharian AI license, sensitive values are also masked before the model sees them; see Editions.

Tocharian AI has five entry points. All of them open the same assistant; they differ in what they pass along about the page.

Entry pointWhereWhat it adds to the question
AppMain menu → Tocharian AI, or http://localhost:5601/app/tocharianAiNothing; you name the data in the question
Header buttonTocharian AI in the header of every Kibana pageThe page you are on: query, time range, filters, what the screen shows
Dashboard panelPanel menu → Ask Tocharian AIThe page, plus the data that panel and the other panels draw
Discover documentOpen a document → Tocharian AI tabThe page, plus the open document
Index ManagementIndex details → Tocharian AI tabThe dataset profile of that index
  1. Select Tocharian AI in the header. A flyout opens on the right, empty, with Recent conversations below the title Ask your data.
  2. Notice the Context row above the input: it lists what the flyout took from the page, such as the dashboard, data view and time range.
  3. Type the question in Ask about this page and press Enter.

To ask without the page, select the cross at the end of the Context row. To move the conversation to the full app, select Continue in Tocharian AI.

  1. Open the panel menu of a panel.
  2. Select Ask Tocharian AI.

The flyout opens with the panel title already in the input. Complete the question and send it.

  1. In Discover, open a document.
  2. Select the Tocharian AI tab.

The tab shows the dataset’s purpose and, under Fields in this document, the meaning of each field the profile knows. Select Ask Tocharian AI about this document to open the flyout with the document attached.

The Tocharian AI tab of a Discover document with field meanings and the Ask Tocharian AI about this document button

In the Discover table, the cell actions of a value also offer Ask Tocharian AI; it starts a question with <field> = <value>.

See an index’s profile in Index Management

Section titled “See an index’s profile in Index Management”

In Stack Management → Index Management, open an index and select the Tocharian AI tab. It shows the same profile as the data catalog, with Open in data catalog. For a backing index of a data stream, it shows the profile of the whole data stream.

  1. Type the question and press Enter. Shift+Enter starts a new line.
  2. Watch the steps while it runs, such as Running ES|QL: … and Checking values of <field>. A red mark on a step means that query failed; Tocharian AI usually tries another way.
  3. Read the answer. Every fact about your data ends with an evidence id such as [E1]. The badges under the answer list the evidence of this answer with its hit count, for example E1 · 1,284.
  4. Select an evidence id to open it.

The evidence shows:

  • Hits, Dataset and Took.
  • Executed query (ES|QL) or Executed query (Query DSL): the exact query that ran.
  • Automatic fixes and Automatic time range, when Tocharian AI corrected the query or limited its time range.
  • Result, Matching documents or Aggregations: what Elasticsearch returned. Result too large; only part of it was kept means the table is cut.
  • Copy query, and Open in Discover for ES|QL queries.
Evidence E1 expanded: the ES|QL query, the hit count, the dataset and the result table

A line marked Unsupported is a part of the answer that no query backs; it says why.

Under each answer, a line shows the model calls, queries, time and model used, for example 3 model call(s) · 2 quer(ies) · 14.2s. If an administrator set model prices, the estimated cost is shown too. This is wrong starts your next question with This is wrong: so you can say what to fix.

Good to know:

  • Answers are in the language of your question. The app itself is in English.
  • From the flyout, queries use the page’s time range. Otherwise, when a dataset has recent data, queries cover the last 90 days unless your question names a time range (an administrator can change the 90 days).
  • A query returns at most 500 rows by default (set by an administrator).
  • A question has 5 minutes and at most 8 model calls. In the last minute, Tocharian AI stops querying and answers with what it has, saying what it could not determine. For longer work, use a background investigation.
  • Stop ends the question and keeps what was found so far.

Next to the Read-only switch, a tag such as Auto: Data analysis shows the working mode. It follows the page: Security pages use Security investigation, Observability pages Observability, Stack Management, Fleet, Machine Learning and Dev Tools Platform operations, everything else Data analysis. Select the tag to pick another mode for your next questions. The mode used is shown above each answer.

Before you ask from a page, you can check exactly what the model gets about it.

  1. Open the flyout with the header button.
  2. In the Context row, select the inspect icon, What Tocharian AI sees on this page.

A window lists the sections the model receives, after masking and the size limit, for example the screen text, the search state, the chart data and data loaded for the page. The first line tells you how many sections and characters are sent, and how many there were before the size limit. No model is called to show this.

The What Tocharian AI sees on this page window with the sections sent for a dashboard

What is read on each Kibana page is listed in Page awareness. Data behind a page is loaded with your own privileges; what you cannot open, Tocharian AI does not see.

When you open the flyout on a dashboard, Tocharian AI re-runs the dashboard’s panels with your time range, time zone, query, filters and controls, and looks for spikes, drops, level shifts and changes against the previous period of the same length.

  1. Open a dashboard, for example [Logs] Web Traffic.
  2. Select Tocharian AI in the header.
  3. Wait for Checking the dashboard panels… to finish.

You see either <n> noticeable change(s) on this dashboard with one line per change, or <n> panel(s) checked, no noticeable changes. Select Explain these changes to ask when each change happened, how large it is and what likely caused it.

Dashboard insights in the flyout: 8 panels checked, no noticeable changes, 3 panels not checked

Limits:

  • The check runs only while the conversation is empty, and its result is kept for two minutes for the same dashboard and search state.
  • At most 30 panels are checked. Re-run: Lens (form based, including formulas made of plain metrics, and ES|QL), aggregation based visualizations and saved searches. Not re-run, and listed under <n> panel(s) not checked: time shifts, reduced time ranges, per-second normalisation, counter rates and other reference operations, TSVB, Vega, Timelion, maps and Markdown.
  • This check is separate from your questions: when you ask about a dashboard, Tocharian AI also reads the data the charts draw on screen.

An answer can include up to four charts. Ask for one directly, by panel title or position, for example Show the panel "<panel title>" of the [Logs] Web Traffic dashboard, or let Tocharian AI add one when it helps.

There are two kinds:

  • From dashboard: <title>: a panel of an existing dashboard, loaded by Kibana’s dashboard itself, so it looks and behaves as on the dashboard. Open dashboard opens the dashboard with the same time range.
  • Temporary chart, not saved: a Lens chart of an evidence query, labelled chart of evidence <id>, so it shows the same numbers as the answer. Open in Lens opens it in the Lens editor, where you can change and save it.
A panel from the [Logs] Web Traffic dashboard shown in an answer, with the dashboard's filters, its time range and the Open dashboard link

The time range of a chart is fixed when the answer is written and shown under its title. no data in the default range, showing where the data is means the range was moved to where the data is.

To ask about part of a chart, click a point or drag across a time range. The selection appears under Selected on charts: and goes with every next question until you remove it. Reset range returns the chart to its original range.

Conversations are private to you and belong to the space you asked them in. An administrator sets how long they are kept (90 days by default).

  • In the app: the list on the left shows your conversations, newest first; a clock marks one that is still running. New conversation starts a fresh one. The trash icon deletes a conversation at once, without asking.
  • In the flyout: the flyout opens empty with the three most recent conversations. The Conversations menu lists all of them with a search box.
The conversation list in the app: New conversation, then the conversations newest first, one still running, each with a trash icon
  1. Point to one of your questions and select the pencil, Edit and ask again.
  2. Change the text and press Enter or select Send.

The answers after that question are replaced. Changes you already confirmed stay.

Select Regenerate under the last answer. It asks the same question again and replaces the answer.

Follow-up questions build on the earlier ones: Tocharian AI keeps the last eight questions and answers of a conversation, with the queries behind them. A conversation runs one question at a time.

A background investigation takes more steps and ends with a structured report. Use it for questions that need several angles, such as the cause of an incident.

  1. Turn on Background investigation next to the input.
  2. Type the question and send it.

The flyout shows Running in the background: you can leave this page, you will be notified when it is done. You can go to other Kibana pages. When it finishes, a notification Tocharian AI has finished appears with View result, which opens the report in the flyout on the page you are on.

A finished background investigation: a report with a headline, when the errors happen, which hosts, and evidence ids

Good to know:

  • Every question runs on the Kibana server, not in your browser: closing the page does not stop it. The notification appears while Kibana is open in your browser; otherwise open the conversation from the list.
  • A background investigation has 15 minutes and at most 16 model calls.
  • If Kibana restarts during a question, the conversation shows This question was interrupted by a Kibana restart. Select Ask again.
  • With several Kibana instances, a question started on another instance shows Running on another Kibana instance; progress refreshes every few seconds.
  • Investigations started through the API appear in your conversations with the badge API investigation.

Browse the data catalog and dataset profiles

Section titled “Browse the data catalog and dataset profiles”

The data catalog lists every dataset you can read, with its profile: purpose, field meanings, common values, time range and sensitive fields. Tocharian AI reads the profile before it queries a dataset, and creates one the first time a question uses a dataset that has none.

  1. In the app, select Data catalog.
  2. Search for a dataset, or select Profile datasets without a profile to profile all of them in the background.
  3. Select a dataset to open its profile.

The Status column shows Not profiled, OK, <n> field(s) to confirm or <n> type conflict(s). A type conflict means a field has different types in different indices, so aggregations on it may miss data.

The profile of kibana_sample_data_logs: purpose, document count, time range and the field table with meanings and sources

In a profile:

  • The Source of each field meaning is inferred, ECS, _meta, learned in chat or confirmed. Only confirmed meanings were checked by an administrator.
  • Common values show only values your own search can find; document and field level security apply.
  • Only unconfirmed filters the fields that still need a check. Rescan profiles the dataset again.
  1. In the field table, select the pencil next to the field.
  2. Type the meaning and save it.

Your correction is used right away by everyone who queries the dataset. From a user with the read privilege it stays unconfirmed (source learned in chat) until an administrator confirms it with the check icon; an administrator’s own correction is confirmed at once. With Write data view field descriptions on in the settings, confirmed meanings also appear in Discover.

Knowledge is facts people know that the data does not show, for example status 3 means refunded. Tocharian AI reads it before answering.

  1. In Data catalog, go to Knowledge. For knowledge about one dataset, use the knowledge section of its profile.
  2. Under Add knowledge, write one fact in one sentence, up to 500 characters.
  3. In Applies to, choose a dataset or leave All datasets.
  4. In Visible to, choose who it applies to, and select Add.
Visible toWho may add itStatus
Only meAnyoneConfirmed; applies only to your own conversations
Users of this spaceAdministrators (all privilege)Confirmed
Everyone (all spaces)Administrators (all privilege)Confirmed
The Knowledge table with two confirmed notes, where each applies and who added it

Tocharian AI can also suggest a fact during a conversation. A Remember this? card appears under the answer:

  • Only for me saves it for your own conversations.
  • Share saves it for everyone, marked Unconfirmed until an administrator confirms it. Only administrators can share.
  • Don’t save discards it.

Values that were masked in the conversation are stored as [masked], never as the real value. You can delete your own knowledge; administrators can delete, edit and confirm any.

In read-write mode, Tocharian AI can propose changes. Nothing changes until you confirm the card, and every change runs with your own Kibana and Elasticsearch privileges.

Requirements:

  • An administrator turned on Allow read-write mode in the settings.
  • If the administrator limited read-write mode to some roles, one of those roles.

If the switch is greyed out, point to it: Read-write mode is disabled by an administrator, Read-write mode is not enabled for your role or Read-write mode allows no changes tells you why.

An administrator may also limit what it can change, for example cases only. Changes of other kinds are not proposed.

  1. Switch from Read-only to Read-write next to the input. Each new conversation starts read-only.
  2. Ask for the change, for example Create a dashboard with 404 responses per day and the top 10 URLs from kibana_sample_data_logs.
  3. Review the card. Its title ends with (needs confirmation).
  4. Select Confirm and create, Confirm or Write, or Cancel.

After confirming, the card shows Created, <n> written or Error with the reason, and Open links to the new object.

ObjectChangesCard
DashboardsCreate; add, replace or remove panels; time range; controlsCreate a dashboard / Change a dashboard, with Preview: each panel was queried just now and the rows each panel returned
CasesCreate, comment, update title, description, status, severity, tags and assignees, attach alerts, push to an external systemCreate a case, Add a case comment, Update a case, Attach alerts to a case, Push a case to an external system
AlertsWorkflow status (open, acknowledged, closed); for security alerts also tags and assigneesChange alerts
Alerting rulesCreate ES|QL, KQL or Query DSL (Elasticsearch query), index threshold and custom threshold rules, with notifications through existing connectorsCreate an alerting rule, with a dry run on the last 24 hours
Security detection rulesCreate query, EQL, ES|QL, threshold and new terms rulesCreate a detection rule, with a dry run on the last 24 hours
RulesEnable, disable, mute, snooze, update, clone, deleteChange a rule
DocumentsWrite documents to an indexConfirm write
A Create a dashboard card with a preview of each panel's rows and the Confirm and create button A Create a case card with title, severity and tags, and the Confirm and create button

Limits:

  • Tocharian AI does not create connectors, because they hold passwords and tokens. Create them in Stack Management → Connectors; pushing a case needs a Jira, ServiceNow, IBM Resilient, Swimlane, TheHive or Webhook-Case connector.
  • If someone changed the dashboard after the card was proposed, confirming fails with The dashboard was changed by someone else since this was proposed; ask again.
  • Investigations started through the API are always read-only.

If an administrator shared more than one model, a menu next to the input lets you pick the model for new questions; the default is marked (default). Your choice is remembered in this browser. With one model, its name is shown instead.

If an administrator set a fallback model and your model fails or times out, the rest of the answer comes from the fallback. The step list shows <model> failed; continuing with the fallback model <model>, and the line under the answer says (fallback model).