Administer Tocharian AI
For administrators of a self-managed Kibana. This guide gets Tocharian AI installed, connected to a model and set up for your users, and it lists every setting with its default and effect.
Tasks come first; each one links to the reference tables at the end of its section. For why the plugin works the way it does (data flow, masking, privileges), read Security and privacy.
- Check the requirements
- Install, upgrade or remove the plugin
- Configure kibana.yml
- Give users access
- Add a model
- Allow outbound connections to the model
- Turn on read-write mode
- Mask sensitive fields
- Set query limits
- Sync profiles to data views and mappings
- Keep or delete conversations
- Record activity and install the dashboards
- Manage the license and the trial
- Where data is stored
- Settings reference
Check the requirements
Section titled “Check the requirements”| Requirement | Detail |
|---|---|
| Kibana | Self-managed, 8.17.0 to 9.5.7: tarball, package, Docker image or ECK. Elastic Cloud Hosted and Serverless do not allow installing Kibana plugins. |
| Plugin zip | One per Kibana version. A Kibana plugin only loads into the exact version it was built for: tocharianAi-<plugin version>-kibana-<Kibana version>.zip. Differences between versions: Kibana versions. |
| Elasticsearch security | Recommended. With security on, queries and changes run with each user’s own privileges. |
| Encryption key | xpack.encryptedSavedObjects.encryptionKey, needed to store model API keys entered in the settings page. ECK sets it for you. |
| A model | Any endpoint that speaks the OpenAI (/chat/completions) or Anthropic (/messages) API, reachable from the Kibana server. |
| Elastic Workflows step | Kibana 9.5 or later. See API. |
Editions
Section titled “Editions”| Feature | Free | With a license or the trial |
|---|---|---|
| Chat, evidence, charts in answers, data catalog, knowledge, background investigations, automation API, Workflows step | ✓ | ✓ |
| Read-write mode: confirmed changes to documents, dashboards, cases, alerts, rules and detection rules | ✓ | ✓ |
| Activity records (Kibana log and data stream), usage report | ✓ | ✓ |
Sensitive data masking (masking) | ✓ | |
Read-write controls: which roles can use read-write mode, and what it can change (rw) | ✓ | |
Built-in audit and usage dashboards (dashboards) | ✓ |
The names in brackets are the feature names a license file lists. Manage the license and the trial says what happens when a license ends.
Install, upgrade or remove the plugin
Section titled “Install, upgrade or remove the plugin”Install
Section titled “Install”-
Download the zip of your Kibana version from the release, and check it against the release’s
SHA256SUMS:Terminal window sha256sum -c SHA256SUMS --ignore-missing -
Install it and restart Kibana:
Terminal window cd /path/to/kibana-9.5.7bin/kibana-plugin install file:///path/to/tocharianAi-1.0.1-kibana-9.5.7.zip -
Open Stack Management → Kibana → Tocharian AI and add a model.
On ECK, install the zip from an init container: Kibana versions.
Upgrade
Section titled “Upgrade”- Remove the installed version:
bin/kibana-plugin remove tocharianAi. - Install the zip of the new version and restart Kibana.
Settings, models, API keys, the license, conversations, profiles and activity records stay. The browser loads the new interface after the restart.
When you upgrade Kibana itself, install the plugin zip built for the new Kibana version.
Remove
Section titled “Remove”Kibana refuses to start when its .kibana index holds saved objects of a type that no plugin registers. Delete the plugin’s saved objects before you remove it:
-
As a user with write access to the Kibana system indices (for example
elastic), run in Dev Tools → Console:POST .kibana*/_delete_by_query{"query": {"terms": {"type": ["tocharian-ai-config", "tocharian-ai-secret", "tocharian-ai-license", "tocharian-ai-conversation"]}}}This deletes the settings, the model API keys, the license and every user’s conversations. It cannot be undone.
-
Remove the plugin and restart Kibana:
Terminal window bin/kibana-plugin remove tocharianAi
You can keep or delete the .kibana-tocharian-ai-profiles index, the .kibana-tocharian-ai-audit data stream and its index template .kibana-tocharian-ai-audit-template, and the built-in dashboards. They do not stop Kibana from starting.
Configure kibana.yml
Section titled “Configure kibana.yml”Most installations need nothing beyond the encryption key, which is often set already.
-
Set the encryption key, if it is not set yet. It must be at least 32 characters and the same on every Kibana instance:
xpack.encryptedSavedObjects.encryptionKey: "<32 or more characters>" -
Optional: give the default model’s API key in the Kibana keystore instead of the settings page:
Terminal window bin/kibana-keystore add tocharianAi.modelApiKey -
Optional: write the activity log to its own file:
logging:appenders:tocharian_ai_audit:type: filefileName: /var/log/kibana/tocharian-ai-audit.jsonlayout:type: jsonloggers:- name: plugins.tocharianAi.auditappenders: [tocharian_ai_audit]level: info -
Restart Kibana.
Reference: kibana.yml settings
Section titled “Reference: kibana.yml settings”| Setting | Type | Default | Effect |
|---|---|---|---|
tocharianAi.enabled | boolean | true | false turns the plugin off. Kibana then no longer knows the plugin’s saved object types and may refuse to start while they exist; to stop using the plugin, remove it instead. |
tocharianAi.modelApiKey | string (keystore) | not set | API key of the default model. Overrides the key entered in the settings page, and the settings page shows it as preconfigured. It applies to the default model only. |
tocharianAi.profileIndex | string | .kibana-tocharian-ai-profiles | Index for dataset profiles, sensitivity rules, knowledge and the trial record. |
tocharianAi.auditDataStream | string | .kibana-tocharian-ai-audit | Data stream for activity records, the source of the built-in dashboards and the usage report. |
tocharianAi.serviceApiKey | string (keystore) | not set | Base64 id:api_key of an Elasticsearch API key that may write the profile index and the activity data stream. Needed only when you move them outside .kibana-*, where Kibana’s own system user cannot write. When set, it is used instead of Kibana’s own identity for both. |
Kibana settings the plugin follows:
| Setting | Effect on Tocharian AI |
|---|---|
xpack.encryptedSavedObjects.encryptionKey | Without it, model API keys cannot be saved in the settings page. tocharianAi.modelApiKey still works. |
xpack.actions.allowedHosts | Hosts the model URL may use. Default: any host. |
xpack.actions.proxyUrl, xpack.actions.proxyBypassHosts, xpack.actions.proxyOnlyHosts | Proxy for model calls, unless a model sets its own proxy. |
server.publicBaseUrl | When set, the Workflows step returns full links to investigations; otherwise paths. |
Logger plugins.tocharianAi.audit | Activity records in the Kibana log, level info. |
Give users access
Section titled “Give users access”Who may use Tocharian AI is set in Stack Management → Roles, with the Kibana feature privilege Tocharian AI (category Kibana) of each space.
- Give regular users
read. - Give the people who set up the plugin
all. - Give users Elasticsearch
readandview_index_metadataon the datasets they should ask about. The data catalog lists only datasets a user can read. - For the built-in dashboards, give viewers
readon.kibana-tocharian-ai-audit. Superusers have it.
What a user can query or change always follows their own Elasticsearch and Kibana privileges, whatever the feature privilege.
Reference: feature privileges
Section titled “Reference: feature privileges”| Action | read | all |
|---|---|---|
| Use the app, the header button and flyout, the dashboard panel action, the Discover document tab and the Index Management tab | ✓ | ✓ |
| Ask questions, run background investigations, use the automation API and the Workflows step | ✓ | ✓ |
| Pick a model that is shared with users | ✓ | ✓ |
| Pick a model that is not shared (to try it out) | ✓ | |
| Browse the data catalog and profile datasets | ✓ | ✓ |
| Suggest a field meaning (stored as learned) | ✓ | ✓ |
| Confirm a field meaning, write a dataset description | ✓ | |
| Add personal notes, save knowledge for yourself | ✓ | ✓ |
| Add notes for everyone or a space, share knowledge with everyone, edit notes | ✓ | |
| Delete a note | author | ✓ |
| Confirm proposed changes in read-write mode | ✓ | ✓ |
| Open the settings page; change settings, models and API keys; test a connection | ✓ | |
| Mark fields as sensitive | ✓ | |
| Install a license, start the trial, remove the license, export the usage report | ✓ | |
| Install the built-in dashboards | ✓ |
Reference: privileges that come from Elasticsearch and Kibana
Section titled “Reference: privileges that come from Elasticsearch and Kibana”| What | Needs |
|---|---|
| Querying a dataset | Elasticsearch read on it. Document and field level security apply to queries and to the sample values in profiles. |
| Seeing a dataset in the catalog | Elasticsearch read; listing uses view_index_metadata. |
| Data behind a page (rules, cases, ML jobs, Fleet and more) | The user’s own privileges for that page. A missing privilege is reported to the model, not guessed. |
| Writing documents after confirming | Elasticsearch index or write on the target index. |
| Dashboards, cases, alerts, rules, detection rules after confirming | The Kibana feature privileges for that object in the current space. |
| Pushing a case to an external system | An existing connector. Users create connectors in Stack Management; the plugin never creates them. |
Add a model
Section titled “Add a model”- Open Stack Management → Kibana → Tocharian AI.
- Under Models, select Add model.
- Fill in the fields (see the reference below) and select Save settings.
- Enter the API key and select Save API key.
- Select Test connection. A working model shows Connected and the time it took.
- Choose the Default model and, optionally, a Fallback model.
Users ask the default model, or pick another shared model in chat. The automation API and the Workflows step use the default model unless a request names another one. When the chosen model fails or times out, the fallback model finishes the answer, and the answer says so.
The API key is encrypted with Kibana’s encryption key, cannot be viewed after saving, and is bound to the model’s API format and base URL. When you change the base URL or the API format, enter the key again. Removing a model removes its key.
Reference: model fields
Section titled “Reference: model fields”| Field | Type | Default | Effect |
|---|---|---|---|
| Display name | string | the model name | Shown in the chat model picker. |
| API format | openai or anthropic | openai | OpenAI (/chat/completions) or Anthropic (/messages) request format. |
| Base URL | URL | https://api.openai.com/v1 | Endpoint without the path of the call, for example https://api.anthropic.com/v1 or http://localhost:11434/v1. |
| Model name | string | empty | The model id the endpoint expects. A model without a name cannot answer. |
| API key | secret | not set | Stored encrypted. Not needed for endpoints without authentication. |
| Proxy | URL | empty | Proxy for this model only, for example http://<user>:<password>@proxy.example.com:3128. Empty uses Kibana’s xpack.actions.proxyUrl. |
| Verify TLS certificates | boolean | on | Turn off only for a model server with a self-signed or mismatched certificate. |
| Extra headers | text | empty | One Header: value per line, sent with every call. Do not put secrets here: only the API key is encrypted. |
| Input price, output price | number, USD per million tokens | 0 | Used for cost in answers and on the usage dashboard. 0 hides cost. |
| Users can pick this model | boolean | on | Off: only users with all can pick it. The default model is always available. |
| Default model | model | the first model | Used when nobody picks a model, and by the API and Workflows step. |
| Fallback model | model or none | none | Finishes an answer when the chosen model fails or times out. |
Allow outbound connections to the model
Section titled “Allow outbound connections to the model”The model endpoint is the only host the plugin calls. Model calls follow the outbound rules of Kibana’s own connectors:
xpack.actions.allowedHostsmust allow the model host. Its default allows any host. A blocked host fails withHost <host> is not allowed by xpack.actions.allowedHosts in kibana.yml.- A model without its own proxy uses
xpack.actions.proxyUrl, honouringxpack.actions.proxyBypassHostsandxpack.actions.proxyOnlyHosts.
xpack.actions.allowedHosts: ["api.openai.com", "localhost"]xpack.actions.proxyUrl: "http://proxy.example.com:3128"Turn on read-write mode
Section titled “Turn on read-write mode”Read-write mode lets Tocharian AI propose changes. Nothing changes until the user confirms a card, and every change runs with that user’s own privileges: a user who cannot write to an index, or edit a dashboard, cannot do it through Tocharian AI either.
Available in every edition.
- In the settings page, under Writes, turn on Allow read-write mode.
- Select Save settings.
Users then switch a conversation to read-write. While the switch is off, every conversation is read-only. The automation API and the Workflows step are always read-only.
Limit who can use it and what it can change
Section titled “Limit who can use it and what it can change”Edition: needs rw.
Without limits, everyone who can use Tocharian AI can switch to read-write, and it can propose every kind of change. To narrow this, under Writes:
- In Roles that can use read-write mode, add the Elasticsearch roles. A user needs one of them. Roles are listed if you can manage security; otherwise type the names.
- Under Changes it can propose, clear what it must not change: Documents (write to an index), Dashboards, Cases, Alerts (status, tags, assignees), Alerting and detection rules.
- Select Save settings.
Users without one of the roles see the Read-write switch greyed out. Changes of a cleared kind are not offered to the model, and a card proposed before the change is refused when it is confirmed.
These limits decide who may use Tocharian AI to make changes. They do not replace Elasticsearch and Kibana privileges, which still apply to every change.
When the license ends, the limits stay in force and can no longer be changed. Remove the read-write restrictions lifts them.
Mask sensitive fields
Section titled “Mask sensitive fields”Masking replaces sensitive values with code names, such as EMAIL_3fa2c1d0, before anything reaches the model. Rules decide, not AI. How it works: Security and privacy.
Edition: needs masking. Without it, the model sees values as they are.
- In the settings page, under Sensitive data masking, check that Enable masking is on. It is on by default.
- Leave Scan all text values on to replace e-mail addresses, phone numbers and similar content in any field.
- Open the Tocharian AI app, then Data catalog, and open a dataset.
- In the field table, review the Sensitive column. Fields suggested by the rules show the reason. Set each field to one of the options below.
- Select Save settings for the two switches. Field choices are saved when you change them.
A field marked sensitive is masked in every dataset that has a field of that name. Its values are no longer sampled for profiles.
Reference: field sensitivity
Section titled “Reference: field sensitivity”| Option | Stored as | What the model gets |
|---|---|---|
| Not sensitive | none | The value. Overrides a suggestion. |
| Code name | pseudonymize | A code name that stays the same within a conversation, so the model can count and compare. Code names in the model’s queries become the real values before the query runs. |
| Partly hidden | partial | Part of the value: j***@example.com, ***1234 for numbers, the first two characters otherwise. |
| Not provided | drop | Nothing: the field is removed from results. |
Suggestions come from the field name, the ECS fields that usually hold personal data (such as user.email, url.password, http.request.body.content) and the format of sample values. Names that look like passwords, secrets, tokens, keys, credentials, cookies or sessions get Not provided; other suggestions get Code name. An administrator’s choice always wins.
Reference: content scan
Section titled “Reference: content scan”With Scan all text values on, these patterns are replaced in any text value, also in fields not marked sensitive, in page text and in questions:
| Code name prefix | Matches |
|---|---|
EMAIL_ | E-mail addresses |
PHONE_ | Phone numbers in international or bracketed format |
CARD_ | Card numbers that pass the Luhn check |
IBAN_ | IBANs with a valid check sum |
SECRET_ | JWTs, private keys, API keys of common providers, and the value of password=, secret=, token=, api_key= and similar pairs |
VALUE_ | Values of sensitive fields that match none of the above |
When the license ends, masking keeps applying its last rules, and they can no longer be changed.
Set query limits
Section titled “Set query limits”In the settings page, under Query limits:
| Setting | Default | Range | Effect |
|---|---|---|---|
| Query timeout (seconds) | 30 | 5–600 | Time limit of each Elasticsearch query. The connection test waits four times this, at least 10 seconds. |
| Maximum rows | 500 | 10–10000 | Highest LIMIT of an ES|QL query; larger limits are lowered. Query DSL searches return at most 100 documents. |
| Default time range cap (days) | 90 | 1–3650 | When the user’s page has no time range and the query sets none, queries on a dataset with recent data cover the last this many days. Datasets whose newest data is older are not capped. |
Fixed limits: a question may take up to 5 minutes, a background investigation or a deep API investigation up to 15 minutes. A question takes up to 8 model steps, a background or deep investigation up to 16.
Sync profiles to data views and mappings
Section titled “Sync profiles to data views and mappings”In the settings page, under Profile sync:
| Setting | Default | Effect |
|---|---|---|
| Write data view field descriptions | on | Confirmed field meanings are written to the matching data views, so Discover shows them. |
Write mapping _meta.description | off | Dataset descriptions are also written to the dataset’s mapping, as the user who writes them, so other tools can read them. |
The plugin also reads both: data view field descriptions and mapping _meta.description become field meanings and dataset descriptions in profiles.
Keep or delete conversations
Section titled “Keep or delete conversations”In the settings page, under Activity log, set Keep conversations (days). Default 90. 0 keeps conversations forever.
Conversations not updated for that many days are deleted once a day, in every space, starting a minute after Kibana starts. Each daily run deletes up to 500. Retention does not apply to activity records, profiles or knowledge.
Record activity and install the dashboards
Section titled “Record activity and install the dashboards”Every question, tool call, confirmed or cancelled change and setting change is recorded:
- in the Kibana log, logger
plugins.tocharianAi.audit, always on; - in the data stream
.kibana-tocharian-ai-audit, while Also write activity records to a data stream is on (default). Kibana writes it with its own identity, so every user’s activity is recorded whatever their index privileges.
To keep question text out of the records, set Question text to Fingerprint only (default) or Not logged.
Install the built-in dashboards
Section titled “Install the built-in dashboards”Edition: needs dashboards.
- In the settings page, under Built-in dashboards, select Install dashboards. They are installed into the current space.
- Select Open audit dashboard or Open usage & cost dashboard.
To update them after an upgrade, select Update dashboards. To have them in another space, install them from that space.
The audit dashboard shows who uses Tocharian AI, what was queried and which changes were confirmed. The usage & cost dashboard shows tokens, estimated cost and response time. Installing creates the data view tocharian-ai-audit, the dashboards tocharian-ai-audit-dashboard and tocharian-ai-usage-dashboard and one saved search.
Reference: activity settings
Section titled “Reference: activity settings”| Setting | Default | Effect |
|---|---|---|
| Also write activity records to a data stream | on | Writes records to .kibana-tocharian-ai-audit. The dashboards and the usage report read it. |
| Question text | Fingerprint only | Full text, Fingerprint only (sha256: and 16 hex characters) or Not logged. Applies to the log and the data stream. |
| Keep conversations (days) | 90 | See Keep or delete conversations. |
Reference: activity records
Section titled “Reference: activity records”event.action is tocharian_ai. followed by:
| Action | Recorded when |
|---|---|
ask | A question was answered (chat, background, API or Workflows) |
tool_call | The model ran a tool, such as a query |
write_confirmed, write_cancelled, write_rejected | A proposed document write was confirmed, cancelled, or refused by the settings |
kibana_action | A confirmed change to a dashboard, case, alert or rule ran |
profile_update | A field meaning or dataset description was changed |
note_update | A note was added, changed or deleted, or knowledge was saved |
masking_update | A field’s sensitivity was changed |
scan | Datasets were profiled |
settings_change | Settings were saved |
secret_change | A model API key was replaced or removed |
license_change | A license was installed or removed, or the trial was started |
dashboards_install | The built-in dashboards were installed |
| Field | Content |
|---|---|
@timestamp, event.outcome, event.duration | Time, success or failure, duration in nanoseconds |
user.name, kibana.space_id | Who and in which space |
tocharian_ai.conversation_id, run_id, kind | The conversation, the run and its kind (chat, background, api) |
tocharian_ai.model, mode | Model and ro or rw |
tocharian_ai.question | Per the Question text setting |
tocharian_ai.tool, query, target, hits, datasets | Tool, query (up to 4,000 characters), target, hit count, datasets used |
tocharian_ai.detail | Detail of the event (up to 2,000 characters) |
tocharian_ai.tokens.input, output, total, cost_usd, llm_calls, queries, duration_ms | Usage of an answer |
tocharian_ai.masked_values | Values masked in an answer |
The data stream has no lifecycle policy. To limit how long records are kept, add one to the index template .kibana-tocharian-ai-audit-template or delete old backing indices.
Manage the license and the trial
Section titled “Manage the license and the trial”Licenses are files signed by Tocharian OÜ and verified offline inside Kibana. Nothing is sent anywhere.
Start the trial
Section titled “Start the trial”- In the settings page, under License, select Start 30-day trial.
- Confirm.
Each Elasticsearch cluster gets one trial, with every licensed feature. A trial has no grace period.
Install a license
Section titled “Install a license”- Under License, select or drop the license file (
.json), or paste it. - Select Install.
A license replaces the trial while it is active. Remove license stops the licensed features at once; the trial record stays.
Export the usage report
Section titled “Export the usage report”Select Export usage report and send the file yourself, for example when you renew. It covers the last 30 days: number of questions, active users, spaces, questions by kind, tokens and active days, with the plugin and Elasticsearch versions, the cluster id and the license details. It contains no questions, answers or data. It needs the activity data stream.
Reference: license states
Section titled “Reference: license states”| State | Licensed features | Masking |
|---|---|---|
| None (free) | Off | Off |
| Active | On, as listed in the license | On, rules can be changed |
| Grace: up to 14 days after a license expires | On | On, rules can be changed |
| Expired, or trial ended | Off: the read-write limits keep their last values and can only be removed; the dashboards cannot be installed or updated | Keeps applying its last rules; they cannot be changed |
| Invalid (signature, or a plugin major version above the license’s) | Off | Off |
Dashboards already installed stay. While the license cannot be read, for example while Elasticsearch restarts, masking stays on with its last rules.
Where data is stored
Section titled “Where data is stored”| What | Where |
|---|---|
| Settings and models | Saved object tocharian-ai-config (hidden, all spaces) |
| Model API keys | Saved objects tocharian-ai-secret, one per model, encrypted by Kibana |
| License | Saved object tocharian-ai-license (hidden, all spaces): the license file and the trial record. A second copy of the trial record is kept in the profile index. |
| Conversations and runs in progress | Saved objects tocharian-ai-conversation (hidden, per space, private to their owner). The code names of masked values and their real values are stored with the conversation. |
| Dataset profiles, sensitivity rules, knowledge | Index .kibana-tocharian-ai-profiles (hidden, written by Kibana) |
| Activity records | Kibana log plugins.tocharianAi.audit; data stream .kibana-tocharian-ai-audit (hidden, written by Kibana) |
| Built-in dashboards | Data view tocharian-ai-audit, two dashboards and one saved search in the space where they were installed |
The owner of a conversation is a user name in a realm: a native admin and an LDAP admin are different users. A request with an API key belongs to the user who created the key.
Settings reference
Section titled “Settings reference”Every setting of Stack Management → Kibana → Tocharian AI. Changes need all and take effect within a few seconds, on every Kibana instance.
| Section | Setting | Default | Effect |
|---|---|---|---|
| Models | Models, default model, fallback model | none | See Add a model. |
| Writes | Allow read-write mode | off | See Turn on read-write mode. |
| Writes | Roles that can use read-write mode | empty: everyone who can use Tocharian AI | See Limit who can use it. Needs rw. |
| Writes | Changes it can propose | all | See Limit who can use it. Needs rw. |
| Sensitive data masking | Enable masking | on | See Mask sensitive fields. Needs masking. |
| Sensitive data masking | Scan all text values | on | See Reference: content scan. |
| Query limits | Query timeout (seconds) | 30 | See Set query limits. |
| Query limits | Maximum rows | 500 | See Set query limits. |
| Query limits | Default time range cap (days) | 90 | See Set query limits. |
| Profile sync | Write data view field descriptions | on | See Sync profiles. |
| Profile sync | Write mapping _meta.description | off | See Sync profiles. |
| Activity log | Also write activity records to a data stream | on | See Record activity. |
| Activity log | Question text | Fingerprint only | See Reference: activity settings. |
| Activity log | Keep conversations (days) | 90 | See Keep or delete conversations. |
| Built-in dashboards | Install or update dashboards | not installed | See Install the built-in dashboards. |
| License | License file, trial, usage report | none | See Manage the license and the trial. |
| Status | Encryption key, storage, version | read-only | Whether the encryption key is set, the profile index and data stream in use, and the plugin and Elasticsearch versions. |