Skip to main content

Quickstart: the demo

Raw firewall syslog in, one parsed ClickHouse table per product out, on one host. The fetcher pulls two live API feeds beside it: the abuse.ch Feodo Tracker botnet blocklist, and the latest GitHub release of each public DFE component.

docker compose -f oci://ghcr.io/hyperi-io/dfe-docker:demo up -d
docker compose -f oci://ghcr.io/hyperi-io/dfe-docker:demo run --rm secrets-init login

A throwaway stack that seeds its own sources and streams vendor syslog into one table per vendor, beside its fetchers. Point your browser to http://localhost:3000 and log in with the name and password the second command prints. The console makes you change it at first login. It takes the Docker install's ports, so stop that first, and docker compose -f oci://ghcr.io/hyperi-io/dfe-docker:demo down -v removes it all.

docker compose -f oci://ghcr.io/hyperi-io/dfe-docker:demo down -v removes the demo and its data. A demo pack takes its own tag in place of demo, and plain down stops it and keeps the data.

Other demo use cases:

  • Cyber: docker compose -f oci://ghcr.io/hyperi-io/dfe-docker:demo-cyber up -d && docker compose -f oci://ghcr.io/hyperi-io/dfe-docker:demo-cyber run --rm secrets-init login
  • Telco: docker compose -f oci://ghcr.io/hyperi-io/dfe-docker:demo-telco up -d && docker compose -f oci://ghcr.io/hyperi-io/dfe-docker:demo-telco run --rm secrets-init login
  • Theatre and battlespace: docker compose -f oci://ghcr.io/hyperi-io/dfe-docker:demo-theatre up -d && docker compose -f oci://ghcr.io/hyperi-io/dfe-docker:demo-theatre run --rm secrets-init login

If docker compose version shows a release below 2.34, as Debian's own packages do, install Docker from Docker's own repository first.

From a checkout​

To change the demo's rate or protocol, or to keep the stack afterwards, run it from a dfe-docker checkout. That needs Python 3, git and make as well as Docker.

git clone https://github.com/hyperi-io/dfe-docker && cd dfe-docker
make demo # newest release, 20 lines a second over TCP
make demo DEMO_RATE=200 # a faster stream
make demo DEMO_PROTOCOL=udp # syslog over UDP

When no stack is running, make demo starts one and runs its self test, which prints PASS per check. Then it replays Cisco ASA and FortiGate logs as raw syslog. dfe-transform-elastic works out which device sent each line, parses it, and lands it in dfe.cisco-asa or dfe.fortinet. A line no product parser claims goes to dfe.demo-syslog.

It returns once every product table has gained rows, and the stream keeps going. Each product has about 6,000 sample lines, so it runs roughly ten minutes before a line repeats. On a stack already running the demo, run make demo-stop before make up.

When you're done:

make demo-stop # stop the stream
make down # stop the stack too, keep the data
make clean # stop everything and DELETE the volumes, ClickHouse included

Next: