---
title: "alpacon log"
description: "View recent logs for one server with Alpacon CLI. Choose the number of entries with the tail flag, use the logs alias, and select table or JSON output."
---

> Full documentation index: https://docs.alpacax.com/llms.txt

# alpacon log

View logs for a specified server.

## Usage

`alpacon log SERVER [flags]`

## Key facts

- Pass the server name as `SERVER`.
- Use `--tail` to limit the number of entries.
- `logs` is an alias for `log`.

## Flags

| Flag | Type | Description | Default |
| --- | --- | --- | --- |
| `-h, --help` | `bool` | help for log | `false` |
| `-t, --tail` | `int` | Number of log entries to show, newest first | `25` |
| `--output` | `string` | Output format: table or json | `table` |

## Examples

View all recent logs for a server

```bash
alpacon log my-server
alpacon logs my-server
```

Limit output to last 10 log entries

```bash
alpacon log my-server --tail=10
alpacon logs my-server --tail=10
```

Source: https://docs.alpacax.com/reference/cli/log/
