Self-hosted log analytics and SIEM in a single Go binary, plus ClickHouse.
Splunk-style search, dashboards, scheduled alerts, incident triage, and authorized recon tooling. No API keys. No cloud. No per-GB licensing.
Install . Query language . Screenshots . Recon . Contributing
Most teams want what Splunk does without the bill, the cloud dependency, or the API keys. Daru is a single Go binary that collects logs, stores them in ClickHouse (a required second service, run via Docker or natively), and lets you search them with a pipe query language, build dashboards, run scheduled alerts, triage notable events, and drive authorized security tools, all on hardware you control.
- One binary. Search API, ingest endpoints, alert scheduler, and web UI are compiled into a single executable. The only other piece is ClickHouse.
- Drop-in ingest. The HTTP endpoint speaks Splunk HEC, so forwarders already pointed at HEC work unchanged. Raw and JSON are accepted too. Note: Daru has no indexer acknowledgement (ack) endpoint, so Splunk forwarders that require ack will not work; use HEC without ack, or raw and JSON ingest.
- A real query language.
search,where,eval,stats,timechart,chart,top,rare,rex,spath,sort,dedup,rename,bin,fillnull,eventstats,streamstats, and more, compiled to ClickHouse SQL. - Runs anywhere. Linux, macOS, Windows, Raspberry Pi, and Android (Termux). See Platform notes: Android cannot run ClickHouse locally, Windows recon tooling is mostly Linux-only, and Pi needs a 64-bit OS with 4 GB+ RAM.
- No API keys, no telemetry. Your logs never leave your machines, except that Daru's native collectors call crt.sh, DNS, and RDAP over the internet for certificate-transparency, DNS, and TLS lookups. Those are the only external services Daru contacts.
Every feature, from a test install. Device names, addresses, hardware IDs and the Wi-Fi name were replaced with example values before the screenshots were taken. The alerts, incident detail and packet capture screenshots use made-up demo data.
Overview: health strip, plain-language to-do list, number tiles, safety score, donut charts and the live network map:
Search with the Daru pipeline language and live charts:
Network map: every device on every network, live:
Recon: tasks in plain words, findings and riskiest hosts![]() |
Catalog of all 59 tools, grouped by category![]() |
A dashboard and scan history for every tool![]() |
Scan permissions for internet targets![]() |
Adapters and monitor mode, without cutting your internet![]() |
24 monitor-mode tools, grouped and driven from the page![]() |
System diagram: every part of Daru with its live state:
The Live Monitor is a packet capture console with live interface stats:
- Packet capture on any interface, with an optional BPF filter, in a Wireshark-style table: time to the millisecond, source and destination, protocol, length, and a Host / SNI column (TLS server name, DNS query, or HTTP host). Live packets per second (with a one-minute sparkline), bytes captured, and protocol, top-talker, and top-destination breakdowns.
- Pause freezes the table so you can read it while packets keep being counted; filter narrows the captured packets by address, protocol, host, or info; click a packet for its decoded fields and a link to search your logs for that peer.
- Download .pcap: every capture is saved (up to 200 MB) so you can open it in Wireshark. Only the user who ran it, or an admin, can download it; it is kept for 30 minutes and every download is audited.
- Interfaces: the interfaces carrying traffic first, labeled Wi-Fi, wired, VPN tunnel, or virtual, with live throughput and a sparkline. Wi-Fi shows SSID, band, signal, and link rate on Linux. VPN tunnels and virtual links are folded into a list below.
Capture works without root or wireshark-group membership: Daru captures with
tcpdump (which carries CAP_NET_RAW) and decodes with tshark, or uses
tshark directly where dumpcap is allowed to capture.
flowchart LR
subgraph Sources["Where data comes from"]
dev["Home devices<br/>phones, TVs, laptops"]
host["This computer<br/>system logs"]
remote["Other machines<br/>syslog, HEC, JSON"]
ids["Network monitor<br/>Suricata"]
scans["Scans<br/>59 recon tools"]
end
subgraph Daru["daru (one binary)"]
dns["Daru DNS"]
ingest["Ingest and<br/>field extraction"]
query["Query parser<br/>and SQL compiler"]
sched["Alert scheduler"]
notify["Notifications<br/>ntfy, Telegram, email, webhook"]
ui["Web UI<br/>embedded"]
gw["AI gateway"]
ctl["Control center"]
end
db[("ClickHouse")]
subgraph AI["Local and cloud models"]
ollama["Ollama"]
llama["llama.cpp"]
vllm["vLLM"]
cloud["Cloud providers"]
end
agents["Hermes and OpenClaw<br/>agents"]
browser["Browser or phone"]
dev --> dns --> ingest
host --> ingest
remote --> ingest
ids --> ingest
scans --> ingest
ingest --> db
query --> db
sched --> query
sched --> notify
browser --> ui --> query
agents --> gw
gw --> ollama & llama & vllm & cloud
ctl -. installs and runs .-> ollama & llama & vllm & agents
flowchart LR
A["Log line arrives<br/>HEC, raw, JSON, syslog,<br/>journald, DNS, Suricata"] --> B{"Token and<br/>rate limit OK?"}
B -- no --> R["Rejected<br/>and counted"]
B -- yes --> C["Fields extracted<br/>key=value, JSON, timestamps"]
C --> D["Stamped with home,<br/>device and location"]
D --> E[("Stored in ClickHouse<br/>per index, with retention")]
E --> F["Search, dashboards,<br/>reports"]
E --> G["Scheduled alerts"]
E --> H["Threat feed matching"]
sequenceDiagram
autonumber
participant You
participant Sched as Alert scheduler
participant DB as ClickHouse
participant Inc as Incidents
participant Out as ntfy / Telegram / email / webhook
You->>Sched: Save a search as an alert (every N minutes, condition)
loop every minute
Sched->>DB: Run the search for its time window
DB-->>Sched: Result count and rows
alt condition met
Sched->>Out: Signed webhook
Sched->>Inc: Open a notable event (severity, MITRE tag)
Inc->>Out: Batched notification
else not met
Sched-->>Sched: Wait for the next run
end
end
stateDiagram-v2
[*] --> new: alert fires
new --> in_progress: someone takes it
in_progress --> new: handed back
in_progress --> closed: resolved, with a note
new --> closed: false alarm
closed --> [*]
Daru can tell which device in your home visits which websites and services. Each device asks a DNS server for a site's address before visiting it; when devices ask Daru, it answers them (by asking your normal resolver) and notes which device asked for which name. Live traffic then shows each device with the services it uses (YouTube, Spotify, TikTok, banking, smart home, trackers and more), donut charts of kinds of sites and top services, the busiest devices, and a live feed of the latest lookups.
sequenceDiagram
autonumber
participant Phone as Phone in your home
participant Daru as Daru DNS (port 53 to 5354)
participant Up as Your normal resolver
participant DB as ClickHouse (dns index)
participant Page as Live traffic page
Phone->>Daru: What is the address of www.youtube.com?
Daru->>Up: Same question
Up-->>Daru: 142.250.x.x
Daru-->>Phone: 142.250.x.x
Daru->>DB: Phone (hardware address), home, youtube.com, service YouTube, category video
Page->>DB: Devices and services for this home
DB-->>Page: Phone uses YouTube 42 times today
Setup at each home takes two steps on the router: give this computer a fixed address, and set the router's first DNS server to it (with the router itself as the second, so the home keeps working when the computer leaves). The page shows these steps with the right addresses filled in.
If you carry the computer between homes, each home is kept apart. Daru recognises a home by its router's hardware address and Wi-Fi name, and a device by its own hardware address, so two devices that get the same IP in two different homes are never mixed up.
flowchart TD
J["Computer joins a Wi-Fi network"] --> R["Read the default route<br/>and the router's hardware address"]
R --> K{"Seen this router before?"}
K -- yes --> H["Same home<br/>names and history kept"]
K -- no --> N["New home added<br/>named after the Wi-Fi"]
H & N --> S["Every lookup is stamped with<br/>home id and device hardware address"]
S --> P["Home picker on Live traffic<br/>one home or all homes"]
N --> A["Allow phone access on this network<br/>one click adds the network and<br/>this computer's new address to the certificate"]
Two agents, Hermes and OpenClaw, work together on tasks you give them. They reach models only through Daru's AI gateway, which holds a key per agent, keeps a daily spending cap, and logs every request. Local model servers (Ollama, llama.cpp, vLLM) are installed and run from the Control center and join the gateway's model list by themselves while they run. "Try models" lets you chat with any model first and shows its speed in tokens per second.
flowchart LR
you["You"] -- task --> hermes["Hermes"]
hermes <-- talk --> openclaw["OpenClaw"]
hermes & openclaw -- per-agent key --> gw{"AI gateway<br/>spending cap, audit"}
you -- Try models --> gw
gw --> ollama["Ollama"] & llama["llama.cpp"] & vllm["vLLM"] & cloud["Cloud providers"]
guard["Person-only settings<br/>agents can never change them"] -.- gw
Agents never get the root password. They cannot change the spending cap, the AI switch, their own settings, scan permissions, users, Daru's settings, or phone access.
Everything Daru uses, in one place, with no second web page: install or update with one click, start and stop services, change each one's settings, read its logs, download models that fit your hardware, and edit Daru's own settings. The System diagram tab draws every part with its live state.
stateDiagram-v2
[*] --> not_installed
not_installed --> installing: Install
installing --> installed: done
installing --> not_installed: failed, see the log
installed --> running: Start
running --> installed: Stop
running --> running: Restart or change settings
installed --> installing: Update
running --> connected: model server answers
connected --> running: server stops
Open Settings, Appearance (or press g then p). Everything applies
right away and is kept in your browser; Export and Import move your setup to
another browser.
mindmap
root((Appearance))
Colours
Follow system, dark or light
Aurora, Midnight, Forest, Slate
Daylight, Paper, Mist
12 accents or any colour
Background glow
Layout
Compact, comfortable, spacious
Size 80 to 130 percent
Sharp, soft or round corners
Five fonts
Full or icon-only menu
Motion
Full, subtle or off
Follows the system setting
Charts
Area, line or bars
Pages
Start page
Pin favourites
Hide pages
Pick Overview sections
Keyboard: Ctrl+K opens the command palette; ? lists shortcuts; g
then a letter jumps to a page (o Overview, s Search, l Live traffic,
c Control center, p Appearance and more); t switches light and dark;
[ collapses the side menu.
Two one-click actions fuse several tools into a single aggregated result:
- Deep scan (Network tab), discovery + nmap OS/service detection + NetBIOS names merged into a full device profile per host on your LAN.
- Web assessment (
web-recon), HTTP probe + technology fingerprint + content discovery (and nuclei templates on the full profile) against a URL, with each finding tagged by its source tool.
Daru runs on Linux, macOS, Raspberry Pi, Windows, and Android (Termux).
flowchart TD
S(["./install.sh"]) --> G["Go toolchain<br/>and the daru binary"]
G --> C{"ClickHouse<br/>already answering?"}
C -- yes --> U["Use it"]
C -- no --> D{"Docker available?"}
D -- yes --> DC["Run it in Docker"]
D -- no --> HC["Install it in your home folder"]
U & DC & HC --> GEO["Location database"]
GEO --> AI["Node, World view, Hermes, OpenClaw,<br/>Ollama, llama.cpp, vLLM"]
AI --> SVC["systemd user service<br/>starts at boot"]
SVC --> ROOT{"Root parts?<br/>asks first"}
ROOT -- yes --> R["Recon tools and Suricata"]
ROOT -- no --> DONE
R --> DONE(["Summary of what worked<br/>and what to retry"])
Linux, macOS, Raspberry Pi, Termux:
git clone https://github.com/TYFSADIK/daru
cd daru
./install.shOn Linux with systemd, that one command sets up everything, one step after another, with no root needed:
- Go (if missing) and the Daru binary
- The ClickHouse database (an existing one, Docker, or a copy in your home folder)
- Daru as a service that starts with the computer
- Node.js and the God's Eye View globe
- The Hermes and OpenClaw AI agents
- The Ollama, llama.cpp and vLLM local model servers
- If you say yes, the parts that need your password once: the security scanners and the Suricata network monitor
A step that fails does not stop the rest; the summary lists it and you can retry from Daru. Options:
| Option | What it does |
|---|---|
--minimal |
Only Daru and its database |
--no-ai |
Skip the agents and model servers |
--no-vllm |
Skip vLLM (a few GB) |
--no-root |
Never ask for your password |
--with-tools |
Install the scanners without asking |
--no-clickhouse |
Skip the database step |
After installing, everything is run from Daru itself, under Settings, Control center:
- Components: install, update, uninstall, start, stop, and start with the computer, for every model server, agent and app, with live progress, settings and logs.
- Local models: download Ollama models by name, or any GGUF file from a
Hugging Face repository for llama.cpp. While a server runs, its models
join the agents' AI models list by themselves (as
ollama/<model>,llamacpp/<model>,vllm/<model>). - Daru settings: every Daru option (features, phone access, scans,
syslog, sign-in, database) with a restart button. The previous file is
kept as
daru.env.previous.
Windows (PowerShell):
git clone https://github.com/TYFSADIK/daru
cd daru
powershell -ExecutionPolicy Bypass -File install.ps1On other systems the installer builds Daru (installing a Go toolchain if you
do not have one), starts ClickHouse with Docker if it is available, generates
admin and database passwords into ~/.daru/daru.env, and prints your login.
Without systemd, start Daru yourself:
set -a; . ~/.daru/daru.env; set +a
daru serveOpen http://localhost:8088 and sign in as the admin user printed by the
installer.
- Raspberry Pi: use a 64-bit OS with 4 GB+ RAM; ClickHouse runs natively on arm64.
- Android (Termux): the Daru binary runs, but ClickHouse does not run on
Android. Point Daru at a ClickHouse on another machine with
DARU_CLICKHOUSE_URL=http://<host>:8123. - macOS: Live Monitor lists interfaces with live throughput and captures
packets (tcpdump needs BPF access, which Wireshark's ChmodBPF installer
grants). WiFi details (SSID, signal, link rate) come from Linux's
iw, so they show on Linux only. - Windows: the Daru binary and the web UI run, but most recon tooling (nmap, masscan, tcpdump, tshark, arp-scan) is Linux-only, so Recon and Live Monitor are limited on Windows.
- No Docker? Install ClickHouse natively (its official installer is
curl https://clickhouse.com/ | sh), or pointDARU_CLICKHOUSE_URLat an existing instance.
Each release publishes static binaries for every platform (make release
builds them locally into dist/). Download the one for your system, drop it on
your PATH, and run daru serve.
- Collect logs over HTTP in the Splunk HEC format, as raw text, or as
JSON, and over syslog (UDP and TCP, RFC 5424 and 3164).
Fields are pulled out automatically from
key=valuepairs and JSON. - Search with a pipe language and see results as tables, time charts, and bar charts, with a field sidebar for quick drill-down.
- Dashboards of saved panels, with a share link per dashboard
(
#/dashboard/<id>), Export PDF via the browser print dialog, and Export CSV (one section per panel). - Scheduled reports: any saved search can be scheduled as an alert from the Search page (cron, condition, severity, optional webhook URL stored with the alert). A dashboard can be printed or exported to CSV on demand.
- MITRE ATT&CK coverage: the Security page groups notable events by
MITRE tactic from the
mitrefield, with unmapped events shown separately. - Alerts: scheduled searches on a cron schedule, with a condition and
severity. A firing can open a notable event. For reporting queries
(
stats count by host) the condition is checked against the total across every group. Webhooks are signed with HMAC-SHA256 whenDARU_WEBHOOK_SECRETis set (see Webhook signatures). - Security: a notable-event queue for incident triage. Click an incident to see its details and raw event, assign it, change its status, and add analyst notes; every note, status change, and assignment lands on the incident's timeline and in the audit trail.
- Accounts: built-in users with Argon2id password hashing, roles (admin, power, user), TOTP second factor, and revocable sessions. No external identity provider needed, and optional LDAP / Active Directory, OIDC, and SAML 2.0 sign in when you have one (see Single sign on). Each account has a sign in method, and an external identity can only sign in to an account of its own method, so a directory or IdP user can never take over a local account with the same name.
- Session management: everyone sees their active sessions (browser, IP, sign in method, age) under Account and can sign out any of them, or every other session at once. Admins can sign a user out on every device (Admin > Users > Sign out everywhere), for a lost laptop or a suspected compromise.
- Audit trail: every sign in (and failed attempt), user, role, token, and index change, scan, schedule, saved search, dashboard, and incident status change is stored with the user, IP, and outcome. Admins filter and export it under Admin > Audit log. The trail is append-only: Daru's ClickHouse user can add records but not change or delete them, and they are kept for two years. Every event also goes to the server log.
- Per-index access control: each user can be limited to a set of indexes
(Admin > Users > Indexes, or
POST /api/admin/users/{name}/indexes). Searches, the index list, and that user's scheduled alerts only read the permitted indexes. Admins always read every index. - Indexes and retention: an index is created when an admin adds it (Admin > Indexes) or creates an ingest token for it, with a default of 90 days. Each index keeps its own retention (up to 3650 days), enforced by a sweep that drops expired day partitions every 6 hours. Defaults applied at startup never overwrite a retention an admin has set.
- Limits: a global ingest rate limit (events per second) plus per user quotas on running scans, scans per hour, and scheduled scans.
- Operations:
/api/health(liveness),/ready(ClickHouse reachable), and/metrics(Prometheus text format). - Recon: 59 authorized security tools in 8 categories, each pulling structured findings into search: port and host discovery (nmap, masscan, naabu, rustscan, zmap, and more), web scanning (httpx, katana, ffuf, gobuster, wapiti, wpscan, sqlmap, and more), DNS and subdomains (amass, subfinder, dnsx, dnsrecon, dnstwist, and more), vulnerability scanning (nuclei, nikto, OpenVAS, trufflehog, and more), service enumeration (SMB and SNMP tools), OSINT (theHarvester, SpiderFoot, recon-ng, whois, RDAP), TLS (testssl, sslyze, sslscan), and traffic analysis (tcpdump, tshark). Native collectors (crt.sh, DNS, TLS, RDAP) need no external binary.
- Network: discover live devices on your LAN with IP, hostname, MAC, vendor, and OS. One-click deep scan (god mode) fuses discovery, nmap OS/service detection, and NetBIOS names into a full profile per device.
- Live Monitor: real-time per-interface and WiFi link stats (SSID, band, signal, link rate, live throughput) plus an in-browser packet capture that streams decoded packets (source/destination, protocol, ports, DNS queries, TLS SNI, HTTP host) with live protocol, top-talker and top-destination breakdowns. Capture works without root or wireshark-group membership, and captured packets can be saved to a searchable index.
- Offline PCAP analysis: upload a
.pcap/.pcapngand decode it with the same tshark rich decoder (DNS/TLS-SNI/HTTP), no capture permission needed. - Per-tool dashboards: every recon tool has its own dashboard at
#/tool/<name>with its description, profiles, a run panel, and its own scan history and results, plus a catalog card showing availability. - Per-device intelligence: click any device to see everything observed about it (identity, OS, open ports, every finding from every tool), with one-click deep-rescan and HTML report + CSV export.
- Security posture overview: findings by severity, top hosts by risk, and recent high-severity findings aggregated across all scans.
- Scheduled scans: run any recon tool on a cron schedule for continuous monitoring; results feed the inventory and posture automatically.
- Web assessment orchestrator (
web-recon): one action fuses HTTP probe, technology fingerprint, content discovery, and template-based vuln scanning against a URL. - Resilient tooling: tools with a native equivalent (SMB enumeration, DNS resolution, LAN discovery, certificate-transparency and TLS/RDAP lookups) always return results via a built-in engine when the external binary is missing or cannot run in the environment.
A query is a series of commands joined by |. The first command is a search
over the raw text and extracted fields; later commands transform the results.
index=web status>=500 host=api*
| eval slow = if(latency_ms > 500, "yes", "no")
| stats count, avg(latency_ms) as avg_ms by host, slow
| sort -count
A few more to try once you have data:
* | timechart span=1h count by host
status=500 | stats count by host
* | top url
sourcetype=api_json | stats avg(latency_ms) as avg_latency by user | sort -avg_latency
Time ranges use forms like -15m, -24h, -1d@d (snap to the start of the
day), epoch seconds, or ISO timestamps.
Daru can drive standard, dual-use security tools and pull their findings into search. Every scan is gated: it requires an authorization reference and an explicit "I am authorized to test this target" confirmation, and a scope guard blocks public targets unless you opt in and refuses overly broad ranges. Each tool runs only when its binary is present on the host.
Install the optional scanners (consent-gated) with:
./scripts/install-recon-tools.shThis installs discovery, vulnerability, web, DNS/OSINT, and traffic-analysis tools. It deliberately installs no denial-of-service tools, no mass auto-exploiters, and no anti-virus evasion tooling.
The Network tab finds live devices on your LAN. For a complete picture
(including silent devices like phones, printers, and IoT that answer no TCP),
Daru uses arp-scan, which sends real ARP requests. Without it, Daru falls
back to a TCP sweep plus the OS ARP table, which only finds hosts with an open
port.
arp-scan, nmap SYN/ARP scans, masscan, and packet capture need the
CAP_NET_RAW capability. The right way to grant it is per-binary file
capabilities, not running Daru as root. Do that once with:
sh scripts/grant-capabilities.shThis grants only the raw-socket capability to those specific tools, so they
work for your normal user while Daru itself keeps running unprivileged. The
--with-tools installer runs this step for you.
On a private box that no one else can reach, you may prefer to just run everything as root so every tool works with no per-tool setup:
sh scripts/serve-root.shThis loads ~/.daru/daru.env and runs daru serve under sudo -E. Because
SUDO_USER is preserved, Daru still finds tools you installed in your own
~/go/bin and ~/.local/bin.
Only do this on a local, non-public instance. Running as root means anyone who can reach this Daru can run root commands through it, so keep it bound to localhost or a trusted LAN:
# in ~/.daru/daru.env, to accept only local connections:
DARU_LISTEN=127.0.0.1:8088For a shared or internet-exposed instance, use grant-capabilities.sh above
and run Daru as a normal user instead.
The Wi-Fi analysis tab turns a monitor-mode USB adapter into a full wireless workbench, all driven from the page: no terminal needed. It detects your adapters, puts the right one into monitor mode without touching the card that carries your internet, and then scans, captures, tests and recovers passwords from one place.
flowchart LR
A["Monitor-mode<br/>USB adapter"] --> M["Monitor mode<br/>(per-interface handoff)"]
M --> S["Live scan<br/>airodump-ng"]
S --> C["Capture<br/>handshake / PMKID"]
C --> V["Convert<br/>hcxpcapngtool"]
V --> R["Recover<br/>hashcat / aircrack / john / cowpatty"]
S --> T["Authorized testing<br/>deauth / WPS / beacon"]
It groups 24 tools into shelves you drive from cards: the Aircrack-ng suite (airmon-ng, airodump-ng, aireplay-ng, aircrack-ng), hcxdumptool, hcxtools, Kismet, Wireshark, horst, wavemon, Wash/Reaver/Bully/Pixiewps for WPS, MDK4, Wifiphisher/EAPHammer/hostapd-wpe for rogue-AP testing, Hashcat/John/coWPAtty/Crunch for password recovery, and the Wifite2, Airgeddon, Fern and Bettercap frameworks.
Install them in one step (Fedora), or use the Show install command button on the Tools tab, which lists exactly what is still missing:
sudo sh scripts/install-wifi-tools.shGuardrails, same shape as recon:
- Administrator only. Every Wi-Fi route requires the admin role.
- Agents can never use it. The whole
/api/wifisurface is person-only, so the AI agents' account is blocked from driving the radio. - Active tools are gated. Deauthentication, WPS, rogue-AP and PMKID actions need an explicit "I own this network or am authorized to test it" confirmation before they run.
- Audited. Monitor changes, captures, tests, cracks, downloads and deletes are all written to the append-only audit log.
- Your internet is safe. Monitor mode is set per interface; the adapter carrying your default route is refused and left connected.
The radio tools need raw-socket access, so run Daru as root on a local box for
Wi-Fi work (sh scripts/serve-root.sh), or grant capabilities to the
individual tools. Set DARU_WIFI=0 to turn the section off entirely.
cd deploy
export CLICKHOUSE_PASSWORD=$(openssl rand -hex 16) # ClickHouse schema user
export CLICKHOUSE_APP_PASSWORD=$(openssl rand -hex 16) # least privilege app user
export DARU_ADMIN_PASSWORD=$(openssl rand -hex 16) # Daru admin login
docker compose up -dOpen http://localhost:8088 and sign in with the admin account you set in
DARU_ADMIN_USER and DARU_ADMIN_PASSWORD.
ClickHouse privileges are split, and the audit trail is append-only. Upgrading an existing install? Run this once as a ClickHouse admin so Daru cannot delete audit records:
REVOKE ALTER DELETE, ALTER UPDATE ON daru.audit_log FROM daru_app;ClickHouse privileges are split. Daru runs as daru_app, which has only
SELECT, INSERT, and row level ALTER DELETE/ALTER UPDATE, and uses the
daru ClickHouse user only for schema migrations and retention partition
drops. User written searches also run with ClickHouse readonly=2. The app
user is created on the first start by
deploy/clickhouse-init/10-daru-users.sh. For an existing ClickHouse volume,
or a ClickHouse you run yourself, apply deploy/clickhouse-users.sql once and
set DARU_CLICKHOUSE_ADMIN_USER.
Send some sample logs:
-
In the UI, go to Admin > Ingest tokens and create a token. Copy it.
-
Run the generator:
python3 examples/sendlogs.py --server http://localhost:8088 --token YOUR_TOKEN --count 2000
-
Go to Search and run a query.
All Daru state lives in ClickHouse, so back it up with:
./scripts/backup.sh
# writes ~/.daru/backups/daru-YYYY-MM-DD-HHMMSS.tar.gz (readable by you only)Check a backup and restore it with:
./scripts/restore.sh --dry-run ~/.daru/backups/daru-2026-11-08-030000.tar.gz
./scripts/restore.sh ~/.daru/backups/daru-2026-11-08-030000.tar.gzThe scripts use ClickHouse's HTTP interface (only curl 7.87+ and tar
are needed), so they work with ClickHouse in Docker or on another host and
need no server side backup configuration. The file holds each table's
schema and rows. It includes password, session, and token hashes, so keep
it private.
Restore replaces every table in the backup, so stop Daru first and back up
the current data if it matters. It needs schema rights: set
DARU_CLICKHOUSE_ADMIN_USER and DARU_CLICKHOUSE_ADMIN_PASSWORD (backup
works with the least privilege app user too). Test a restore on a scratch
ClickHouse before relying on it. Daily cron example:
0 3 * * * /path/to/daru/scripts/backup.sh >> /var/log/daru-backup.log 2>&1
0 4 * * * find "$HOME/.daru/backups" -name 'daru-*.tar.gz' -mtime +7 -deleteThe scripts read DARU_CLICKHOUSE_URL, DARU_CLICKHOUSE_DB, the app and
admin ClickHouse users and passwords, and DARU_BACKUP_DIR, and load
~/.daru/daru.env when present.
Daru serves plain HTTP by default on :8088. Do not expose that directly.
Put a reverse proxy with TLS in front of it (Caddy, nginx, or Traefik), set
DARU_SECURE_COOKIES=true, and bind Daru to localhost
(DARU_LISTEN=127.0.0.1:8088) unless the proxy runs on another host. The
version shown in the UI footer is stamped by make stamp-version at release
time; the binary version comes from git describe --tags via the Makefile.
You need Go 1.27.4+ and a reachable ClickHouse.
go build -o daru ./cmd/daru
export DARU_CLICKHOUSE_URL=http://127.0.0.1:8123
export DARU_CLICKHOUSE_USER=default
export DARU_CLICKHOUSE_PASSWORD=yourpassword
./daru useradd -u admin -p 'a-strong-password' -role admin
./daru serveEach ingest token writes to one index, its default index, which Daru creates when the token is made. Create tokens under Admin > Ingest tokens. The HEC endpoint accepts the same JSON shape as Splunk's HTTP Event Collector:
curl http://localhost:8088/services/collector \
-H "Authorization: Splunk YOUR_TOKEN" \
-d '{"event":"user=alice action=login status=200","sourcetype":"app","host":"web01"}'Raw lines (one event per line):
curl http://localhost:8088/services/collector/raw?sourcetype=syslog \
-H "Authorization: Splunk YOUR_TOKEN" \
--data-binary @/var/log/syslogDaru receives syslog directly from firewalls, switches, routers, and Linux servers. It reads RFC 5424 and RFC 3164 (BSD) messages, over UDP and TCP, with newline or octet-counted (RFC 6587) framing.
export DARU_SYSLOG_UDP=:5514
export DARU_SYSLOG_TCP=:5514
export DARU_SYSLOG_ALLOW=10.0.0.0/8,192.168.10.5 # senders allowed (CIDR or IP)Messages land in the syslog index (change it with DARU_SYSLOG_INDEX)
with facility, severity, app, pid, and msgid fields, plus any
key=value pairs in the message. A message with no hostname uses the
sender's address as the host. If a device's clock runs ahead, Daru keeps
the device's time in syslog_time and indexes the event at the time it
arrived, so it stays searchable. Syslog shares the ingest rate limit.
Set DARU_SYSLOG_ALLOW: syslog has no authentication, so without an
allowlist anyone who can reach the port can write logs. Port 514 needs
root, so listen on 5514 and point devices there, or redirect 514 to 5514
with your firewall. To forward from a Linux server with rsyslog:
*.* @@daru.example.com:5514 # TCP; use a single @ for UDP
Try index=syslog severity=error | stats count by host, app.
| Variable | Default | Meaning |
|---|---|---|
DARU_LISTEN |
:8088 |
Listen address |
DARU_CLICKHOUSE_URL |
http://127.0.0.1:8123 |
ClickHouse HTTP URL |
DARU_CLICKHOUSE_DB |
daru |
Database name |
DARU_CLICKHOUSE_USER |
default |
ClickHouse app user (SELECT, INSERT, ALTER DELETE, ALTER UPDATE) |
DARU_CLICKHOUSE_PASSWORD |
ClickHouse app password | |
DARU_CLICKHOUSE_ADMIN_USER |
app user | ClickHouse user for migrations and retention drops |
DARU_CLICKHOUSE_ADMIN_PASSWORD |
Password for the admin user | |
DARU_ADMIN_USER |
Bootstrap admin, created on first run | |
DARU_ADMIN_PASSWORD |
Bootstrap admin password | |
DARU_SECURE_COOKIES |
Set to true behind HTTPS |
|
DARU_WEBHOOK_SECRET |
HMAC key (16+ chars) for signing alert webhooks | |
DARU_METRICS_TOKEN |
Bearer token (16+ chars) for /metrics; unset means loopback only |
|
DARU_INGEST_MAX_EPS |
50000 |
Ingest events per second for the deployment, -1 disables |
DARU_REPLICAS |
1 |
Daru servers sharing one ClickHouse; each enforces its share of the ingest limit |
DARU_SCAN_CONCURRENT_PER_USER |
2 |
Running recon scans per user, -1 disables |
DARU_SCAN_PER_HOUR_PER_USER |
30 |
Recon scans started per user per hour, -1 disables |
DARU_SCHEDULES_PER_USER |
20 |
Scheduled scans owned per user, -1 disables |
DARU_SYSLOG_UDP / DARU_SYSLOG_TCP |
off | Syslog listen address, e.g. :5514 |
DARU_SYSLOG_ALLOW |
any sender | Comma list of CIDR ranges or IPs allowed to send syslog |
DARU_SYSLOG_INDEX |
syslog |
Index for received syslog |
DARU_OIDC_ISSUER |
OIDC issuer URL; setting it enables single sign on | |
DARU_OIDC_CLIENT_ID / DARU_OIDC_CLIENT_SECRET |
OIDC client credentials | |
DARU_OIDC_REDIRECT_URL |
https://<host>/api/oidc/callback |
|
DARU_OIDC_USERNAME_CLAIM |
email |
email, preferred_username, or sub |
DARU_OIDC_ALLOWED_DOMAINS |
Comma list of email domains allowed to sign in | |
DARU_OIDC_AUTO_CREATE |
false |
Create accounts on first SSO sign in |
DARU_OIDC_DEFAULT_ROLE |
user |
Role for auto created accounts |
DARU_OIDC_DEFAULT_INDEXES |
none | Index access for auto created accounts (* or a list) |
DARU_LDAP_URL |
ldaps://host:636; setting it enables directory sign in |
|
DARU_LDAP_BIND_DN / DARU_LDAP_BIND_PASSWORD |
Service account for user lookups | |
DARU_LDAP_BASE_DN / DARU_LDAP_USER_FILTER |
/ (uid=%s) |
Where and how users are found |
DARU_LDAP_STARTTLS / DARU_LDAP_CA_FILE |
StartTLS on ldap://; CA bundle for the directory |
|
DARU_LDAP_ADMIN_GROUP / DARU_LDAP_POWER_GROUP |
Group DNs mapped to roles | |
DARU_SAML_ROOT_URL |
Daru's public URL; setting it enables SAML | |
DARU_SAML_IDP_METADATA_URL / _FILE |
IdP metadata | |
DARU_SAML_SP_KEY / DARU_SAML_SP_CERT |
SP key pair (PEM) | |
DARU_SAML_USERNAME_ATTR / DARU_SAML_GROUP_ATTR |
NameID / groups |
Identity attributes |
DARU_SAML_ADMIN_GROUP / DARU_SAML_POWER_GROUP |
Group values mapped to roles |
GET /api/health: liveness. 200 while the process answers.GET /ready: readiness. 200 only when ClickHouse answers within 2 seconds, otherwise 503. Use it for load balancer and Kubernetes readiness checks.GET /metrics: Prometheus text format: requests by route and status class, ingest events accepted and rate limited, searches and search errors, scans started, quota rejections, login failures, running scans, readiness, uptime, goroutines, and heap. WithoutDARU_METRICS_TOKENit answers loopback clients only; with it, sendAuthorization: Bearer <token>.
Daru signs users in through any OpenID Connect provider (Google, Microsoft Entra ID, Okta, Keycloak, Authentik, Dex, and others) using the authorization code flow with PKCE. ID tokens are verified locally against the provider's keys (RS256 or ES256), including issuer, audience, expiry, and nonce.
export DARU_OIDC_ISSUER=https://accounts.example.com
export DARU_OIDC_CLIENT_ID=daru
export DARU_OIDC_CLIENT_SECRET=...
export DARU_OIDC_REDIRECT_URL=https://daru.example.com/api/oidc/callback
export DARU_OIDC_ALLOWED_DOMAINS=example.com # optional email domain allowlistRegister the redirect URL with your provider. The login page then shows
Sign in with SSO. By default an SSO identity can sign in only when an
admin has already created a Daru account with the matching username (the
verified email, or set DARU_OIDC_USERNAME_CLAIM=preferred_username). With
DARU_OIDC_AUTO_CREATE=true, accounts are created on first sign in with
DARU_OIDC_DEFAULT_ROLE (default user) and DARU_OIDC_DEFAULT_INDEXES
(default: no index, so an admin grants access explicitly). Multi factor
authentication is the provider's job for SSO sign ins.
The normal password form checks local accounts first, then the directory.
Daru binds as a service account, finds the user, and binds as the user with
the typed password. Connections must be TLS (ldaps://, or StartTLS);
plain LDAP is refused except to loopback with DARU_LDAP_INSECURE=true.
Empty passwords are refused before contacting the server, and the username
is filter escaped.
export DARU_LDAP_URL=ldaps://dc.example.com:636
export DARU_LDAP_BIND_DN="cn=daru,ou=service,dc=example,dc=com"
export DARU_LDAP_BIND_PASSWORD=...
export DARU_LDAP_BASE_DN="ou=people,dc=example,dc=com"
export DARU_LDAP_USER_FILTER="(uid=%s)" # AD: (sAMAccountName=%s)
export DARU_LDAP_ADMIN_GROUP="cn=daru-admins,ou=groups,dc=example,dc=com" # optional
export DARU_LDAP_POWER_GROUP="cn=daru-power,ou=groups,dc=example,dc=com" # optionalWith group DNs set, the role follows group membership at every sign in. Daru TOTP still applies to directory accounts that enrol in it.
Daru is a SAML service provider (HTTP-Redirect requests, HTTP-POST responses). Responses must be signed by the IdP (SHA-1 refused), are checked for audience, destination, InResponseTo, and validity, are tied to the browser that started the sign in, and cannot be replayed. IdP initiated sign in is refused.
openssl req -x509 -newkey rsa:2048 -nodes -days 730 -subj "/CN=daru-sp" \
-keyout sp.key -out sp.crt
export DARU_SAML_ROOT_URL=https://daru.example.com
export DARU_SAML_IDP_METADATA_URL=https://idp.example.com/metadata # or DARU_SAML_IDP_METADATA_FILE
export DARU_SAML_SP_KEY=/etc/daru/sp.key DARU_SAML_SP_CERT=/etc/daru/sp.crt
export DARU_SAML_GROUP_ATTR=groups DARU_SAML_ADMIN_GROUP=daru-admins # optionalGive your IdP the SP metadata from https://daru.example.com/api/saml/metadata.
The username is the NameID unless DARU_SAML_USERNAME_ATTR names an
attribute. The login page then shows Sign in with SAML.
LDAP and SAML take the same account options as OIDC:
DARU_LDAP_AUTO_CREATE / DARU_SAML_AUTO_CREATE (default off; an admin
creates the account with the matching sign in method under Admin > Users),
..._DEFAULT_ROLE (default user), and ..._DEFAULT_INDEXES (default none).
With DARU_WEBHOOK_SECRET set, every alert webhook carries:
X-Daru-Timestamp: 1800000000
X-Daru-Signature: sha256=<hex HMAC-SHA256(secret, timestamp + "." + raw body)>
Recompute the HMAC over the raw request body, compare in constant time, and reject timestamps more than five minutes old. In Python:
import hmac, hashlib, time
def verify(secret: bytes, ts: str, sig: str, body: bytes) -> bool:
if abs(time.time() - int(ts)) > 300:
return False
want = "sha256=" + hmac.new(secret, ts.encode() + b"." + body, hashlib.sha256).hexdigest()
return hmac.compare_digest(want, sig)flowchart TB
fw["Forwarders and apps"] -- "HEC, raw, JSON, syslog" --> ing
br["Browser"] -- HTTPS --> ui
subgraph bin["daru (one binary)"]
ing["Ingest and field extraction"]
ui["Web UI (embedded)"] --> api["Search API"]
api --> qp["Daru query parser"] --> sql["SQL compiler"]
sch["Alert scheduler"] --> api
dns["Daru DNS"] --> ing
gw["AI gateway"]
cc["Control center"]
end
ing --> ch
sql --> ch
subgraph ch["ClickHouse"]
t1[("events, dns")]
t2[("users, sessions, settings")]
t3[("saved searches, dashboards,<br/>alerts, notable events")]
end
Contributions are welcome. See CONTRIBUTING.md for how to build, test, and submit changes. For anything security-related, see SECURITY.md.
If Daru is useful to you, a star helps other people find it.
Daru is under active development. Working today: ingest (HEC, raw, JSON), the query language and compiler, the search UI with charts, saved searches, dashboards, scheduled alerts, the notable-event queue, user and token administration, LDAP, OIDC, and SAML sign in, per-index access control and retention, ingest rate limits and scan quotas, readiness and Prometheus metrics, signed webhooks, the recon subsystem with 59 tools, network discovery and per-device intelligence, Live Monitor packet capture, and offline PCAP analysis, Who visits what with several homes, AI agents with a gateway and local models, the Control center, and the Appearance page.
MIT. See LICENSE. Daru is an independent project and is not affiliated with or endorsed by Splunk.












































