Tail a server log
pz_tail_logInspect recent server activity by reading the tail of any Project Zomboid log—console, chat, crash, or custom—with optional keyword filtering to diagnose issues or review player actions.
Instructions
Read the last N lines of a server log. This is the tool to use for 'what happened', 'why did it crash', 'who connected', or 'show me the chat'. Only the tail is fetched, so it stays fast on multi-megabyte logs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| log | No | Which log: 'console' for the live server console, a kind such as 'chat', 'user', 'admin', 'pvp' or 'DebugLog-server' (resolves to the most recent one), an exact filename, or an absolute path. | console |
| lines | No | How many lines from the end to read. | |
| contains | No | Optional case-insensitive filter. Only lines containing this substring are returned — but it filters within the fetched tail window, so raise `lines` if you expect older matches. | |
| service_id | No | Nitrado service id. Defaults to NITRADO_SERVICE_ID when omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |