Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Installation

Requirements

  • Zig 0.14.0 (no other dependencies)
  • Any POSIX system (Linux, macOS)
  • No libc required. No runtime. No garbage collector.

Build from source

git clone https://github.com/your-org/tailx.git
cd tailx
zig build -Doptimize=ReleaseSafe

The binary lands in zig-out/bin/tailx. Copy it wherever you like:

cp zig-out/bin/tailx ~/.local/bin/

Build variants

ModeCommandBinary sizeNotes
Debugzig build~3 MBSafety checks, slow
ReleaseSafezig build -Doptimize=ReleaseSafe3.1 MBSafety checks, fast
ReleaseSmallzig build -Doptimize=ReleaseSmall144 KBStripped, production
ReleaseFastzig build -Doptimize=ReleaseFast~2.8 MBMax speed, no safety

For production use, ReleaseSafe is recommended. For resource-constrained environments (containers, embedded), ReleaseSmall produces a 144 KB binary that fits in L2 cache.

Run tests

zig build test

This runs all 219 tests across every module: core types, parsers, statistical structures, anomaly detectors, correlation engine, filters, and renderers. All tests pass in under 2 seconds.

Verify installation

tailx --version
# tailx v1.0

tailx --help
# Shows usage, modes, filters, options

No dependencies

tailx uses the Zig standard library exclusively. There are zero external dependencies – no PCRE, no libc (where avoidable), no vendored C code. The entire binary is self-contained.