Logs & diagnostics
ayx server server-logs gives you structured access to Alteryx Server log files — without manually navigating the Windows filesystem or grepping raw text. All commands here are read-only.
Quick reference
Section titled “Quick reference”| Command | What it does |
|---|---|
ayx server server-logs discover |
Find all log files on the configured server |
ayx server server-logs inventory |
List log files with sizes and timestamps |
ayx server server-logs summary --path <path> |
Summarise a log file’s error/warning counts |
ayx server server-logs context --path <path> --query <query> |
Show lines around a matched query string |
ayx server server-logs parse-csv --path <path> |
Parse a CSV-format log file into structured output |
ayx server server-logs service-events --path <path> |
Extract structured service events |
ayx server server-logs gallery-events --path <path> |
Extract Gallery-specific events |
ayx server server-logs tail --path <path> |
Show the last N lines of a log file (default: 100) |
ayx server server-logs recent |
List log files modified in the last N days (default: 7) |
Discovering log files
Section titled “Discovering log files”Start here when you do not know where the logs are:
ayx server server-logs discover --profile prodThen get a full inventory with file sizes and modified timestamps:
ayx --output json server server-logs inventory --profile prodTailing and recent files
Section titled “Tailing and recent files”See the tail of a specific file:
ayx server server-logs tail --path "C:\ProgramData\Alteryx\Logs\AlteryxService.log"Override the default 100 lines:
ayx server server-logs tail --path "C:\ProgramData\Alteryx\Logs\AlteryxService.log" --lines 250List all log files touched in the last three days:
ayx server server-logs recent --profile prod --days 3Summarising and searching
Section titled “Summarising and searching”Get error and warning counts for a file:
ayx server server-logs summary --path "C:\ProgramData\Alteryx\Logs\AlteryxService.log"Search for a keyword and see surrounding context (25 lines before and after by default):
ayx server server-logs context \ --path "C:\ProgramData\Alteryx\Logs\AlteryxService.log" \ --query "OutOfMemory"Adjust the context window:
ayx server server-logs context \ --path "C:\ProgramData\Alteryx\Logs\AlteryxService.log" \ --query "connection refused" \ --before 10 \ --after 10Parsing structured log formats
Section titled “Parsing structured log formats”Alteryx Server produces some logs in CSV format. Parse them into a clean JSON envelope:
ayx --output json server server-logs parse-csv \ --path "C:\ProgramData\Alteryx\Logs\AlteryxGallery.csv"Note: --output is a global flag, so --output json can appear before or after the subcommand.
Service and Gallery events
Section titled “Service and Gallery events”Extract structured service lifecycle events:
ayx server server-logs service-events \ --path "C:\ProgramData\Alteryx\Logs\AlteryxService.log"Extract Gallery API events (authentication, job submissions, errors):
ayx server server-logs gallery-events \ --path "C:\ProgramData\Alteryx\Logs\AlteryxGallery.log"Machine-readable output
Section titled “Machine-readable output”Every command in this branch accepts --output json as a global flag:
ayx --output json server server-logs summary \ --path "C:\ProgramData\Alteryx\Logs\AlteryxService.log"The envelope is always { ok, message, timestamp_utc, data } on success; failures also include error_code.