Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>NomadLogsNew to Visual Studio Code? Get it now.
NomadLogs

NomadLogs

Kilkaya

|
5 installs
| (0) | Free
NomadLogs lets you view logs of a task from Hashicorp Nomad
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

NomadLogs

A VS Code extension for browsing and streaming task logs from HashiCorp Nomad. Connect directly to a Nomad server or tunnel through SSH, then browse jobs, tasks, allocations, and files in a sidebar tree view with live-streamed logs displayed in a webview panel.

Features

  • Direct or SSH tunnel connection — Connect straight to a Nomad API endpoint, or tunnel through SSH when sshHost and sshUser are configured.
  • Sidebar tree view — Browse jobs → tasks → allocations in a dedicated activity bar panel. Allocations expand to show "Logs" and "Files" children.
  • Live streaming logs — Stream stdout/stderr from Nomad's follow API with a live status indicator. Logs render in a webview panel with tabbed stdout/stderr output.
  • Full ANSI color support — Standard, bright, 256-color, and 24-bit RGB colors, plus bold, dim, italic, underline, and strikethrough.
  • Log filtering — Toggle a filter bar to search log lines by plain text. ANSI codes are stripped for matching while colors are preserved in output. Shows match count.
  • File browsing — Browse an allocation's filesystem to any depth and view file contents in a webview with ANSI color support.
  • Favorites — Save jobs, tasks, or allocations to a per-workspace Favorites panel for quick access.
  • Allocation restart — Right-click an allocation to restart it (with confirmation).
  • Search / filter tree — Filter the jobs tree by name with an inline search input.
  • Automatic allocation resolution — When viewing logs for a task with a single allocation, it's selected automatically; multiple allocations prompt a QuickPick.

Getting Started

  1. Install the extension.
  2. Open the NomadLogs panel in the activity bar.
  3. Click Connect (or run NomadLogs: Connect to Nomad Server from the command palette).
    • With no SSH settings configured, the extension connects directly to nomadAddr (default http://127.0.0.1:4646).
    • Set sshHost and sshUser to tunnel through SSH instead.
  4. Browse jobs and tasks in the tree, then click Logs to start streaming.

Extension Settings

All settings are under the nomadlogs prefix.

Setting Type Default Description
nomadlogs.nomadAddr string http://127.0.0.1:4646 Nomad API address. Used directly when SSH is not configured, or as the remote target when SSH is configured.
nomadlogs.sshHost string "" SSH server hostname or IP. Leave empty for direct connection.
nomadlogs.sshPort number 22 SSH port.
nomadlogs.sshUser string "" SSH username. Leave empty for direct connection.
nomadlogs.sshKeyPath string "" Path to SSH private key. Defaults to ~/.ssh/id_rsa if empty.

Connection mode: If both sshHost and sshUser are set, the extension opens an SSH tunnel (with agent auth tried first, then private key). Otherwise it connects directly to nomadAddr.

Commands

Command Description
NomadLogs: Connect to Nomad Server Connect (direct or via SSH tunnel)
NomadLogs: Disconnect Disconnect and close any SSH tunnel
NomadLogs: Refresh Refresh the jobs tree
NomadLogs: Search Jobs & Tasks Open a filter input for the jobs tree
NomadLogs: Clear Filter Clear the active tree filter
NomadLogs: View Task Logs Browse jobs → tasks → view logs
NomadLogs: View Allocation Logs View logs for a specific allocation
NomadLogs: View Allocation File View a file from an allocation's filesystem
NomadLogs: Add to Favorites Add a job, task, or allocation to Favorites
NomadLogs: Remove from Favorites Remove an item from Favorites
NomadLogs: View Favorite Task Logs View logs for a favorite task
NomadLogs: Restart Allocation Restart an allocation (with confirmation)

Development

Task Command
Compile npm run compile
Watch npm run watch
Lint npm run lint
Test npm test
Debug Press F5 to launch the Extension Host

License

See LICENSE for details.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft