README
¶
acatail — Azure Container Apps log viewer
English · 日本語
acatail is a terminal UI (TUI) for Azure Container Apps and Azure Container Apps Jobs logs. Follow live console logs, or open a completed job’s logs from its execution history without writing a Log Analytics query.

Comparison · Installation · Quick start · Usage · Development
Comparison
Use acatail to investigate a specific Azure Container Apps Job from your terminal. Move through the execution list to preview saved logs, filter for errors, then open the relevant entry. You don’t need to write a query or set up a separate log collector.
Microsoft tools for Azure Container Apps
acatail builds on these tools rather than replacing them.
| Tool | Best for | How acatail relates |
|---|---|---|
| Azure CLI | Streaming a known container’s logs or piping them into a script | acatail uses the Azure CLI underneath and adds a resource picker, live filtering, and a saved-log preview. |
| Azure Developer CLI (azd) | Opening Application Insights dashboards for an azd project | azd monitor launches dashboards in the browser and depends on the resources an azd template provisions. acatail stays in the terminal and works with any app or Job you can access. |
| Azure PowerShell | Running KQL from PowerShell scripts or Automation runbooks | Invoke-AzOperationalInsightsQuery returns query results for automation. acatail builds the Job log queries for you and shows the results interactively. |
| Azure portal and Log Analytics | Inspecting settings and metrics, or querying and aggregating logs across apps | acatail opens saved console logs for a selected Job execution without KQL. Use Log Analytics when you need arbitrary queries or other log types. |
Observability platforms
| Platform | Best for | How acatail relates |
|---|---|---|
| Datadog / Grafana with Azure Monitor | Shared dashboards and cross-service investigations | Once configured, these platforms bring telemetry together for a team. acatail reads from Azure services you already use and focuses on one app or Job at a time. |
Open-source terminal tools
| Tool | Best for | Where acatail differs |
|---|---|---|
| Az-TUI | Browsing Azure Container Apps and revisions, tailing container logs, or opening a shell from a TUI | The closest alternative. Az-TUI covers more app management tasks; acatail puts Job execution history and saved logs in the foreground. |
| K9s | Browsing Kubernetes workloads and opening pod logs from a TUI | acatail uses Azure subscriptions, apps, Jobs, and executions as its navigation model. It does not require a Kubernetes context. |
| Stern | Following logs from multiple Kubernetes pods and containers at once | acatail follows one selected live target at a time. Its Job history view can also open saved output from completed runs. |
| lnav | Reading and querying files or piped logs, with JSON formatting and SQLite | acatail fetches logs for the Azure resource or Job execution you select. Its SQL view displays SQL already present in a log entry. |
Saved-log previews use the Container Apps environment’s direct Log Analytics destination. Azure Monitor diagnostic settings are not supported. If a job is recreated with the same name in the same environment, acatail can find runs from the last 30 days whose console logs remain in that workspace.
For a long log entry, open the details and switch between formatted JSON, SQL with its original line breaks, and the raw log. Closing the details takes you back to the same place in the list.
Installation
Homebrew or Malt
brew install nitaking/tap/acatail
On Homebrew versions that require explicit tap trust, run brew trust nitaking/tap first.
On macOS, Malt can install from the same tap:
malt install nitaking/tap/acatail
Run acatail --demo to try it. To upgrade an existing Malt installation, refresh the tap first:
malt tap --refresh nitaking/tap
malt upgrade acatail
aqua
Add the registry from this repository to your aqua.yaml, then install:
registries:
- type: standard
ref: v4.155.1
- name: acatail
type: github_content
repo_owner: nitaking
repo_name: acatail
ref: v0.4.0
path: aqua/registry.yaml
packages:
- name: nitaking/acatail@v0.4.0
registry: acatail
aqua install
aqua exec -- acatail --demo
If you use aqua's policy feature, allow the acatail registry in your policy file first.
Other options
Prebuilt binaries for macOS and Linux are available on GitHub Releases. Go developers can also run go install github.com/nitaking/acatail@v0.4.0; the module builds with Go 1.22 or later.
Quick start
Run acatail --demo to try it without Azure. It opens a sample shop's subscriptions, Container Apps, and a dozen Jobs, so you can follow live logs, browse execution history, and open saved logs with JSON and SQL. Run acatail --live-demo to go straight to one app's live logs.
To view your own logs, install the Azure CLI and sign in:
az login
acatail
Live job logs require the Azure CLI containerapp extension. Saved job logs require the log-analytics extension and read access to the corresponding workspace.
Usage
Run acatail --help for command-line options or acatail --version to check the installed version. Press ? inside the app for keyboard shortcuts.
Type to filter the resource list, use the arrow keys to move, and press Enter to select. A Container App can also be opened directly:
acatail my-app -g my-resource-group --filter 'connection timeout'
In a job's execution history, move the cursor to preview that run's saved logs. Press Enter to move to the log pane. From there, use the arrow keys to select a log entry and Enter to open its details.
| Key | Action |
|---|---|
Tab |
Switch between the list and log panes |
F2 |
Open the selected job's execution history |
h |
Open execution history from a job's live log pane |
F5 |
Refresh the execution list without closing the open logs |
c |
Switch containers in a multi-container job's live log pane |
f / / |
Cycle log levels or search for text |
Space / End |
Pause or resume the view; jump back to the latest logs |
j / s / v |
View indented JSON, read the log's SQL field, or show the original log text |
z |
Toggle full-width display for saved logs or their details |
Esc / q |
Go back or clear the active filter; quit from the log pane with q |
In the detail view, use j, s, or v to see the same entry as JSON, SQL, or raw text. Press Space or u to page down or up. Press g or Shift+g to jump to the beginning or end.
The history view searches the last 30 days of saved console logs and loads up to 1,000 lines per execution. It can find executions missing from Azure's execution list if their console logs are still in the same Log Analytics workspace. Logs routed through Azure Monitor diagnostic settings are not supported by this history view.
The view distinguishes a query that returned no logs from a query that failed or reached the 1,000-line limit.
Development
Use mise to install the Go version pinned in mise.toml.
mise install
mise exec -- go test ./...
mise exec -- go build -o acatail .
./acatail --demo
To record docs/demo.gif again after a UI change, install VHS and run PATH="$PWD:$PATH" vhs docs/demo.tape after the build above. The recording uses the demo data, so it needs no Azure account.
Releasing a new version
Run mise run release:build to build the archives and checksums locally.
- Check out the commit already on
origin/main. You need permission to push tags tonitaking/acatail. - Add a
## [0.2.1] - YYYY-MM-DDsection toCHANGELOG.mdand commit it. The release notes come from that section, and the workflow fails if it is missing. - Run
mise run release -- v0.2.1, substituting an unused version. The task tests the code and pushes the tag. GitHub Actions publishes the four platform archives andchecksums.txtwith the changelog section as the release notes. - The workflow renders the Homebrew formula from the release's
checksums.txtand commits it to the tap. This step needs aHOMEBREW_TAP_TOKENrepository secret with write access to the tap. Without it, runmise run tap -- v0.2.1locally after the release is published; it does the same update with yourghlogin.
Documentation
¶
Overview ¶
Command acatail is a terminal UI (TUI) for Azure Container Apps and Azure Container Apps Jobs logs.
Follow live console logs, or open a completed job's logs from its execution history without writing a Log Analytics query. acatail uses the Azure CLI underneath, so sign in with `az login` before running it.
Install:
go install github.com/nitaking/acatail@latest
Run `acatail --help` for usage. See the README for details: https://github.com/nitaking/acatail