acatail

command module
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2026 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

azlogtail — Terminal log viewer for Azure

English · 日本語

Release CI Go Reference Go version Downloads

azlogtail is a terminal UI (TUI) for logs from Azure Container Apps, Container Apps Jobs, and App Service web apps. Follow live logs, or open a completed job’s logs from its execution history without writing a Log Analytics query.

Previously called acatail. See how to switch to azlogtail.

Features · Comparison · Installation · Quick start · Usage · Security and privacy · Development

Supported Azure services

Service Live logs Saved logs
Azure Container Apps Yes No
Azure Container Apps Jobs Yes From the job's execution history
Azure App Service Web Apps Production slot No

Azure Functions and Azure API Management are not supported.

Features

  • Live logs for Container Apps, Jobs, and App Service web apps, with pause and jump-to-latest.
  • Job execution history with saved-log previews from Log Analytics — no KQL.
  • Runs missing from Azure's execution list, found from logs still in Log Analytics (last 30 days).
  • Filtering by log level or text.
  • Long entries shown as formatted JSON, SQL, or raw text.
  • Container switching in multi-container jobs.
  • Sharing: copy a log, copy it as a prompt for an AI agent, save the matching logs to a file, or copy a screenshot of the screen.
  • Azure portal links for the selected app, job, or subscription.
  • Demo mode (azlogtail --demo) to try it without Azure.

Comparison

Use azlogtail 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

azlogtail builds on these tools rather than replacing them.

Tool Best for How azlogtail relates
Azure CLI Streaming a known container’s logs or piping them into a script azlogtail 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. azlogtail 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. azlogtail 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 azlogtail 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 azlogtail relates
Datadog / Grafana with Azure Monitor Shared dashboards and cross-service investigations Once configured, these platforms bring telemetry together for a team. azlogtail 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 azlogtail 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; azlogtail puts Job execution history and saved logs in the foreground.
K9s Browsing Kubernetes workloads and opening pod logs from a TUI azlogtail 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 azlogtail 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 azlogtail 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, azlogtail 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/azlogtail

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/azlogtail

Run azlogtail --demo to try it. To upgrade an existing Malt installation, refresh the tap first:

malt tap --refresh nitaking/tap
malt upgrade azlogtail
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.7.0
    path: aqua/registry.yaml

packages:
  - name: nitaking/acatail/azlogtail@v0.7.0
    registry: acatail
aqua install
aqua exec -- azlogtail --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/cmd/azlogtail@v0.7.0; the module builds with Go 1.26 or later.

Migrate from acatail

Your old command and settings still work. To switch, use the instructions for your installation:

Installed with Switch to azlogtail
GitHub Releases binary Run acatail upgrade && acatail migrate. This adds azlogtail next to acatail.
Homebrew Run brew install nitaking/tap/azlogtail.
Malt Refresh the tap and run malt install nitaking/tap/azlogtail.
aqua Update the registry ref and replace the package in aqua.yaml as shown above. Then run aqua install.
Go Run go install github.com/nitaking/acatail/cmd/azlogtail@v0.7.0.

Run azlogtail --version to check the switch. With aqua, run aqua exec -- azlogtail --version.

Quick start

Run azlogtail --demo to try it without Azure. It opens a sample shop's subscriptions, Container Apps, App Service web apps, and a dozen Jobs, so you can follow live logs, browse execution history, and open saved logs with JSON and SQL. Run azlogtail --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
azlogtail

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 azlogtail --help for command-line options or azlogtail --version to check the installed version. Press ? inside the app for keyboard shortcuts.

Once a day, azlogtail checks GitHub for a newer release and prints the upgrade command for your installation method when you quit. If you installed a binary from GitHub Releases, azlogtail upgrade downloads the latest release, verifies it against checksums.txt, and replaces the binary. It doesn't check in demo mode. Set ACATAIL_NO_UPDATE_CHECK=1 to turn the check off.

Choose a subscription and resource type. Type to filter the list, use the arrow keys to move, and press Enter to select. You can also open a resource directly:

azlogtail my-app -g my-resource-group --filter 'connection timeout'
azlogtail my-web-app -g my-resource-group --app-service
azlogtail my-job -g my-resource-group --job
azlogtail my-job -g my-resource-group --execution my-job-x1y2z3

--job follows a job's live logs, and --execution opens the saved logs of one execution.

For App Service, choose App Service and select a web app. Enable the logs you want under Monitoring → App Service logs in the Azure portal first. azlogtail uses az webapp log tail, which may not work on some Linux App Service plans. App Service support covers the production slot's live stream.

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 when the log pane is focused
b Return focus to the execution list from saved logs
m Insert a line with the current time, to tell logs before and after a deploy or retry
y Copy the selected log, or the JSON, SQL, or raw text shown in its details
p Copy the selected log and the 50 matching logs before it as a Markdown prompt for an AI agent
w Save the logs that match the level and search to acatail-<name>-<time>.log in the current directory
o / Ctrl+O Open the app or job in the Azure portal; Ctrl+O works in the lists. A job execution opens its job
Ctrl+S Copy a screenshot of the screen to the clipboard as a PNG image
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.

Security and privacy

azlogtail reads from Azure; it never changes your resources.

  • Credentials. azlogtail runs the Azure CLI you are signed in to and has no credentials of its own. It can see only what your az login account can see.
  • Azure commands. It runs read-only commands: account list, account show, containerapp list, containerapp job list, containerapp job show, containerapp env show, containerapp logs show, containerapp job logs show, containerapp job execution list, and monitor log-analytics query.
  • Network. Besides Azure, azlogtail contacts only GitHub: once a day to check for a newer release, and when you run azlogtail upgrade. Set ACATAIL_NO_UPDATE_CHECK=1 to stop the daily check. There is no telemetry.
  • Local files. To show lists quickly, azlogtail caches resource names, IDs, and Log Analytics workspace IDs in your user cache directory, readable only by you. Log contents are not saved to disk unless you press w. A screenshot is saved to a file only when the clipboard is unavailable, such as over SSH.
  • Releases. Release archives come with SHA-256 checksums and build provenance attestations. See SECURITY.md to verify a download or report a vulnerability.

Development

Use mise to install the Go version pinned in mise.toml.

mise install
mise exec -- go test ./...
mise run demo

mise run demo builds azlogtail and opens the demo. mise run dev builds it and runs it against Azure; pass arguments after --, as in mise run dev -- my-app -g my-group.

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.

  1. Check out the commit already on origin/main. You need permission to push tags to nitaking/acatail.
  2. Add a ## [0.2.1] - YYYY-MM-DD section to CHANGELOG.md and commit it. The release notes come from that section, and the workflow fails if it is missing.
  3. Run mise run release -- v0.2.1, substituting an unused version. The task tests the code and pushes the tag. GitHub Actions publishes archives for both command names on four platforms, plus checksums.txt.
  4. The workflow updates both Homebrew formulas in the tap. This step needs a HOMEBREW_TAP_TOKEN repository secret with write access to the tap. Without it, run mise run tap -- v0.2.1 locally after the release is published.

Documentation

Overview

Command acatail is the compatibility entry point for azlogtail.

Directories

Path Synopsis
cmd
azlogtail command
Command azlogtail is a terminal log viewer for Azure Container Apps, Container Apps Jobs, and App Service web apps.
Command azlogtail is a terminal log viewer for Azure Container Apps, Container Apps Jobs, and App Service web apps.
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL