- History starts a minute before you turn it on. The agent reads each container’s log from one minute before that moment (its default). Apart from that minute, lines written while hosted logs are off are never sent.
- An agent upgrade leaves no gap. When the cluster’s agent is upgraded or restarted, the new one continues each container’s log from the last line the old one sent, so no line is stored twice and none is skipped. That holds for a restart of up to 15 minutes, on agent 2.1.1345 or later: the upgrade to that release is the last one that can store up to a minute of lines twice. An agent that is killed, by a lost node or by running out of memory, starts each container a minute back instead: up to a minute of lines can be stored twice, and lines written earlier than that while no agent ran are not sent.
- A search reads one cluster. Every read of the hosted log store is limited to your organisation and the cluster you are reading, whatever the query says, so no other cluster’s lines can come back. The note under the lines in an application’s Logs → Search, and the
cluster_attributionnote of an API or MCP answer, says so. - Your own log store comes first. While a log source of your own is connected to the cluster, History on Automatic searches that store. Choose Ankra hosted logs under Log store in Cluster logs to search the hosted lines instead.
- Live logs need none of this. Live reads the running containers through the cluster’s agent, with or without hosted logs.
Ankra turns hosted logs on platform by platform. Where they are not offered, you can still turn them on for a cluster, and nothing is sent until they are. The cluster’s Logs and data settings and
ankra cluster logs-ship status say which applies to yours.Before you start
- The cluster’s agent must follow the switch. An agent that is too old, or that has log shipping turned off in its own Helm values (
logs_ship.enabled), sends nothing whatever the switch says. Upgrade it withankra cluster agent upgrade --cluster <cluster>, or turn on automatic agent upgrades in Settings → Agent. See Cluster Settings. - Your role needs
clusters.writeon the cluster. Anyone else is told which roles can turn hosted logs on. See Roles & Access.
Turn it on for a cluster
- Portal
- CLI
- MCP
- Open Infrastructure → Clusters → <your cluster> → Settings → Logs and data (
/next/clusters/<cluster-id>/settings/logs). The Ankra hosted logs section readsOff. No log lines from this cluster are sent to Ankra., with what is sent, how long it is kept, the price, who can read the lines and who can change the setting. - Click Turn on hosted logs. The Turn on Ankra hosted logs dialog repeats what is sent and for how long, and that lines written while it is off are never sent later.
- Click Turn on hosted logs in the dialog. The section now reads
On. This cluster's agent sends the log lines of its containers to Ankra.
/next/services/telemetry). Collection by cluster lists each cluster with Collection requested or Collection off and a Turn on hosted logs or Turn off hosted logs button. Turning collection on requests log shipping; it does not verify that lines have arrived.Turn it on from an application
1
Open the application's Logs
Open Applications → <your application> → Logs. When the cluster keeps no logs, the page reads Live with a card above the lines. The card shows <namespace> has no log history yet with
Ankra will keep the container logs from <cluster> for 7 days, included during the pilot. and This covers every namespace on <cluster>, not only <namespace>.2
Turn on log history
Click Turn on log history. The card reads Turning on log history and ticks off Turned on Ankra hosted logs, then Waiting for the first line from <namespace>.If your role cannot change the cluster, the card names the role that can, and Ask an admin to turn it on copies a link to this view: whoever opens it lands here and can turn it on with one click.
3
Wait for the first line
When First line from <namespace> arrived is ticked, the card reads Log history is on and the lines show in Search.
Verify
Open Infrastructure → Clusters → <your cluster> → Technical details → Kubernetes → Cluster logs, click History, and set Log store in Filters to Ankra hosted logs. Lines written since you turned hosted logs on appear. The first lines usually arrive within a minute; until then the page reads Waiting for the first lines and checks every few seconds. See Logs.What the Logs page tells you
When an application’s Logs page has nothing to show, it says why, with the next step:Turn it off
- Portal
- CLI
- MCP
In Infrastructure → Clusters → <your cluster> → Settings → Logs and data, click Turn off hosted logs, read the Turn off Ankra hosted logs dialog and confirm with Turn off hosted logs. The section reads
Off. No log lines from this cluster are sent to Ankra.Related
Logs
Search a cluster’s log history, or read its containers live.
Log sources
Connect Loki, Elasticsearch, OpenSearch or VictoriaLogs instead.
Usage
The hosted logs bytes and lines Ankra accepted, per cluster and period.
Cluster settings
The agent version, automatic upgrades and other per-cluster settings.