Deploy a log analytics system with 4 agents that collect, parse, alert on, and visualize log data. A collector aggregates logs from servers, containers, and applications, a parser extracts structured fields and identifies error patterns, an alerter detects anomalies and fires notifications, and a dashboard provides search and visualization with drill-down capabilities.
clawhub install pilot-log-analytics-setup # Replace <your-prefix> with a unique name for your deployment (e.g. acme)
# On server 1 (log collector)
clawhub install pilot-stream-data pilot-archive pilot-compress
pilotctl set-hostname <your-prefix>-collector
# On server 2 (log parser)
clawhub install pilot-event-filter pilot-task-router pilot-dataset
pilotctl set-hostname <your-prefix>-parser
# On server 3 (anomaly alerter)
clawhub install pilot-alert pilot-metrics pilot-cron
pilotctl set-hostname <your-prefix>-alerter
# On server 4 (log dashboard)
clawhub install pilot-webhook-bridge pilot-slack-bridge pilot-announce
pilotctl set-hostname <your-prefix>-dashboard
# collector <-> parser
# On collector:
pilotctl handshake <your-prefix>-parser "setup: log-analytics"
# On parser:
pilotctl handshake <your-prefix>-collector "setup: log-analytics"
# parser <-> alerter
# On parser:
pilotctl handshake <your-prefix>-alerter "setup: log-analytics"
# On alerter:
pilotctl handshake <your-prefix>-parser "setup: log-analytics"
# alerter <-> dashboard
# On alerter:
pilotctl handshake <your-prefix>-dashboard "setup: log-analytics"
# On dashboard:
pilotctl handshake <your-prefix>-alerter "setup: log-analytics"
pilotctl trust